mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Completes removal bash ARCHIVE loop; Adds basic Makefile for native windows build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5338 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+12
-12
@@ -83,23 +83,23 @@ $(BIN): $(OBJS)
|
||||
|
||||
ifneq ($(BIN),$(UBIN))
|
||||
.userlib:
|
||||
@$(MAKE) $(UBIN) BIN=$(UBIN) TOPDIR=$(TOPDIR) EXTRADEFINES=$(EXTRADEFINES)
|
||||
@touch .userlib
|
||||
$(Q) $(MAKE) $(UBIN) BIN=$(UBIN) TOPDIR=$(TOPDIR) EXTRADEFINES=$(EXTRADEFINES)
|
||||
$(Q) touch .userlib
|
||||
|
||||
$(UBIN): kclean .userlib
|
||||
endif
|
||||
|
||||
ifneq ($(BIN),$(KBIN))
|
||||
.kernlib:
|
||||
@$(MAKE) $(KBIN) BIN=$(KBIN) TOPDIR=$(TOPDIR) EXTRADEFINES=$(EXTRADEFINES)
|
||||
@touch .kernlib
|
||||
$(Q) $(MAKE) $(KBIN) BIN=$(KBIN) TOPDIR=$(TOPDIR) EXTRADEFINES=$(EXTRADEFINES)
|
||||
$(Q) touch .kernlib
|
||||
|
||||
$(KBIN): uclean .kernlib
|
||||
endif
|
||||
|
||||
.depend: Makefile $(SRCS)
|
||||
@$(MKDEP) $(DEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||
@touch $@
|
||||
$(Q) $(MKDEP) $(DEPPATH) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||
$(Q) touch $@
|
||||
|
||||
depend: .depend
|
||||
|
||||
@@ -108,27 +108,27 @@ depend: .depend
|
||||
|
||||
uclean:
|
||||
ifneq ($(OBJEXT),)
|
||||
@( if [ -f .userlib ]; then rm -f *$(OBJEXT); fi )
|
||||
$(Q) ( if [ -f .userlib ]; then rm -f *$(OBJEXT); fi )
|
||||
endif
|
||||
@rm -f .userlib *~ .*.swp
|
||||
$(Q) rm -f .userlib *~ .*.swp
|
||||
|
||||
# Clean kernel-mode temporary files (retaining the KBIN binary)
|
||||
|
||||
kclean:
|
||||
ifneq ($(OBJEXT),)
|
||||
@( if [ -f .kernlib ]; then rm -f *$(OBJEXT); fi )
|
||||
$(Q) ( if [ -f .kernlib ]; then rm -f *$(OBJEXT); fi )
|
||||
endif
|
||||
@rm -f .kernlib *~ .*.swp
|
||||
$(Q) rm -f .kernlib *~ .*.swp
|
||||
|
||||
# Really clean everything
|
||||
|
||||
clean: uclean kclean
|
||||
@rm -f $(BIN) $(UBIN) $(KBIN) *~ .*.swp
|
||||
$(Q) rm -f $(BIN) $(UBIN) $(KBIN) *~ .*.swp
|
||||
$(call CLEAN)
|
||||
|
||||
# Deep clean -- removes all traces of the configuration
|
||||
|
||||
distclean: clean
|
||||
@rm -f Make.dep .depend
|
||||
$(Q) rm -f Make.dep .depend
|
||||
|
||||
-include Make.dep
|
||||
|
||||
Reference in New Issue
Block a user