summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/pjrc-8051
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2008-11-26 18:59:14 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2008-11-26 18:59:14 +0000
commitb098c438db2d18716d5ea91629818000e98a733c (patch)
tree7f0b115adf2e1cc1bca3c37d2093f1aae9ae5aa7 /nuttx/configs/pjrc-8051
parent9863ef20c674f5fe40bffb070030bde528460dd3 (diff)
Need pre-processor support for auto-generation of source file
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1312 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/pjrc-8051')
-rw-r--r--nuttx/configs/pjrc-8051/Make.defs6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/configs/pjrc-8051/Make.defs b/nuttx/configs/pjrc-8051/Make.defs
index 5c77c6f22a..6ccf353ee3 100644
--- a/nuttx/configs/pjrc-8051/Make.defs
+++ b/nuttx/configs/pjrc-8051/Make.defs
@@ -56,12 +56,18 @@ AR = sdcclib -a
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES)
+CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES)
ASMEXT = .asm
OBJEXT = .rel
LIBEXT = .lib
EXEEXT = .hex
+define PREPROCESS
+ @echo "CPP: $1->$2"
+ @$(CPP) $(CPPFLAGS) $1 -o $2
+endef
+
define COMPILE
@echo "CC: $1"
@$(CC) -c $(CFLAGS) $1 -o $2