diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-10 13:38:13 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-10 13:38:13 +0000 |
commit | d04ce79590b7fc7427267b5d7af30385b732ee44 (patch) | |
tree | 5dac91e7eb2f45eed125a8e30428e361cc988f18 /nuttx/configs | |
parent | e7e5d179c9f7ab56ac378786de946f971f5a9f07 (diff) | |
download | px4-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/configs')
-rw-r--r-- | nuttx/configs/README.txt | 2 | ||||
-rw-r--r-- | nuttx/configs/c5471evm/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/c5471evm/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/configs/m68332evb/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/m68332evb/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/configs/mcu123-lpc214x/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/mcu123-lpc214x/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/configs/ntosd-dm320/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/ntosd-dm320/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/configs/pjrc-8051/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/pjrc-8051/src/Makefile | 5 | ||||
-rw-r--r-- | nuttx/configs/sim/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/sim/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/configs/z16f2800100zcog/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/z16f2800100zcog/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/configs/z80sim/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/z80sim/src/Makefile | 5 |
17 files changed, 49 insertions, 19 deletions
diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt index 3bcb62e00..fb6c65565 100644 --- a/nuttx/configs/README.txt +++ b/nuttx/configs/README.txt @@ -81,7 +81,7 @@ Make.defs -- This makefile fragment provides architecture and Tools: CC, LD, AR, NM, OBJCOPY, OBJDUMP Tool options: CFLAGS, LDFLAGS - COMPILE, ASSEMBLE, ARCHIVE, and MKDEP macros + COMPILE, ASSEMBLE, ARCHIVE, CLEAN, and MKDEP macros When this makefile fragment runs, it will be passed TOPDIR which is the path to the root directory of the build. This makefile diff --git a/nuttx/configs/c5471evm/Make.defs b/nuttx/configs/c5471evm/Make.defs index cda4d7208..bd44f0f7f 100644 --- a/nuttx/configs/c5471evm/Make.defs +++ b/nuttx/configs/c5471evm/Make.defs @@ -84,6 +84,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.o *.a +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/c5471evm/src/Makefile b/nuttx/configs/c5471evm/src/Makefile index 4b0541ae1..9a05c0162 100644 --- a/nuttx/configs/c5471evm/src/Makefile +++ b/nuttx/configs/c5471evm/src/Makefile @@ -68,8 +68,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/m68332evb/Make.defs b/nuttx/configs/m68332evb/Make.defs index af4a88011..f12369c97 100644 --- a/nuttx/configs/m68332evb/Make.defs +++ b/nuttx/configs/m68332evb/Make.defs @@ -84,6 +84,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.o *.a +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/m68332evb/src/Makefile b/nuttx/configs/m68332evb/src/Makefile index a3c568cec..0265ec858 100644 --- a/nuttx/configs/m68332evb/src/Makefile +++ b/nuttx/configs/m68332evb/src/Makefile @@ -65,8 +65,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/mcu123-lpc214x/Make.defs b/nuttx/configs/mcu123-lpc214x/Make.defs index 356b6e9c7..70c1d8cc5 100644 --- a/nuttx/configs/mcu123-lpc214x/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/Make.defs @@ -84,6 +84,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.o *.a +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/mcu123-lpc214x/src/Makefile b/nuttx/configs/mcu123-lpc214x/src/Makefile index 93dea86be..ab06f2002 100644 --- a/nuttx/configs/mcu123-lpc214x/src/Makefile +++ b/nuttx/configs/mcu123-lpc214x/src/Makefile @@ -68,8 +68,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/ntosd-dm320/Make.defs b/nuttx/configs/ntosd-dm320/Make.defs index 1be65e7b8..25acc1e41 100644 --- a/nuttx/configs/ntosd-dm320/Make.defs +++ b/nuttx/configs/ntosd-dm320/Make.defs @@ -84,6 +84,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.o *.a +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/ntosd-dm320/src/Makefile b/nuttx/configs/ntosd-dm320/src/Makefile index de36b3d5c..45a008c58 100644 --- a/nuttx/configs/ntosd-dm320/src/Makefile +++ b/nuttx/configs/ntosd-dm320/src/Makefile @@ -68,8 +68,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/pjrc-8051/Make.defs b/nuttx/configs/pjrc-8051/Make.defs index 5c2482e37..5c77c6f22 100644 --- a/nuttx/configs/pjrc-8051/Make.defs +++ b/nuttx/configs/pjrc-8051/Make.defs @@ -77,6 +77,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/pjrc-8051/src/Makefile b/nuttx/configs/pjrc-8051/src/Makefile index 31066a637..0d6a7f05a 100644 --- a/nuttx/configs/pjrc-8051/src/Makefile +++ b/nuttx/configs/pjrc-8051/src/Makefile @@ -67,9 +67,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) - rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/sim/Make.defs b/nuttx/configs/sim/Make.defs index 528d8cf53..28069e16a 100644 --- a/nuttx/configs/sim/Make.defs +++ b/nuttx/configs/sim/Make.defs @@ -83,6 +83,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.o *.a +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/sim/src/Makefile b/nuttx/configs/sim/src/Makefile index 55f686091..076b917c5 100644 --- a/nuttx/configs/sim/src/Makefile +++ b/nuttx/configs/sim/src/Makefile @@ -65,8 +65,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/z16f2800100zcog/Make.defs b/nuttx/configs/z16f2800100zcog/Make.defs index 7e1984384..8c5b7edfd 100644 --- a/nuttx/configs/z16f2800100zcog/Make.defs +++ b/nuttx/configs/z16f2800100zcog/Make.defs @@ -131,6 +131,10 @@ define ARCHIVE $(AR) $(ARFLAGS) $1=-+$2 || { echo "$(AR) $1=-+$2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.obj *.src *.lib *.hex +endef + # This is the tool to use for dependencies (i.e., none) MKDEP = $(TOPDIR)/tools/mknulldeps.sh diff --git a/nuttx/configs/z16f2800100zcog/src/Makefile b/nuttx/configs/z16f2800100zcog/src/Makefile index a479cdbe2..33ac4263b 100644 --- a/nuttx/configs/z16f2800100zcog/src/Makefile +++ b/nuttx/configs/z16f2800100zcog/src/Makefile @@ -70,8 +70,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend diff --git a/nuttx/configs/z80sim/Make.defs b/nuttx/configs/z80sim/Make.defs index 2e4c6db47..75b6de6c8 100644 --- a/nuttx/configs/z80sim/Make.defs +++ b/nuttx/configs/z80sim/Make.defs @@ -82,6 +82,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/z80sim/src/Makefile b/nuttx/configs/z80sim/src/Makefile index fba996597..472037c58 100644 --- a/nuttx/configs/z80sim/src/Makefile +++ b/nuttx/configs/z80sim/src/Makefile @@ -67,9 +67,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) - rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend |