Use the eagle pkg-config file instead of assuming ../eagle.
authorKristian Høgsberg <krh@redhat.com>
Sat, 8 Nov 2008 20:30:41 +0000 (15:30 -0500)
committerKristian Høgsberg <krh@redhat.com>
Sat, 8 Nov 2008 20:30:41 +0000 (15:30 -0500)
Makefile

index 0205537..05f7229 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
 CFLAGS = -Wall -g
 
-EAGLE_CFLAGS = -I../eagle
-EAGLE_LDLIBS = -L../eagle -leagle
+PKG_CONFIG_PATH ?= $(HOME)/install/lib/pkgconfig
+
+EAGLE_CFLAGS = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags eagle)
+EAGLE_LDLIBS = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs eagle)
 
 clients = flower pointer background window
 compositors = egl-compositor.so glx-compositor.so