From 376390a65c2565a060bc8f10dd38ca4ed0403108 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 10 Jul 2011 20:04:24 +0200 Subject: [PATCH] use pkg-config to determine girara libs and inc --- config.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config.mk b/config.mk index f87e762..1c86fe0 100644 --- a/config.mk +++ b/config.mk @@ -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