summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-08 21:41:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-08 21:41:09 +0000
commit54d3d1e1558d6b44a406d4afee12bcd203d02dff (patch)
tree73d532cda0954612b4033d79295296f4970974fd
parent5b3632e9cd9503789ab0506f50a157cb25ce114c (diff)
downloadrtems-54d3d1e1558d6b44a406d4afee12bcd203d02dff.tar.bz2
Added $(CPPFLAGS) to all gcc 2.8 style make-exe rules.
-rw-r--r--make/custom/FreeBSD-posix.cfg2
-rw-r--r--make/custom/HPUX9-posix.cfg2
-rw-r--r--make/custom/Linux-posix.cfg2
-rw-r--r--make/custom/Solaris-posix.cfg2
-rw-r--r--make/custom/cvme961.cfg2
-rw-r--r--make/custom/dmv152.cfg2
-rw-r--r--make/custom/dmv177.cfg3
-rw-r--r--make/custom/efi332.cfg2
-rw-r--r--make/custom/efi68k.cfg2
-rw-r--r--make/custom/erc32.cfg2
-rw-r--r--make/custom/eth_comm.cfg2
-rw-r--r--make/custom/force386.cfg2
-rw-r--r--make/custom/gen68302.cfg2
-rw-r--r--make/custom/gen68340.cfg4
-rw-r--r--make/custom/gen68360.cfg2
-rw-r--r--make/custom/gensh1.cfg2
-rw-r--r--make/custom/go32.cfg2
-rw-r--r--make/custom/helas403.cfg2
-rw-r--r--make/custom/i386ex.cfg2
-rw-r--r--make/custom/idp.cfg2
-rw-r--r--make/custom/mvme136.cfg2
-rw-r--r--make/custom/mvme147.cfg2
-rw-r--r--make/custom/mvme162.cfg4
-rw-r--r--make/custom/mvme167.cfg2
-rw-r--r--make/custom/ods68302.cfg2
-rw-r--r--make/custom/p4000.cfg2
-rw-r--r--make/custom/p4600.cfg4
-rw-r--r--make/custom/p4650.cfg2
-rw-r--r--make/custom/papyrus.cfg2
-rw-r--r--make/custom/pc386.cfg4
-rw-r--r--make/custom/ppcn_60x.cfg3
-rw-r--r--make/custom/psim.cfg2
-rw-r--r--make/custom/score603e.cfg3
-rw-r--r--make/custom/simhppa.cfg2
34 files changed, 41 insertions, 38 deletions
diff --git a/make/custom/FreeBSD-posix.cfg b/make/custom/FreeBSD-posix.cfg
index 16afdcbe87..92aa9c5c8d 100644
--- a/make/custom/FreeBSD-posix.cfg
+++ b/make/custom/FreeBSD-posix.cfg
@@ -71,7 +71,7 @@ define make-target-options
endef
define make-exe
- $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
diff --git a/make/custom/HPUX9-posix.cfg b/make/custom/HPUX9-posix.cfg
index 401a7863a3..16340c4b40 100644
--- a/make/custom/HPUX9-posix.cfg
+++ b/make/custom/HPUX9-posix.cfg
@@ -70,7 +70,7 @@ define make-target-options
endef
define make-exe
- $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
diff --git a/make/custom/Linux-posix.cfg b/make/custom/Linux-posix.cfg
index 106ac47d8f..50c9b509a6 100644
--- a/make/custom/Linux-posix.cfg
+++ b/make/custom/Linux-posix.cfg
@@ -72,7 +72,7 @@ define make-target-options
endef
define make-exe
- $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
diff --git a/make/custom/Solaris-posix.cfg b/make/custom/Solaris-posix.cfg
index 0d86f96bc1..646f79a0f6 100644
--- a/make/custom/Solaris-posix.cfg
+++ b/make/custom/Solaris-posix.cfg
@@ -70,7 +70,7 @@ define make-target-options
endef
define make-exe
- $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
diff --git a/make/custom/cvme961.cfg b/make/custom/cvme961.cfg
index 267da135d4..64615e70de 100644
--- a/make/custom/cvme961.cfg
+++ b/make/custom/cvme961.cfg
@@ -65,7 +65,7 @@ endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
diff --git a/make/custom/dmv152.cfg b/make/custom/dmv152.cfg
index 13a9586a45..d20884314f 100644
--- a/make/custom/dmv152.cfg
+++ b/make/custom/dmv152.cfg
@@ -71,7 +71,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/dmv177.cfg b/make/custom/dmv177.cfg
index 3e17920ee6..b718f1fcf0 100644
--- a/make/custom/dmv177.cfg
+++ b/make/custom/dmv177.cfg
@@ -107,7 +107,8 @@ HAS_RTC=yes
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
- $(CC) $(CFLAGS) -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) \
+ -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
diff --git a/make/custom/efi332.cfg b/make/custom/efi332.cfg
index 0ccccd00f9..c02c30b7a5 100644
--- a/make/custom/efi332.cfg
+++ b/make/custom/efi332.cfg
@@ -62,7 +62,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/efi68k.cfg b/make/custom/efi68k.cfg
index 12e6d689dd..e2f3b6280f 100644
--- a/make/custom/efi68k.cfg
+++ b/make/custom/efi68k.cfg
@@ -62,7 +62,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/erc32.cfg b/make/custom/erc32.cfg
index 8fdedfedb3..a13a903845 100644
--- a/make/custom/erc32.cfg
+++ b/make/custom/erc32.cfg
@@ -90,7 +90,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
diff --git a/make/custom/eth_comm.cfg b/make/custom/eth_comm.cfg
index df602dac5c..cbf9fef250 100644
--- a/make/custom/eth_comm.cfg
+++ b/make/custom/eth_comm.cfg
@@ -72,7 +72,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
diff --git a/make/custom/force386.cfg b/make/custom/force386.cfg
index 341cf39e84..10640dc2bb 100644
--- a/make/custom/force386.cfg
+++ b/make/custom/force386.cfg
@@ -63,7 +63,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/gen68302.cfg b/make/custom/gen68302.cfg
index b72fea3fb0..484eef596b 100644
--- a/make/custom/gen68302.cfg
+++ b/make/custom/gen68302.cfg
@@ -62,7 +62,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
diff --git a/make/custom/gen68340.cfg b/make/custom/gen68340.cfg
index 826f3fc6b9..aa7d37b068 100644
--- a/make/custom/gen68340.cfg
+++ b/make/custom/gen68340.cfg
@@ -71,8 +71,8 @@ endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS) \
- $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
+ -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
# if you want to make a prom image
diff --git a/make/custom/gen68360.cfg b/make/custom/gen68360.cfg
index ab06827625..e3efedcc93 100644
--- a/make/custom/gen68360.cfg
+++ b/make/custom/gen68360.cfg
@@ -84,7 +84,7 @@ endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
diff --git a/make/custom/gensh1.cfg b/make/custom/gensh1.cfg
index 2ee7beeb4b..4f5ef5005d 100644
--- a/make/custom/gensh1.cfg
+++ b/make/custom/gensh1.cfg
@@ -70,7 +70,7 @@ define make-exe
endef
else
define make-exe
- $(CC) -Wl,-Map,$(basename $@).map \
+ $(CC) $(CPPFLAGS) -Wl,-Map,$(basename $@).map \
$(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $(basename $@).exe > $(basename $@).num
diff --git a/make/custom/go32.cfg b/make/custom/go32.cfg
index 0c4078368a..a9c4de6617 100644
--- a/make/custom/go32.cfg
+++ b/make/custom/go32.cfg
@@ -101,7 +101,7 @@ endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
diff --git a/make/custom/helas403.cfg b/make/custom/helas403.cfg
index 3d6f1ef27c..f5a908b9d1 100644
--- a/make/custom/helas403.cfg
+++ b/make/custom/helas403.cfg
@@ -98,7 +98,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
diff --git a/make/custom/i386ex.cfg b/make/custom/i386ex.cfg
index 0b33f9160d..cb85c78fba 100644
--- a/make/custom/i386ex.cfg
+++ b/make/custom/i386ex.cfg
@@ -64,7 +64,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).coff \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).coff \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/idp.cfg b/make/custom/idp.cfg
index 5c1205a878..1250d61aab 100644
--- a/make/custom/idp.cfg
+++ b/make/custom/idp.cfg
@@ -64,7 +64,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/mvme136.cfg b/make/custom/mvme136.cfg
index b0b9822e8a..3a5bd6f8e2 100644
--- a/make/custom/mvme136.cfg
+++ b/make/custom/mvme136.cfg
@@ -60,7 +60,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/mvme147.cfg b/make/custom/mvme147.cfg
index cb788b55b6..e1d23df1a0 100644
--- a/make/custom/mvme147.cfg
+++ b/make/custom/mvme147.cfg
@@ -57,7 +57,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
diff --git a/make/custom/mvme162.cfg b/make/custom/mvme162.cfg
index 46a3a45a5b..2fb808d619 100644
--- a/make/custom/mvme162.cfg
+++ b/make/custom/mvme162.cfg
@@ -97,8 +97,8 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe $(LINK_OBJS) \
- $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
+ -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
$(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
diff --git a/make/custom/mvme167.cfg b/make/custom/mvme167.cfg
index 5ea4168704..45eef32a8a 100644
--- a/make/custom/mvme167.cfg
+++ b/make/custom/mvme167.cfg
@@ -80,7 +80,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).nm
$(SIZE) $(basename $@).exe
diff --git a/make/custom/ods68302.cfg b/make/custom/ods68302.cfg
index abceb1f5e0..7f7ae47230 100644
--- a/make/custom/ods68302.cfg
+++ b/make/custom/ods68302.cfg
@@ -84,7 +84,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
-Wl,-defsym -Wl,MC68302_BASE=$(MC68302_BASE) \
-o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
diff --git a/make/custom/p4000.cfg b/make/custom/p4000.cfg
index d036013511..bb187c6577 100644
--- a/make/custom/p4000.cfg
+++ b/make/custom/p4000.cfg
@@ -63,7 +63,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
diff --git a/make/custom/p4600.cfg b/make/custom/p4600.cfg
index 8f77c8c2af..6257c0ea90 100644
--- a/make/custom/p4600.cfg
+++ b/make/custom/p4600.cfg
@@ -81,8 +81,8 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe $(LINK_OBJS) \
- $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
+ -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
$(RM) $(basename $@).srec1
diff --git a/make/custom/p4650.cfg b/make/custom/p4650.cfg
index d076faa6ec..64b8941c99 100644
--- a/make/custom/p4650.cfg
+++ b/make/custom/p4650.cfg
@@ -80,7 +80,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
diff --git a/make/custom/papyrus.cfg b/make/custom/papyrus.cfg
index 9086732cf8..a04f4f3d30 100644
--- a/make/custom/papyrus.cfg
+++ b/make/custom/papyrus.cfg
@@ -92,7 +92,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
diff --git a/make/custom/pc386.cfg b/make/custom/pc386.cfg
index 34c59e00d3..8a1b95dcad 100644
--- a/make/custom/pc386.cfg
+++ b/make/custom/pc386.cfg
@@ -84,7 +84,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
-Wl,--oformat,elf32-i386 -o $(basename $@).obj \
-o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
@@ -99,7 +99,7 @@ define make-exe
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
$(INSTALL_VARIANT) -m 555 $(basename $@).bt ${PROJECT_RELEASE}/BootImgs
- $(CC) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -Wl,-Ttext,$(RELOCADDR) \
-o $(basename $@).coff $(LINK_OBJS) $(LINK_LIBS)
endef
endif
diff --git a/make/custom/ppcn_60x.cfg b/make/custom/ppcn_60x.cfg
index 3ae06a1f0f..8c0a167477 100644
--- a/make/custom/ppcn_60x.cfg
+++ b/make/custom/ppcn_60x.cfg
@@ -98,7 +98,8 @@ CFLAGS_OPTIMIZE_V=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile
# $(LD_LIBS) \
# -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
define make-exe
- $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) \
+ -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
diff --git a/make/custom/psim.cfg b/make/custom/psim.cfg
index dd308be653..f4ed61ed3f 100644
--- a/make/custom/psim.cfg
+++ b/make/custom/psim.cfg
@@ -107,7 +107,7 @@ endef
else
# -Wl,--gc-sections
define make-exe
- $(CC) $(CFLAGS) -o $(basename $@).exe \
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
diff --git a/make/custom/score603e.cfg b/make/custom/score603e.cfg
index ca9c6f3741..6ae44122db 100644
--- a/make/custom/score603e.cfg
+++ b/make/custom/score603e.cfg
@@ -138,7 +138,8 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) -o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
+ $(CC) $(CPPFLAGS) $(CFLAGS) \
+ -o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).elf
$(OBJCOPY) -O srec $(basename $@).elf $(basename $@).s1
diff --git a/make/custom/simhppa.cfg b/make/custom/simhppa.cfg
index 425f70de98..6eb2ba4029 100644
--- a/make/custom/simhppa.cfg
+++ b/make/custom/simhppa.cfg
@@ -121,7 +121,7 @@ define make-exe
endef
else
define make-exe
- $(CC) $(CFLAGS) $(CFLAGS_LD) $(GCC_LD_LOC_OPTIONS) \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) $(GCC_LD_LOC_OPTIONS) \
-o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num