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