diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-05-03 11:46:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-05-03 11:46:23 +0200 |
commit | cb9209bddad19452e96fd0b9168016867edf72db (patch) | |
tree | 09657c4cb15420497f883574d6c372bee64ed071 /Makefile | |
parent | bump year (diff) | |
download | libgamma-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-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |