use translate to place windows, and draw them based on 0,0
[dana/dcompmgr.git] / Makefile
1 sources = $(wildcard *.c)
2 objs = $(sources:.c=.o)
3 headers = $(wildcard *.h)
4
5 DFLAGS=-ggdb
6
7 # for profiling
8 PFLAGS=-pg -fno-inline
9 PLIBS=
10
11 # for electric fence
12 EFLAGS=-DEFENCE
13 ELIBS=-lefence
14
15 CFLAGS=$(shell pkg-config --cflags xcb-glx xcb-composite xcb-damage glib-2.0) -W -Wall $(PFLAGS) $(DFLAGS)
16 LDFLAGS=$(PFLAGS)
17 LIBS=$(shell pkg-config --libs xcb-glx xcb-composite xcb-damage glib-2.0) -lGL $(PLIBS) -lX11 -lX11-xcb
18
19 dcompmgr: $(objs)
20         $(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
21
22 %.o: %.c $(headers)
23         $(CC) -c -o $@ $< $(CFLAGS)
24
25 clean:
26         rm -f dcompmgr *.o
27
28 VIRTUAL = clean