Fix the neko makefile to get cflags and libs for all relevant packages.
authorJamey Sharp <jamey@minilop.net>
Thu, 20 Apr 2006 04:29:23 +0000 (21:29 -0700)
committerJamey Sharp <jamey@minilop.net>
Thu, 20 Apr 2006 04:29:23 +0000 (21:29 -0700)
neko/Makefile

index 7aa7abf..f58cdc0 100644 (file)
@@ -1,5 +1,6 @@
-CFLAGS = `pkg-config --cflags xcb` -g -Wall -Wpointer-arith -Wstrict-prototypes
-LIBS = `pkg-config --libs xcb-aux xcb-icccm xcb-atom xcb-keysyms` -lm
+pkgs = xcb xcb-aux xcb-icccm xcb-atom xcb-keysyms
+CFLAGS = `pkg-config --cflags $(pkgs)` -g -Wall -Wpointer-arith -Wstrict-prototypes
+LIBS = `pkg-config --libs $(pkgs)` -lm
 
 xcbneko:       xcbneko.c
        $(CC) $(CFLAGS) xcbneko.c $(LIBS) -o xcbneko