summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d127d2..2d8ba0f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
+CFLAGS=`pkg-config --cflags xcb xcb-ewmh xcb-icccm xcb-keysyms xcb-randr`
+LDFLAGS=`pkg-config --libs xcb xcb-ewmh xcb-icccm xcb-keysyms xcb-randr`
+
all: libschewm.so
libschewm.so: schewm.c
- gcc -fPIC -Wall -shared -o libschewm.so schewm.c
+ gcc -fPIC -Wall ${CFLAGS} ${LDFLAGS} -shared -o libschewm.so schewm.c