summaryrefslogtreecommitdiff
path: root/nuttx/configs/c5471evm
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/configs/c5471evm
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/configs/c5471evm')
-rw-r--r--nuttx/configs/c5471evm/Make.defs4
-rw-r--r--nuttx/configs/c5471evm/src/Makefile4
2 files changed, 6 insertions, 2 deletions
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