Respect and use CPPFLAGS

This commit is contained in:
Axel Wagner 2011-07-19 04:21:36 +02:00
parent 8734337fb5
commit a2a7de5e54
2 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ doc:
src/%.o: src/%.c ${HEADERS} src/%.o: src/%.c ${HEADERS}
echo "CC $<" echo "CC $<"
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
install: all install: all
echo "INSTALL" echo "INSTALL"

View File

@ -13,9 +13,10 @@ CFLAGS += -idirafter yajl-fallback
CFLAGS += -Wall CFLAGS += -Wall
CFLAGS += -pipe CFLAGS += -pipe
CFLAGS += -Iinclude
CFLAGS += -g CFLAGS += -g
CFLAGS += -DI3BAR_VERSION=\"${GIT_VERSION}\"
CPPFLAGS += -DI3BAR_VERSION=\"${GIT_VERSION}\"
CPPFLAGS += -Iinclude
LDFLAGS += -lev LDFLAGS += -lev
LDFLAGS += -lyajl LDFLAGS += -lyajl