made the opengl renderer work - used Xlib's glX instead of xcb's which is all broked...
[dana/dcompmgr.git] / Makefile
index 65ac859..63fc5ac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ sources = $(wildcard *.c)
 objs = $(sources:.c=.o)
 headers = $(wildcard *.h)
 
+DFLAGS=-ggdb
+
 # for profiling
 PFLAGS=-pg -fno-inline
 PLIBS=
@@ -10,9 +12,9 @@ PLIBS=
 EFLAGS=-DEFENCE
 ELIBS=-lefence
 
-CFLAGS=$(shell pkg-config --cflags xcb-glx xcb-composite xcb-damage glib-2.0) -ggdb -W -Wall $(PFLAGS)
+CFLAGS=$(shell pkg-config --cflags xcb-glx xcb-composite xcb-damage glib-2.0) -W -Wall $(PFLAGS) $(DFLAGS)
 LDFLAGS=$(PFLAGS)
-LIBS=$(shell pkg-config --libs xcb-glx xcb-composite xcb-damage glib-2.0) -lGL $(PLIBS)
+LIBS=$(shell pkg-config --libs xcb-glx xcb-composite xcb-damage glib-2.0) -lGL $(PLIBS) -lX11 -lX11-xcb
 
 dcompmgr: $(objs)
        $(CC) -o $@ $^ $(LIBS) $(LDFLAGS)