summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-10 22:54:49 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-10 22:54:49 +0100
commit6213705e16727ca0322dab6a5f1be015e2d22eea (patch)
tree9cbad2ef5486eb6b3683a8cf660d63b33d30c90f /Makefile
parentlicenses partially under AGPL3 and partially under GPL3 (diff)
downloadblueshift-6213705e16727ca0322dab6a5f1be015e2d22eea.tar.gz
blueshift-6213705e16727ca0322dab6a5f1be015e2d22eea.tar.bz2
blueshift-6213705e16727ca0322dab6a5f1be015e2d22eea.tar.xz
list icc profiles
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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