use pkg-config to determine girara libs and inc

This commit is contained in:
Sebastian Ramacher 2011-07-10 20:04:24 +02:00
parent aec6843b54
commit 376390a65c

View File

@ -11,8 +11,11 @@ MANPREFIX ?= ${PREFIX}/share/man
GTK_INC = $(shell pkg-config --cflags gtk+-2.0)
GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0)
INCS = -I. -I/usr/include ${GTK_INC}
LIBS = -lc ${GTK_LIB} -lpthread -lm -lgirara-gtk2 -ldl
GIRARA_INC = $(shell pkg-config --cflags girara-gtk2)
GIRARA_LIB = $(shell pkg-config --libs girara-gtk2)
INCS = -I. -I/usr/include ${GIRARA_INC} ${GTK_INC}
LIBS = -lc ${GIRARA_LIB} ${GTK_LIB} -lpthread -lm -ldl
# flags
CFLAGS += -std=c99 -pedantic -Wall -Wno-format-zero-length $(INCS)
@ -27,4 +30,4 @@ LDFLAGS += -rdynamic
CC ?= gcc
# strip
SFLAGS = -s
SFLAGS ?= -s