gbdk-releases/sdcc/src/clean.mk

36 lines
967 B
Makefile
Raw Permalink Normal View History

2015-01-10 16:25:09 +01:00
CLEANALLPORTS = avr ds390 izt mcs51 pic z80
PRJDIR = ..
2015-01-10 16:25:06 +01:00
# Deleting all files created by building the program
# --------------------------------------------------
clean:
rm -f *core *[%~] *.[oa] *.output
2015-01-10 16:25:09 +01:00
rm -f .[a-z]*~ \#*
2015-01-10 16:25:06 +01:00
rm -f $(PRJDIR)/bin/sdcc sdcc
2015-01-10 16:25:09 +01:00
for port in $(CLEANALLPORTS) ; do\
$(MAKE) -C $$port -f ../port-clean.mk clean ;\
2015-01-10 16:25:06 +01:00
done
# Deleting all files created by configuring or building the program
# -----------------------------------------------------------------
distclean: clean
rm -f Makefile *.dep
# Like clean but some files may still exist
# -----------------------------------------
mostlyclean: clean
2015-01-10 16:25:09 +01:00
rm -f SDCCy.c
rm -f SDCCy.h
rm -f SDCClex.c
2015-01-10 16:25:06 +01:00
# Deleting everything that can reconstructed by this Makefile. It deletes
# everything deleted by distclean plus files created by bison, etc.
# -----------------------------------------------------------------------
realclean: distclean
rm -f SDCCy.c
rm -f SDCCy.h
rm -f SDCClex.c