Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / as / z80 / clean.mk
index 4c86a51d69cda05fab86ebb016ffb7f49f64a8e3..579a48e57f0d62425fc9ac552844ab82edabadc2 100644 (file)
@@ -1,10 +1,13 @@
 # Deleting all files created by building the program
 # --------------------------------------------------
+include $(top_builddir)Makefile.common
+
 clean:
+       rm -rf obj
        rm -f *core *[%~] *.[oa]
        rm -f .[a-z]*~
-       rm -f $(PRJDIR)/as-z80 as-z80 
-
+       rm -f $(top_builddir)bin/as-z80$(EXEEXT)   as-z80$(EXEEXT)
+       rm -f $(top_builddir)bin/as-gbz80$(EXEEXT) as-gbz80$(EXEEXT)
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------