don't fade on startup/shutdown, make fading a bit quicker
[dana/dcompmgr.git] / Makefile
index d3d8202..311914a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,17 @@ 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
+# for profiling
+PFLAGS=-pg -fno-inline
+PLIBS=
+
+# for electric fence
+EFLAGS=-DEFENCE
+ELIBS=-lefence
+
+CFLAGS=$(shell pkg-config --cflags xcb-composite xcb-damage glib-2.0) -ggdb -W -Wall $(PFLAGS)
+LDFLAGS=$(PFLAGS)
+LIBS=$(shell pkg-config --libs xcb-composite xcb-damage glib-2.0) $(PLIBS)
 
 dcompmgr: $(objs)
        $(CC) -o $@ $^ $(LIBS) $(LDFLAGS)