summaryrefslogtreecommitdiff
path: root/nuttx/configs/z80sim
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/z80sim')
-rw-r--r--nuttx/configs/z80sim/Make.defs4
-rw-r--r--nuttx/configs/z80sim/src/Makefile5
2 files changed, 6 insertions, 3 deletions
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