query extensions on the display
[dana/dcompmgr.git] / Makefile
index 0409160..a5b283f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
 sources = $(wildcard *.c)
 objs = $(sources:.c=.o)
+headers = $(wildcard *.h)
 
-CFLAGS=$(shell pkg-config --cflags xcb-composite glib-2.0) -ggdb
-LIBS=$(shell pkg-config --libs xcb-composite glib-2.0)
+CFLAGS=$(shell pkg-config --cflags xcb-composite xcb-damage glib-2.0) -ggdb -W -Wall
+LIBS=$(shell pkg-config --libs xcb-composite xcb-damage glib-2.0)
 
 dcompmgr: $(objs)
        $(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
 
-.c.o:
-       $(CC) -c -o $@ $^ $(CFLAGS)
+%.o: %.c $(headers)
+       $(CC) -c -o $@ $< $(CFLAGS)