]> code.delx.au - spectrwm/blobdiff - linux/Makefile
Fix XCB error macros to use current naming.
[spectrwm] / linux / Makefile
index 6f95f461f3b4ee804e8f628487927b266837451f..0dceb7222d450ddeec4c6d749066288b6f28e8e3 100644 (file)
@@ -1,6 +1,6 @@
-CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I.
+CFLAGS+= -Wall -g -D_GNU_SOURCE -I.
 CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
-LDADD+= -lX11 -lXrandr -lXtst
+LDADD+= -lX11 -lXrandr -lXtst -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest
 
 PREFIX?= /usr/local
 BINDIR?= $(PREFIX)/bin
@@ -11,6 +11,11 @@ CC= gcc
 
 LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
 
+BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
+ifneq ("${BUILDVERSION}", "")
+CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
+endif
+
 all: spectrwm libswmhack.so.$(LVERS)
 
 spectrwm.c: