diff --git a/examples/pashello/Makefile b/examples/pashello/Makefile index e11bb336ce..93fd64991e 100644 --- a/examples/pashello/Makefile +++ b/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/examples/pashello/pashello.c b/examples/pashello/pashello.c index a40990acde..bff838619a 100644 --- a/examples/pashello/pashello.c +++ b/examples/pashello/pashello.c @@ -39,6 +39,7 @@ #include #include +#include #include #include "pexec.h"