diff options
Diffstat (limited to 'nuttx/configs/ntosd-dm320/nsh/Make.defs')
-rw-r--r-- | nuttx/configs/ntosd-dm320/nsh/Make.defs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/configs/ntosd-dm320/nsh/Make.defs b/nuttx/configs/ntosd-dm320/nsh/Make.defs index 21c20f481..4f6e1c53e 100644 --- a/nuttx/configs/ntosd-dm320/nsh/Make.defs +++ b/nuttx/configs/ntosd-dm320/nsh/Make.defs @@ -51,6 +51,7 @@ ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/nsh/ld.script CROSSDEV = arm-elf- CC = $(CROSSDEV)gcc +CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld AR = $(CROSSDEV)ar rcs NM = $(CROSSDEV)nm @@ -59,6 +60,7 @@ OBJDUMP = $(CROSSDEV)objdump CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \ $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) -pipe +CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) AFLAGS = $(CFLAGS) -D__ASSEMBLY__ OBJEXT = .o @@ -69,6 +71,11 @@ ifeq ("${CONFIG_DEBUG}","y") LDFLAGS += -g endif +define PREPROCESS + @echo "CPP: $1->$2" + @$(CPP) $(CPPFLAGS) $1 -o $2 +endef + define COMPILE @echo "CC: $1" @$(CC) -c $(CFLAGS) $1 -o $2 |