File: 02-glib_include_link

package info (click to toggle)
audtty 0.1.12-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 616 kB
  • sloc: ansic: 1,560; sh: 193; makefile: 57
file content (21 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/Makefile.in
+++ b/Makefile.in
@@ -8,7 +8,8 @@ sysconfdir=${DESTDIR}/@sysconfdir@
 
 
 AUDACIOUS_CFLAGS=@AUDACIOUS_CFLAGS@ -I/usr/include/dbus-1.0
-LDADD=-ldbus-glib-1 -lncursesw -laudclient -lglib-2.0 -lgobject-2.0
+GLIB_CFLAGS=`pkg-config --cflags glib-2.0`
+LDADD=-ldbus-glib-1 -lncursesw -laudclient -lgobject-2.0 `pkg-config --libs glib-2.0 `
 
 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)
@@ -21,7 +22,7 @@ audtty: ${BINS}
 	cc -g -O2 -g2 -Wall -Werror ${LDFLAGS} -o audtty $(BINS) $(LDADD)
 
 .c.o:
-	cc -g -Wall ${AUDACIOUS_CFLAGS} ${CFLAGS} -o $@ -c $<
+	cc -g -Wall ${AUDACIOUS_CFLAGS} ${GLIB_CFLAGS} ${CFLAGS} -o $@ -c $<
 
 install: audtty
 	mkdir -p ${bindir}