diff options
-rw-r--r-- | nuttx/examples/pashello/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/pashello/pashello.c | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/examples/pashello/Makefile b/nuttx/examples/pashello/Makefile index e11bb336c..93fd64991 100644 --- a/nuttx/examples/pashello/Makefile +++ b/nuttx/examples/pashello/Makefile @@ -36,7 +36,14 @@ -include $(TOPDIR)/.config -include $(TOPDIR)/Make.defs -CFLAGS += -I$(TOPDIR)/pcode/include -I$(TOPDIR)/pcode/insn/include +COMPILER = ${shell basename $(CC)} +ifeq ($(COMPILER),zneocc.exe) +USRINCLUDES = -usrinc:'.;$(WTOPDIR)\pcode\include;$(WTOPDIR)\pcode\insn\include' +else +USRINCLUDES = -I$(TOPDIR)/pcode/include -I$(TOPDIR)/pcode/insn/include +endif +INCLUDES = $(ARCHSTDINCLUDES) $(USRINCLUDES) +CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCHDEFINES) ASRCS = AOBJS = $(ASRCS:.S=$(OBJEXT)) diff --git a/nuttx/examples/pashello/pashello.c b/nuttx/examples/pashello/pashello.c index a40990acd..bff838619 100644 --- a/nuttx/examples/pashello/pashello.c +++ b/nuttx/examples/pashello/pashello.c @@ -39,6 +39,7 @@ #include <nuttx/config.h> #include <stdio.h> +#include <stdlib.h> #include <debug.h> #include "pexec.h" |