ctemp

Set color temperature
git clone git://git.akobets.xyz/ctemp
Log | Files | Refs | README | LICENSE

config.mk (1217B)


      1 VERSION = 0.1.5
      2 
      3 # Customize below to fit your system
      4 
      5 # DRM support
      6 ENABLE_DRM = ON
      7 # Quartz (OS X) support
      8 ENABLE_QUARTZ = OFF
      9 # X11 support
     10 ENABLE_X = ON
     11 
     12 PREFIX = /usr/local
     13 MANPREFIX = $(PREFIX)/share/man
     14 
     15 X11_INC = /usr/X11R6/include
     16 X11_LIB = /usr/X11R6/lib
     17 
     18 DRM_INCS_ON = -I/usr/include/libdrm
     19 DRM_LIBS_ON = -ldrm
     20 DRM_FLAGS_ON = -DDRM_SUPPORT
     21 QUARTZ_INCS_ON = -framework CoreGraphics
     22 QUARTZ_LIBS_ON =
     23 QUARTZ_FLAGS_ON = -DQUARTZ_SUPPORT -D_DARWIN_C_SOURCE
     24 X_INCS_ON = -I$(X11_INC)
     25 X_LIBS_ON = -L$(X11_LIB) -lX11 -lXrandr
     26 X_FLAGS_ON = -DX_SUPPORT
     27 
     28 DRM_INCS = $(DRM_INCS_$(ENABLE_DRM))
     29 DRM_LIBS = $(DRM_LIBS_$(ENABLE_DRM))
     30 DRM_FLAGS = $(DRM_FLAGS_$(ENABLE_DRM))
     31 QUARTZ_INCS = $(QUARTZ_INCS_$(ENABLE_QUARTZ))
     32 QUARTZ_LIBS = $(QUARTZ_LIBS_$(ENABLE_QUARTZ))
     33 QUARTZ_FLAGS = $(QUARTZ_FLAGS_$(ENABLE_QUARTZ))
     34 X_INCS = $(X_INCS_$(ENABLE_X))
     35 X_LIBS = $(X_LIBS_$(ENABLE_X))
     36 X_FLAGS = $(X_FLAGS_$(ENABLE_X))
     37 
     38 INCS = $(DRM_INCS) $(QUARTZ_INCS) $(X_INCS)
     39 LIBS = $(DRM_LIBS) $(QUARTZ_INCS) $(X_LIBS)
     40 
     41 ALL_CFLAGS = -std=c99 -pedantic -Wall $(INCS) $(CFLAGS)
     42 ALL_CPPFLAGS = -DVERSION=\"$(VERSION)\" \
     43 	-D_POSIX_C_SOURCE=200809L \
     44 	$(DRM_FLAGS) $(QUARTZ_FLAGS) $(X_FLAGS) \
     45 	$(CPPFLAGS)
     46 ALL_LDFLAGS = $(LIBS) $(LDFLAGS)
     47 
     48 CC = cc