aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-10-17 20:26:38 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:49:55 +0100
commita158260e842fcfe2b49c3dc2ebc212e3fc5f3d90 (patch)
tree5a18f60330e94019055daca325dabbf3c60eab58 /Makefile
parent235711f3d3a5a41a4bb51a22dca6700aa77d34c1 (diff)
downloadtinycc-a158260e842fcfe2b49c3dc2ebc212e3fc5f3d90.tar.gz
tinycc-a158260e842fcfe2b49c3dc2ebc212e3fc5f3d90.tar.bz2
build: Respect CPPFLAGS override
so that e.g. make CPPFLAGS=-DSOMETHING works.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 51fc08e..9527d12 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ include $(TOP)/config.mak
VPATH = $(TOPSRC)
CFLAGS += -I$(TOP)
+CFLAGS += $(CPPFLAGS)
+
ifeq (-$(findstring gcc,$(CC))-,-gcc-)
ifeq (-$(GCC_MAJOR)-$(findstring $(GCC_MINOR),56789)-,-4--)
CFLAGS += -D_FORTIFY_SOURCE=0