aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-05-03 11:46:23 +0200
committerMattias Andrée <maandree@operamail.com>2015-05-03 11:46:23 +0200
commitcb9209bddad19452e96fd0b9168016867edf72db (patch)
tree09657c4cb15420497f883574d6c372bee64ed071 /Makefile
parentbump year (diff)
downloadlibgamma-cb9209bddad19452e96fd0b9168016867edf72db.tar.gz
libgamma-cb9209bddad19452e96fd0b9168016867edf72db.tar.bz2
libgamma-cb9209bddad19452e96fd0b9168016867edf72db.tar.xz
beginning of wayland support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f558047..f5e8f13 100644
--- a/Makefile
+++ b/Makefile
@@ -158,6 +158,17 @@ bin/libgamma.$(SO):
mkdir -p $(shell dirname $@)
ln -sf libgamma.$(SO).$(LIB_VERSION) $@
+obj/lib/wayland-%-protocol.c: src/lib/wayland-%-protocol.xml # XML, yuck!
+ mkdir -p $(shell dirname $@)
+ $(WAYLAND_SCANNER) code < $< > $@
+
+src/lib/wayland-%-client-protocol.h: src/lib/wayland-%-protocol.xml # XML, yuck!
+ $(WAYLAND_SCANNER) client-header < $< > $@
+
+obj/lib/gamma-wayland.o: src/lib/gamma-wayland.c src/lib/*.h src/lib/wayland-gamma-control-client-protocol.h
+ mkdir -p $(shell dirname $@)
+ $(CC) $(LIB_FLAGS) $(LIBS_C) $(PIC) -s -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
+
obj/lib/%.o: src/lib/%.c src/lib/*.h
mkdir -p $(shell dirname $@)
$(CC) $(LIB_FLAGS) $(LIBS_C) $(PIC) -s -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
@@ -305,9 +316,9 @@ uninstall:
.PHONY: clean
clean:
- -rm -rf obj bin libgamma.{info,pdf,ps,dvi}
+ -rm -rf obj bin libgamma.info libgamma.info-* libgamma.pdf libgamma.ps libgamma.dvi
.PHONY: distclean
distclean: clean
- -rm -f .config.mk src/lib/libgamma-config.h
+ -rm -f .config.mk src/lib/libgamma-config.h src/lib/wayland-*-protocol.c src/lib/wayland-*-protocol.h