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/pjrc-8051 | |
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/pjrc-8051')
-rw-r--r-- | nuttx/configs/pjrc-8051/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/pjrc-8051/src/Makefile | 5 |
2 files changed, 6 insertions, 3 deletions
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 |