summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-05 17:28:28 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-07-05 17:28:28 +0300
commit7d3030b45a4cd5a6e5faf144d9278f1151c0add4 (patch)
tree71f9e2fa911c1d633874dd97301a39ebe41b38e8 /Makefile
parent8c12f9f61e19759e47dced9674f902376f1f7c28 (diff)
downloadabuild-7d3030b45a4cd5a6e5faf144d9278f1151c0add4.tar.gz
abuild-7d3030b45a4cd5a6e5faf144d9278f1151c0add4.tar.bz2
abuild-7d3030b45a4cd5a6e5faf144d9278f1151c0add4.tar.xz
abuild-7d3030b45a4cd5a6e5faf144d9278f1151c0add4.zip
build: honor CPPFLAGS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2c472a9..cae2a40 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ clean:
@rm -f $(USR_BIN_FILES)
%.o: %.c
- $(CC) $(CFLAGS) $(CFLAGS-$@) -o $@ -c $<
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) -o $@ -c $<
abuild-sudo: abuild-sudo.o
$(LINK)
@@ -78,7 +78,7 @@ abuild-tar: abuild-tar.o
$(LINK)
abuild-tar.static: abuild-tar.o
- $(CC) $(CFLAGS) $(CFLAGS-$@) -o $@ -static $(LIBS-$@) $^
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS-$@) -o $@ -static $(LIBS-$@) $^
help:
@echo "$(P) makefile"