From 1af38b6db60e8061d1ef42c66506cc5e816e71cf Mon Sep 17 00:00:00 2001 From: gbeauchesne Date: Mon, 18 Oct 2004 15:22:45 +0000 Subject: 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.1