Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / as / z80 / clean.mk
index 03e9e8daf4e8cfefe7835e61f69719b708131b90..579a48e57f0d62425fc9ac552844ab82edabadc2 100644 (file)
@@ -1,16 +1,18 @@
 # 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 $(BUILDDIR)/as-z80   as-z80
-       rm -f $(BUILDDIR)/as-gbz80 as-gbz80
+       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
 # -----------------------------------------------------------------
 distclean: clean
-       rm -f *.dep
+       rm -f Makefile *.dep
 
 
 # Like clean but some files may still exist