summaryrefslogtreecommitdiff
path: root/nuttx/configs/pjrc-8051
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/pjrc-8051')
-rw-r--r--nuttx/configs/pjrc-8051/Make.defs4
-rw-r--r--nuttx/configs/pjrc-8051/src/Makefile5
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