summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/8051/src/Makefile6
-rw-r--r--nuttx/arch/arm/src/Makefile5
-rw-r--r--nuttx/arch/avr/src/Makefile5
-rw-r--r--nuttx/arch/hc/src/Makefile5
-rw-r--r--nuttx/arch/mips/src/Makefile5
-rw-r--r--nuttx/arch/rgmp/src/Makefile10
-rw-r--r--nuttx/arch/sh/src/Makefile5
-rw-r--r--nuttx/arch/sim/src/Makefile6
-rw-r--r--nuttx/arch/x86/src/Makefile5
-rw-r--r--nuttx/arch/z16/src/Makefile10
-rw-r--r--nuttx/arch/z80/src/Makefile.sdcc10
-rw-r--r--nuttx/arch/z80/src/Makefile.zdsii10
12 files changed, 54 insertions, 28 deletions
diff --git a/nuttx/arch/8051/src/Makefile b/nuttx/arch/8051/src/Makefile
index 4772834d9..6c87b8bc9 100644
--- a/nuttx/arch/8051/src/Makefile
+++ b/nuttx/arch/8051/src/Makefile
@@ -221,13 +221,15 @@ clean:
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
fi
- $(Q) rm -f libarch$(LIBEXT) up_mem.h *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
+ $(call DELFILE up_mem.h)
$(call CLEAN)
distclean: clean
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR=$(TOPDIR) distclean ; \
fi
- rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/arm/src/Makefile b/nuttx/arch/arm/src/Makefile
index a48d18799..a6d5fa4f4 100644
--- a/nuttx/arch/arm/src/Makefile
+++ b/nuttx/arch/arm/src/Makefile
@@ -178,13 +178,14 @@ clean:
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" clean
endif
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/avr/src/Makefile b/nuttx/arch/avr/src/Makefile
index 462968ed5..69d3a0fc0 100644
--- a/nuttx/arch/avr/src/Makefile
+++ b/nuttx/arch/avr/src/Makefile
@@ -171,14 +171,15 @@ clean:
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" clean
endif
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/hc/src/Makefile b/nuttx/arch/hc/src/Makefile
index 0ada6c4c2..7353b44ea 100644
--- a/nuttx/arch/hc/src/Makefile
+++ b/nuttx/arch/hc/src/Makefile
@@ -166,13 +166,14 @@ clean:
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" clean
endif
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/mips/src/Makefile b/nuttx/arch/mips/src/Makefile
index 057b95d22..b27fe8730 100644
--- a/nuttx/arch/mips/src/Makefile
+++ b/nuttx/arch/mips/src/Makefile
@@ -164,13 +164,14 @@ clean:
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" clean
endif
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/rgmp/src/Makefile b/nuttx/arch/rgmp/src/Makefile
index 7650a0a94..019dca465 100644
--- a/nuttx/arch/rgmp/src/Makefile
+++ b/nuttx/arch/rgmp/src/Makefile
@@ -96,12 +96,14 @@ export_head:
depend: .depend
clean:
- @rm -f $(TOPDIR)/arch/rgmp/src/x86/*.o
- @rm -f $(TOPDIR)/kernel.img nuttx.img
- @rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE "$(TOPDIR)/arch/rgmp/src/x86/*.o")
+ $(call DELFILE "$(TOPDIR)/kernel.img")
+ $(call DELFILE nuttx.img)
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
- @rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/sh/src/Makefile b/nuttx/arch/sh/src/Makefile
index 132ca4610..af7c481a9 100644
--- a/nuttx/arch/sh/src/Makefile
+++ b/nuttx/arch/sh/src/Makefile
@@ -161,13 +161,14 @@ clean:
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" clean
endif
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile
index a5d6100a3..5abd6ce4f 100644
--- a/nuttx/arch/sim/src/Makefile
+++ b/nuttx/arch/sim/src/Makefile
@@ -214,14 +214,16 @@ clean: cleanrel
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- $(Q) rm -f nuttx.rel libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE nuttx.rel)
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
$(Q) rm -rf GNU
-include Make.dep
diff --git a/nuttx/arch/x86/src/Makefile b/nuttx/arch/x86/src/Makefile
index 19193709c..e93dc2657 100644
--- a/nuttx/arch/x86/src/Makefile
+++ b/nuttx/arch/x86/src/Makefile
@@ -172,13 +172,14 @@ clean:
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" clean
endif
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
ifeq ($(BOARDMAKE),y)
$(Q) $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean
endif
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/z16/src/Makefile b/nuttx/arch/z16/src/Makefile
index 44f96d03d..d3f581998 100644
--- a/nuttx/arch/z16/src/Makefile
+++ b/nuttx/arch/z16/src/Makefile
@@ -137,16 +137,20 @@ clean:
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
ifeq ($(COMPILER),zneocc.exe)
- $(Q) rm -f nuttx.linkcmd *.asm *.tmp *.map
+ $(call DELFILE nuttx.linkcmd)
+ $(call DELFILE *.asm)
+ $(call DELFILE *.tmp)
+ $(call DELFILE *.map)
endif
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/z80/src/Makefile.sdcc b/nuttx/arch/z80/src/Makefile.sdcc
index 7c9f45a6c..e29fa9fda 100644
--- a/nuttx/arch/z80/src/Makefile.sdcc
+++ b/nuttx/arch/z80/src/Makefile.sdcc
@@ -240,13 +240,19 @@ clean:
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- $(Q) rm -f libarch$(LIBEXT) up_mem.h asm_mem.h pass1.* nuttx.* *~ .*.swp
+ $(call DELFILE up_mem.h)
+ $(call DELFILE asm_mem.h)
+ $(call DELFILE pass1.*)
+ $(call DELFILE nuttx.*)
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
+
distclean: clean
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep
diff --git a/nuttx/arch/z80/src/Makefile.zdsii b/nuttx/arch/z80/src/Makefile.zdsii
index 666af8945..1d7b1f96d 100644
--- a/nuttx/arch/z80/src/Makefile.zdsii
+++ b/nuttx/arch/z80/src/Makefile.zdsii
@@ -150,14 +150,18 @@ clean:
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- $(Q) rm -f libarch$(LIBEXT) *~ .*.swp
- $(Q) rm -f nuttx.linkcmd *.asm *.tmp *.map
+ $(call DELFILE nuttx.linkcmd)
+ $(call DELFILE *.asm)
+ $(call DELFILE *.tmp)
+ $(call DELFILE *.map)
+ $(call DELFILE libarch$(LIBEXT))
$(call CLEAN)
distclean: clean
$(Q) if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
- $(Q) rm -f Make.dep .depend
+ $(call DELFILE Make.dep)
+ $(call DELFILE .depend)
-include Make.dep