diff options
Diffstat (limited to 'nuttx/configs/c5471evm')
-rw-r--r-- | nuttx/configs/c5471evm/Make.defs | 4 | ||||
-rw-r--r-- | nuttx/configs/c5471evm/src/Makefile | 4 |
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 |