making some nice batch-query stuff for initializing the display statics
[dana/dcompmgr.git] / Makefile
1 sources = $(wildcard *.c)
2 objs = $(sources:.c=.o)
3 headers = $(wildcard *.h)
4
5 CFLAGS=$(shell pkg-config --cflags xcb-composite xcb-damage glib-2.0) -ggdb -W -Wall
6 LIBS=$(shell pkg-config --libs xcb-composite xcb-damage glib-2.0)
7
8 dcompmgr: $(objs)
9         $(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
10
11 %.o: %.c $(headers)
12         $(CC) -c -o $@ $< $(CFLAGS)