Blob Blame History Raw
diff -Nurb --strip-trailing-cr audtty-0.1.12-orig/Makefile.in audtty-0.1.12/Makefile.in
--- audtty-0.1.12-orig/Makefile.in	2010-02-28 19:10:48.000000000 +0100
+++ audtty-0.1.12/Makefile.in	2012-07-26 12:45:36.961860912 +0200
@@ -10,7 +10,7 @@
 mandir=@prefix@/share/man/man1
 sysconfdir=@sysconfdir@
 
-AUDACIOUS_CFLAGS=@AUDACIOUS_CFLAGS@ -I/usr/include/dbus-1.0
+AUDACIOUS_CFLAGS=@AUDACIOUS_CFLAGS@
 
 SOURCES=main.c curses_printf.c playlist.c playlist_jump.c playlist_addurl.c settings.c connect.c browse.c playlist_create.c
 BINS=$(SOURCES:.c=.o)
@@ -20,10 +20,10 @@
 all: audtty
 
 audtty: ${BINS}
-	cc -g -O2 -g2 -Wall -Werror -lncursesw -laudclient ${LDFLAGS} -o audtty $(BINS)
+	cc -g -O2 -g2 -Wall -Werror -lncursesw -laudclient ${LDFLAGS} `pkg-config --libs glib-2.0 dbus-glib-1` -o audtty $(BINS)
 
 .c.o:
-	cc -g -Wall ${AUDACIOUS_CFLAGS} ${CFLAGS} -o $@ -c $<
+	cc -g -Wall ${AUDACIOUS_CFLAGS} ${CFLAGS} `pkg-config --cflags glib-2.0 dbus-glib-1` -o $@ -c $<
 
 install: audtty
 	mkdir -p ${bindir}