summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index acac541..89d4432 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ PKGNAME ?= blueshift
# Bindings for display server access
SERVER_BINDINGS ?= randr vidmode
# Executable bindings for display server access
-EXECS ?= idcrtc
+EXECS ?= idcrtc iccprofile
# Executable library files
EXECLIBS = $(foreach E,$(EXECS),blueshift_$(E))
@@ -52,6 +52,7 @@ WARN = -Wall -Wextra -pedantic
# The C standard for C code compilation
STD = c99
LIBS_idcrtc = xcb-randr
+LIBS_iccprofile = xcb
LIBS_randr = xcb-randr
LIBS_vidmode = x11 xxf86vm
LIBS = python3 $(foreach B,$(SERVER_BINDINGS) $(EXECS),$(LIBS_$(B)))
@@ -87,6 +88,11 @@ bin/blueshift_idcrtc: obj/blueshift_idcrtc.o
@mkdir -p bin
$(CC) $(FLAGS) $$($(PKGCONFIG) --libs $($(LIBS_))) -o $@ $^
+bin/blueshift_iccprofile: LIBS_=LIBS_iccprofile
+bin/blueshift_iccprofile: obj/blueshift_iccprofile.o
+ @mkdir -p bin
+ $(CC) $(FLAGS) $$($(PKGCONFIG) --libs $($(LIBS_))) -o $@ $^
+
bin/blueshift_randr.so: LIBS_=LIBS_randr
bin/blueshift_vidmode.so: LIBS_=LIBS_vidmode
bin/%.so: obj/%.o obj/%_c.o