From a2a7de5e542d50be3d8fc0709461091131099156 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Tue, 19 Jul 2011 04:21:36 +0200 Subject: [PATCH] Respect and use CPPFLAGS --- i3bar/Makefile | 2 +- i3bar/common.mk | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/i3bar/Makefile b/i3bar/Makefile index d4cc59b9..216e68cc 100644 --- a/i3bar/Makefile +++ b/i3bar/Makefile @@ -19,7 +19,7 @@ doc: src/%.o: src/%.c ${HEADERS} echo "CC $<" - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< install: all echo "INSTALL" diff --git a/i3bar/common.mk b/i3bar/common.mk index 1db1558a..ec633007 100644 --- a/i3bar/common.mk +++ b/i3bar/common.mk @@ -13,9 +13,10 @@ CFLAGS += -idirafter yajl-fallback CFLAGS += -Wall CFLAGS += -pipe -CFLAGS += -Iinclude CFLAGS += -g -CFLAGS += -DI3BAR_VERSION=\"${GIT_VERSION}\" + +CPPFLAGS += -DI3BAR_VERSION=\"${GIT_VERSION}\" +CPPFLAGS += -Iinclude LDFLAGS += -lev LDFLAGS += -lyajl -- 2.39.5