From: Axel Wagner Date: Tue, 19 Jul 2011 02:21:36 +0000 (+0200) Subject: Respect and use CPPFLAGS X-Git-Tag: 4.0.1~7^2~3^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2a7de5e542d50be3d8fc0709461091131099156;p=i3%2Fi3 Respect and use CPPFLAGS --- 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