Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / as / mcs51 / clean.mk
index 4704a9b35be5d8f1edf3760e67270d7c5eb0bce0..829d06942953889e3cb7ae41f405f07baeb890fa 100644 (file)
@@ -1,9 +1,11 @@
 # Deleting all files created by building the program
 # --------------------------------------------------
+include $(top_builddir)Makefile.common
+
 clean:
        rm -f *core *[%~] *.[oa]
        rm -f .[a-z]*~
-       rm -f $(PRJDIR)/asx8051 $(PRJDIR)/aslink asx8051 aslink
+       rm -f $(top_builddir)bin/asx8051$(EXEEXT) $(top_builddir)bin/aslink$(EXEEXT) asx8051$(EXEEXT) aslink$(EXEEXT)
 
 
 # Deleting all files created by configuring or building the program