From 978b0f79ad5de3109a70e364aa3949a16eb0dcfc Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 3 Feb 2008 13:20:54 +0000 Subject: [PATCH] Fixes for clean pashello compile with z16f git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@622 42af7a65-404d-4744-a932-0658087f49c3 --- examples/pashello/Makefile | 9 ++++++++- examples/pashello/pashello.c | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) 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"