summaryrefslogtreecommitdiff
path: root/nuttx/syscall
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 18:54:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 18:54:53 +0000
commita444a16f4746959a1332cb21749fbdf9a31df091 (patch)
treed220ebef3bfba64591298b4c51a0c0dd6e10ae0b /nuttx/syscall
parentb023c1b10ea54b6fc54f0ec747c766187c58190f (diff)
downloadpx4-nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.tar.gz
px4-nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.tar.bz2
px4-nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.zip
Most of the changes needed to support Windows native clean; distclean is has a problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5367 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/syscall')
-rw-r--r--nuttx/syscall/Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/nuttx/syscall/Makefile b/nuttx/syscall/Makefile
index a21eb04ee..15e06e097 100644
--- a/nuttx/syscall/Makefile
+++ b/nuttx/syscall/Makefile
@@ -34,11 +34,11 @@
###########################################################################
-include $(TOPDIR)/Make.defs
-include proxies/Make.defs
-include stubs/Make.defs
+include proxies$(DELIM)Make.defs
+include stubs$(DELIM)Make.defs
-MKSYSCALL = "$(TOPDIR)/tools/mksyscall$(EXEEXT)"
-CSVFILE = "$(TOPDIR)/syscall/syscall.csv"
+MKSYSCALL = "$(TOPDIR)$(DELIM)tools$(DELIM)mksyscall$(EXEEXT)"
+CSVFILE = "$(TOPDIR)$(DELIM)syscall$(DELIM)syscall.csv"
STUB_SRCS += stub_lookup.c
@@ -85,7 +85,7 @@ $(BIN2): $(STUB_OBJS)
depend: .depend
$(MKSYSCALL):
- $(Q) $(MAKE) -C $(TOPDIR)/tools -f Makefile.host mksyscall
+ $(Q) $(MAKE) -C $(TOPDIR)$(DELIM)tools -f Makefile.host mksyscall
.context: syscall.csv
$(Q) (cd proxies; $(MKSYSCALL) -p $(CSVFILE);)
@@ -95,15 +95,20 @@ $(MKSYSCALL):
context: $(MKSYSCALL) .context
clean:
- $(Q) rm -f $(BIN1) $(BIN2) *~ .*.swp
+ $(call DELFILE $(BIN1))
+ $(call DELFILE $(BIN2))
ifneq ($(OBJEXT),)
- $(Q) rm -f proxies/*$(OBJEXT) stubs/*$(OBJEXT)
+ $(call DELFILE proxies$(DELIM)*$(OBJEXT))
+ $(call DELFILE stubs$(DELIM)*$(OBJEXT))
endif
$(call CLEAN)
distclean: clean
- $(Q) rm -f Make.dep .depend .context
- $(Q) rm -f proxies/*.c stubs/*.c
+ $(call DELFILE .context)
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
+ $(call DELFILE proxies$(DELIM)*.c)
+ $(call DELFILE stubs$(DELIM)*.c)
-include Make.dep