Most of the changes needed to support Windows native clean; distclean is has a problem

git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5367 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-11-17 18:54:53 +00:00
parent cc099195b8
commit d4dca58d93
142 changed files with 861 additions and 616 deletions
+14 -9
View File
@@ -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