* as/hc08/clean.mk,
[fw/sdcc] / as / mcs51 / clean.mk
index 4704a9b35be5d8f1edf3760e67270d7c5eb0bce0..c36ba5e146c84c9303e3fac5e25d2006c240f1d1 100644 (file)
@@ -1,21 +1,21 @@
 # Deleting all files created by building the program
 # --------------------------------------------------
-clean:
-       rm -f *core *[%~] *.[oa]
-       rm -f .[a-z]*~
-       rm -f $(PRJDIR)/asx8051 $(PRJDIR)/aslink asx8051 aslink
+include $(top_builddir)/Makefile.common
 
+clean: mostlyclean
+       rm -f *.dep
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------
 distclean: clean
-       rm -f Makefile *.dep
-
+       rm -f Makefile
 
 # Like clean but some files may still exist
 # -----------------------------------------
-mostlyclean: clean
-
+mostlyclean:
+       rm -f *core *[%~] *.[oa]
+       rm -f .[a-z]*~
+       rm -f $(top_builddir)/bin/asx8051$(EXEEXT) asx8051$(EXEEXT)
 
 # Deleting everything that can reconstructed by this Makefile. It deletes
 # everything deleted by distclean plus files created by bison, etc.