summaryrefslogtreecommitdiff
path: root/nuttx/configs/sim/pashello
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 18:59:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-26 18:59:14 +0000
commit5bd8df9d37f1ed4e504ff6b43545ba8300cd2de1 (patch)
tree7f0b115adf2e1cc1bca3c37d2093f1aae9ae5aa7 /nuttx/configs/sim/pashello
parent0656ff623ae406226308306079b56355662d58d4 (diff)
downloadpx4-nuttx-5bd8df9d37f1ed4e504ff6b43545ba8300cd2de1.tar.gz
px4-nuttx-5bd8df9d37f1ed4e504ff6b43545ba8300cd2de1.tar.bz2
px4-nuttx-5bd8df9d37f1ed4e504ff6b43545ba8300cd2de1.zip
Need pre-processor support for auto-generation of source file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1312 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/sim/pashello')
-rw-r--r--nuttx/configs/sim/pashello/Make.defs7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/configs/sim/pashello/Make.defs b/nuttx/configs/sim/pashello/Make.defs
index 063585ab9..66ed73599 100644
--- a/nuttx/configs/sim/pashello/Make.defs
+++ b/nuttx/configs/sim/pashello/Make.defs
@@ -52,6 +52,7 @@ ARCHSCRIPT =
CROSSDEV =
CC = $(CROSSDEV)gcc
+CPP = $(CROSSDEV)gcc -E
LD = $(CROSSDEV)ld
AR = $(CROSSDEV)ar rcs
NM = $(CROSSDEV)nm
@@ -60,6 +61,7 @@ OBJDUMP = $(CROSSDEV)objdump
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) -pipe
+CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES)
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
OBJEXT = .o
@@ -76,6 +78,11 @@ ifeq ("${CONFIG_DEBUG}","y")
endif
EXTRA_LIBS = -lm
+define PREPROCESS
+ @echo "CPP: $1->$2"
+ @$(CPP) $(CPPFLAGS) $1 -o $2
+endef
+
define COMPILE
@echo "CC: $1"
@$(CC) -c $(CFLAGS) $1 -o $2