summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-10 13:38:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-10 13:38:13 +0000
commitd04ce79590b7fc7427267b5d7af30385b732ee44 (patch)
tree5dac91e7eb2f45eed125a8e30428e361cc988f18 /nuttx/arch
parente7e5d179c9f7ab56ac378786de946f971f5a9f07 (diff)
downloadpx4-nuttx-d04ce79590b7fc7427267b5d7af30385b732ee44.tar.gz
px4-nuttx-d04ce79590b7fc7427267b5d7af30385b732ee44.tar.bz2
px4-nuttx-d04ce79590b7fc7427267b5d7af30385b732ee44.zip
Clean operations are now toolchain specific
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@542 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/arm/src/Makefile4
-rw-r--r--nuttx/arch/c5471/src/Makefile3
-rw-r--r--nuttx/arch/dm320/src/Makefile5
-rw-r--r--nuttx/arch/pjrc-8051/src/Makefile5
-rw-r--r--nuttx/arch/sim/src/Makefile4
-rw-r--r--nuttx/arch/z16/src/Makefile4
-rw-r--r--nuttx/arch/z80/src/Makefile6
7 files changed, 15 insertions, 16 deletions
diff --git a/nuttx/arch/arm/src/Makefile b/nuttx/arch/arm/src/Makefile
index 445577b4a..9e6bda77c 100644
--- a/nuttx/arch/arm/src/Makefile
+++ b/nuttx/arch/arm/src/Makefile
@@ -111,8 +111,8 @@ clean:
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- @rm -f libarch$(LIBEXT) *~
- @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
+ @rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call CLEAN)
distclean: clean
@if [ -e board/Makefile ]; then \
diff --git a/nuttx/arch/c5471/src/Makefile b/nuttx/arch/c5471/src/Makefile
index c04d9a9a6..1e7933b8f 100644
--- a/nuttx/arch/c5471/src/Makefile
+++ b/nuttx/arch/c5471/src/Makefile
@@ -113,7 +113,8 @@ clean:
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
fi
- rm -f libarch$(LIBEXT) *.o *.obj *~
+ @rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call CLEAN)
distclean: clean
@if [ -e board/Makefile ]; then \
diff --git a/nuttx/arch/dm320/src/Makefile b/nuttx/arch/dm320/src/Makefile
index 41b9a90ab..8ce53aa74 100644
--- a/nuttx/arch/dm320/src/Makefile
+++ b/nuttx/arch/dm320/src/Makefile
@@ -113,12 +113,13 @@ clean:
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
fi
- rm -f libarch$(LIBEXT) *.o *.obj *~
+ @rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call CLEAN)
distclean: clean
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR=$(TOPDIR) distclean ; \
fi
- rm -f Make.dep .depend
+ @rm -f Make.dep .depend
-include Make.dep
diff --git a/nuttx/arch/pjrc-8051/src/Makefile b/nuttx/arch/pjrc-8051/src/Makefile
index 5d95b2f78..d77bf546d 100644
--- a/nuttx/arch/pjrc-8051/src/Makefile
+++ b/nuttx/arch/pjrc-8051/src/Makefile
@@ -211,9 +211,8 @@ clean:
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
fi
- rm -f libarch$(LIBEXT) up_mem.h
- rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex *~
- if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
+ @rm -f libarch$(LIBEXT) up_mem.h *~ .*.swp
+ $(call CLEAN)
distclean: clean
@if [ -e board/Makefile ]; then \
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile
index c31c4e17e..ea92eb50c 100644
--- a/nuttx/arch/sim/src/Makefile
+++ b/nuttx/arch/sim/src/Makefile
@@ -101,8 +101,8 @@ nuttx$(EXEEXT): $(LINKOBJS)
depend: .depend
clean:
- @rm -f libarch$(LIBEXT) *~
- @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
+ @rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call CLEAN)
distclean: clean
@rm -f Make.dep .depend
diff --git a/nuttx/arch/z16/src/Makefile b/nuttx/arch/z16/src/Makefile
index 2ce3a3013..cd0692447 100644
--- a/nuttx/arch/z16/src/Makefile
+++ b/nuttx/arch/z16/src/Makefile
@@ -99,8 +99,8 @@ clean:
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- @rm -f libarch$(LIBEXT) *~
- @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
+ @rm -f libarch$(LIBEXT) *~ .*.swp
+ $(call CLEAN)
distclean: clean
@if [ -e board/Makefile ]; then \
diff --git a/nuttx/arch/z80/src/Makefile b/nuttx/arch/z80/src/Makefile
index 2c1f15c99..9f5e752d4 100644
--- a/nuttx/arch/z80/src/Makefile
+++ b/nuttx/arch/z80/src/Makefile
@@ -234,10 +234,8 @@ clean:
@if [ -e board/Makefile ]; then \
$(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
- rm -f libarch$(LIBEXT) up_mem.h asm_mem.h pass1.* nuttx.*
- rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex
- rm -f core *~ .*.swp *.swp
- if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
+ @rm -f libarch$(LIBEXT) up_mem.h asm_mem.h pass1.* nuttx.* *~ .*.swp
+ $(call CLEAN)
distclean: clean
@if [ -e board/Makefile ]; then \