summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 20:44:02 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 20:44:02 +0000
commitabe75281e693689f8efe02ddad2c82ae067e5d98 (patch)
tree4c9e8e7a6afb3c57062a61a70eab90cb4b3504da /misc
parenta444a16f4746959a1332cb21749fbdf9a31df091 (diff)
downloadnuttx-abe75281e693689f8efe02ddad2c82ae067e5d98.tar.gz
nuttx-abe75281e693689f8efe02ddad2c82ae067e5d98.tar.bz2
nuttx-abe75281e693689f8efe02ddad2c82ae067e5d98.zip
Finishes all Makefile file changes for Windows native clean
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc')
-rw-r--r--misc/pascal/nuttx/Makefile43
1 files changed, 22 insertions, 21 deletions
diff --git a/misc/pascal/nuttx/Makefile b/misc/pascal/nuttx/Makefile
index fc9be25e3..701353602 100644
--- a/misc/pascal/nuttx/Makefile
+++ b/misc/pascal/nuttx/Makefile
@@ -36,20 +36,20 @@
PCODEDIR := ${shell pwd | sed -e 's/ /\\ /g'}
-include $(TOPDIR)/Make.defs
-include $(APPDIR)/Make.defs
+include $(APPDIR)$(DELIM)Make.defs
# Default tools
ifeq ($(DIRLINK),)
-DIRLINK = $(TOPDIR)/tools/link.sh
-DIRUNLINK = $(TOPDIR)/tools/unlink.sh
+DIRLINK = $(TOPDIR)$(DELIM)tools$(DELIM)link.sh
+DIRUNLINK = $(TOPDIR)$(DELIM)tools$(DELIM)unlink.sh
endif
ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif
-USRINCLUDES = ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(PCODEDIR)/include $(PCODEDIR)/insn/include}
+USRINCLUDES = ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(PCODEDIR)$(DELIM)include $(PCODEDIR)$(DELIM)insn$(DELIM)include}
COMPILER = ${shell basename $(CC)}
ifeq ($(COMPILER),zneocc.exe)
@@ -60,9 +60,9 @@ endif
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCHDEFINES)
-include insn/prun/Make.defs
-include libpoff/Make.defs
-include libpas/Make.defs
+include insn$(DELIM)prun$(DELIM)Make.defs
+include libpoff$(DELIM)Make.defs
+include libpas$(DELIM)Make.defs
ASRCS = $(PRUN_ASRCS) $(POFF_ASRCS) $(PAS_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))
@@ -74,17 +74,17 @@ SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
ifeq ($(WINTOOL),y)
- BIN = "${shell cygpath -w $(APPDIR)/libapps$(LIBEXT)}"
+ BIN = "${shell cygpath -w $(APPDIR)$(DELIM)libapps$(LIBEXT)}"
else
- BIN = "$(APPDIR)/libapps$(LIBEXT)"
+ BIN = "$(APPDIR)$(DELIM)libapps$(LIBEXT)"
endif
ROOTDEPPATH = --dep-path .
-PRUNDEPPATH = --dep-path insn/prun
+PRUNDEPPATH = --dep-path insn$(DELIM)prun
POFFDEPPATH = --dep-path libpoff
PASDEPPATH = --dep-path libpas
-VPATH = insn/prun:libpoff:libpas
+VPATH = insn$(DELIM)prun:libpoff:libpas
all: .built
.PHONY: context depend clean distclean
@@ -103,17 +103,17 @@ else
$(call COMPILE, $<, $@)
endif
-$(APPDIR)/include/pcode: include
- @$(DIRLINK) $(PCODEDIR)/include $(APPDIR)/include/pcode
+$(APPDIR)$(DELIM)include$(DELIM)pcode: include
+ @$(DIRLINK) $(PCODEDIR)$(DELIM)include $(APPDIR)$(DELIM)include$(DELIM)pcode
-$(APPDIR)/include/pcode/insn: $(APPDIR)/include/pcode insn/include
- @$(DIRLINK) $(PCODEDIR)/insn/include $(APPDIR)/include/pcode/insn
+$(APPDIR)$(DELIM)include$(DELIM)pcode$(DELIM)insn: $(APPDIR)$(DELIM)include$(DELIM)pcode insn$(DELIM)include
+ @$(DIRLINK) $(PCODEDIR)$(DELIM)insn$(DELIM)include $(APPDIR)$(DELIM)include$(DELIM)pcode$(DELIM)insn
-.built: $(APPDIR)/include/pcode $(APPDIR)/include/pcode/insn $(OBJS)
+.built: $(APPDIR)$(DELIM)include$(DELIM)pcode $(APPDIR)$(DELIM)include$(DELIM)pcode$(DELIM)insn $(OBJS)
$(call ARCHIVE, $@, $(OBJS))
@touch .built
-context: $(APPDIR)/include/pcode $(APPDIR)/include/pcode/insn
+context: $(APPDIR)$(DELIM)include$(DELIM)pcode $(APPDIR)$(DELIM)include$(DELIM)pcode$(DELIM)insn
.depend: Makefile $(SRCS)
@$(MKDEP) $(ROOTDEPPATH) $(PRUNDEPPATH) $(POFFDEPPATH) $(PASDEPPATH) \
@@ -123,12 +123,13 @@ context: $(APPDIR)/include/pcode $(APPDIR)/include/pcode/insn
depend: .depend
clean:
- @rm -f *.o *~ .*.swp .built
+ $(call DELFILE .built)
$(call CLEAN)
distclean: clean
- @rm -f Make.dep .depend
- @$(DIRUNLINK) $(APPDIR)/include/pcode/insn
- @$(DIRUNLINK) $(APPDIR)/include/pcode
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
+ @$(DIRUNLINK) $(APPDIR)$(DELIM)include$(DELIM)pcode$(DELIM)insn
+ @$(DIRUNLINK) $(APPDIR)$(DELIM)include$(DELIM)pcode
-include Make.dep