diff options
Diffstat (limited to 'nuttx/examples/pashello/Makefile')
-rw-r--r-- | nuttx/examples/pashello/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/examples/pashello/Makefile b/nuttx/examples/pashello/Makefile index b14c0cece..8de5941ba 100644 --- a/nuttx/examples/pashello/Makefile +++ b/nuttx/examples/pashello/Makefile @@ -37,11 +37,10 @@ -include $(TOPDIR)/Make.defs COMPILER = ${shell basename $(CC)} -ifeq ($(COMPILER),zneocc.exe) -USRINCLUDES = -usrinc:'.;$(WTOPDIR)\pcode\include;$(WTOPDIR)\pcode\insn\include' +USRINCLUDES = ${shell $(TOPDIR)/tools/incdir.sh "$CC" $(TOPDIR)/pcode/include $(TOPDIR)/pcode/insn/include} +ifneq ($(ARCHSTDINCLUDES),) INCLUDES = $(ARCHSTDINCLUDES) $(USRINCLUDES) else -USRINCLUDES = -I$(TOPDIR)/pcode/include -I$(TOPDIR)/pcode/insn/include INCLUDES = $(ARCHINCLUDES) $(USRINCLUDES) endif CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCHDEFINES) |