From 961f21a790bb51fe2f470f928f17d416568df9ba Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Wed, 27 Jun 2012 23:19:59 +0200 Subject: [PATCH] improve pkg-config call, respect CFLAGs --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 58a27f4..aaaa190 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,12 @@ OBJS= calmwm.o screen.o xmalloc.o client.o menu.o \ kbfunc.o mousefunc.o font.o strlcpy.o strlcat.o y.tab.o \ strtonum.o fgetln.o -CPPFLAGS+= `pkg-config --cflags fontconfig x11 xft xinerama xrandr` +CPPFLAGS+= $(shell pkg-config --cflags fontconfig x11 xft xinerama xrandr) -CFLAGS= -Wall -O2 -g -D_GNU_SOURCE +CFLAGS?= -Wall -O2 -g +CFLAGS+= -D_GNU_SOURCE -LDFLAGS+= `pkg-config --libs fontconfig x11 xft xinerama xrandr` +LDFLAGS+= $(shell pkg-config --libs fontconfig x11 xft xinerama xrandr) MANPREFIX= ${PREFIX}/share/man