aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorgbeauchesne <gbeauchesne@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2004-10-18 15:22:45 +0000
committergbeauchesne <gbeauchesne@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2004-10-18 15:22:45 +0000
commit1af38b6db60e8061d1ef42c66506cc5e816e71cf (patch)
treec636b5cf79343ebc55c60c171a21ad15d0324643 /Makefile
parent41e3b12fb658e1ea4e3cc6210e0da86763cdbba9 (diff)
downloads2u-1af38b6db60e8061d1ef42c66506cc5e816e71cf.tar
s2u-1af38b6db60e8061d1ef42c66506cc5e816e71cf.tar.gz
s2u-1af38b6db60e8061d1ef42c66506cc5e816e71cf.tar.bz2
s2u-1af38b6db60e8061d1ef42c66506cc5e816e71cf.tar.xz
s2u-1af38b6db60e8061d1ef42c66506cc5e816e71cf.zip
use pkgconfig to get the right includes/libs for dbus-glib-1
git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@179796 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a322669..d3d7c56 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,8 @@ FILES = Makefile README hostname-post s2u.c s2u.sh s2u.spec \
DEFS = -DDBUS_API_SUBJECT_TO_CHANGE=1
CC = gcc
CFLAGS = -O2 -pipe -Wall -Werror
-INCLUDES = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-LDFLAGS = -ldbus-glib-1 -lglib-2.0 -ldbus-1
+INCLUDES = $(shell pkg-config dbus-glib-1 --cflags)
+LDFLAGS = $(shell pkg-config dbus-glib-1 --libs)
COMPILE = $(CC) $(DEFS) $(CFLAGS)