sources = $(wildcard *.c) objs = $(sources:.c=.o) headers = $(wildcard *.h) CFLAGS=$(shell pkg-config --cflags xcb-composite xcb-damage glib-2.0) -ggdb -W -Wall #-DEFENCE LIBS=$(shell pkg-config --libs xcb-composite xcb-damage glib-2.0) #-lefence dcompmgr: $(objs) $(CC) -o $@ $^ $(LIBS) $(LDFLAGS) %.o: %.c $(headers) $(CC) -c -o $@ $< $(CFLAGS) clean: rm -f dcompmgr *.o VIRTUAL = clean