Misc: Add comments of options in Makefile
Add comments about compile-time options in Makefile.
This commit is contained in:
parent
44ccbfab9f
commit
4d0c663ad2
15
Makefile
15
Makefile
@ -18,12 +18,14 @@ OBJS = compton.o
|
|||||||
CFG = -std=c99
|
CFG = -std=c99
|
||||||
|
|
||||||
# ==== Xinerama ====
|
# ==== Xinerama ====
|
||||||
|
# Enables support for --xinerama-shadow-crop
|
||||||
ifeq "$(NO_XINERAMA)" ""
|
ifeq "$(NO_XINERAMA)" ""
|
||||||
CFG += -DCONFIG_XINERAMA
|
CFG += -DCONFIG_XINERAMA
|
||||||
PACKAGES += xinerama
|
PACKAGES += xinerama
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== libconfig ====
|
# ==== libconfig ====
|
||||||
|
# Enables configuration file parsing support
|
||||||
ifeq "$(NO_LIBCONFIG)" ""
|
ifeq "$(NO_LIBCONFIG)" ""
|
||||||
CFG += -DCONFIG_LIBCONFIG
|
CFG += -DCONFIG_LIBCONFIG
|
||||||
PACKAGES += libconfig
|
PACKAGES += libconfig
|
||||||
@ -34,57 +36,68 @@ ifeq "$(NO_LIBCONFIG)" ""
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== PCRE regular expression ====
|
# ==== PCRE regular expression ====
|
||||||
|
# Enables support for PCRE regular expression pattern in window conditions
|
||||||
ifeq "$(NO_REGEX_PCRE)" ""
|
ifeq "$(NO_REGEX_PCRE)" ""
|
||||||
CFG += -DCONFIG_REGEX_PCRE
|
CFG += -DCONFIG_REGEX_PCRE
|
||||||
LIBS += $(shell pcre-config --libs)
|
LIBS += $(shell pcre-config --libs)
|
||||||
INCS += $(shell pcre-config --cflags)
|
INCS += $(shell pcre-config --cflags)
|
||||||
|
# Enables JIT support in libpcre
|
||||||
ifeq "$(NO_REGEX_PCRE_JIT)" ""
|
ifeq "$(NO_REGEX_PCRE_JIT)" ""
|
||||||
CFG += -DCONFIG_REGEX_PCRE_JIT
|
CFG += -DCONFIG_REGEX_PCRE_JIT
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== DRM VSync ====
|
# ==== DRM VSync ====
|
||||||
|
# Enables support for "drm" VSync method
|
||||||
ifeq "$(NO_VSYNC_DRM)" ""
|
ifeq "$(NO_VSYNC_DRM)" ""
|
||||||
INCS += $(shell pkg-config --cflags libdrm)
|
INCS += $(shell pkg-config --cflags libdrm)
|
||||||
CFG += -DCONFIG_VSYNC_DRM
|
CFG += -DCONFIG_VSYNC_DRM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== OpenGL ====
|
# ==== OpenGL ====
|
||||||
|
# Enables support for GLX backend, OpenGL VSync methods, etc.
|
||||||
ifeq "$(NO_VSYNC_OPENGL)" ""
|
ifeq "$(NO_VSYNC_OPENGL)" ""
|
||||||
CFG += -DCONFIG_VSYNC_OPENGL
|
CFG += -DCONFIG_VSYNC_OPENGL
|
||||||
# -lGL must precede some other libraries, or it segfaults on FreeBSD (#74)
|
# -lGL must precede some other libraries, or it segfaults on FreeBSD (#74)
|
||||||
LIBS := -lGL $(LIBS)
|
LIBS := -lGL $(LIBS)
|
||||||
OBJS += opengl.o
|
OBJS += opengl.o
|
||||||
|
# Enables support for GLSL (GLX background blur, etc.)
|
||||||
ifeq "$(NO_VSYNC_OPENGL_GLSL)" ""
|
ifeq "$(NO_VSYNC_OPENGL_GLSL)" ""
|
||||||
CFG += -DCONFIG_VSYNC_OPENGL_GLSL
|
CFG += -DCONFIG_VSYNC_OPENGL_GLSL
|
||||||
endif
|
endif
|
||||||
|
# Enables support for GL FBO (GLX multi-pass blur, etc.)
|
||||||
ifeq "$(NO_VSYNC_OPENGL_FBO)" ""
|
ifeq "$(NO_VSYNC_OPENGL_FBO)" ""
|
||||||
CFG += -DCONFIG_VSYNC_OPENGL_FBO
|
CFG += -DCONFIG_VSYNC_OPENGL_FBO
|
||||||
endif
|
endif
|
||||||
|
# Enables support for GL VBO (does nothing right now)
|
||||||
ifeq "$(NO_VSYNC_OPENGL_VBO)" ""
|
ifeq "$(NO_VSYNC_OPENGL_VBO)" ""
|
||||||
CFG += -DCONFIG_VSYNC_OPENGL_VBO
|
CFG += -DCONFIG_VSYNC_OPENGL_VBO
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== D-Bus ====
|
# ==== D-Bus ====
|
||||||
|
# Enables support for --dbus (D-Bus remote control)
|
||||||
ifeq "$(NO_DBUS)" ""
|
ifeq "$(NO_DBUS)" ""
|
||||||
CFG += -DCONFIG_DBUS
|
CFG += -DCONFIG_DBUS
|
||||||
PACKAGES += dbus-1
|
PACKAGES += dbus-1
|
||||||
OBJS += dbus.o
|
OBJS += dbus.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== D-Bus ====
|
# ==== X Sync ====
|
||||||
|
# Enables support for --xrender-sync-fence
|
||||||
ifeq "$(NO_XSYNC)" ""
|
ifeq "$(NO_XSYNC)" ""
|
||||||
CFG += -DCONFIG_XSYNC
|
CFG += -DCONFIG_XSYNC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== C2 ====
|
# ==== C2 ====
|
||||||
|
# Enable window condition support
|
||||||
ifeq "$(NO_C2)" ""
|
ifeq "$(NO_C2)" ""
|
||||||
CFG += -DCONFIG_C2
|
CFG += -DCONFIG_C2
|
||||||
OBJS += c2.o
|
OBJS += c2.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ==== X resource checker ====
|
# ==== X resource checker ====
|
||||||
|
# Enable X resource leakage checking (Pixmap only, presently)
|
||||||
ifneq "$(ENABLE_XRESCHECK)" ""
|
ifneq "$(ENABLE_XRESCHECK)" ""
|
||||||
CFG += -DDEBUG_XRC
|
CFG += -DDEBUG_XRC
|
||||||
OBJS += xrescheck.o
|
OBJS += xrescheck.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user