Remove all references to the GC library, replacing GC_malloc
[fw/sdcc] / src / clean.mk
index 4b8f0618549cfb7f1994c92dc8706678eb5c96bd..b60ad6d7874bb653ed510fe58abad59afaec146d 100644 (file)
@@ -2,8 +2,11 @@
 # --------------------------------------------------
 clean:
        rm -f *core *[%~] *.[oa] *.output
-       rm -f .[a-z]*~
+       rm -f .[a-z]*~ \#*
        rm -f $(PRJDIR)/bin/sdcc sdcc
+       for port in $(PORTS) ; do\
+         $(MAKE) -C $$port -f clean.mk clean ;\
+       done
 
 
 # Deleting all files created by configuring or building the program
@@ -15,6 +18,9 @@ distclean: clean
 # Like clean but some files may still exist
 # -----------------------------------------
 mostlyclean: clean
+       rm -f SDCCy.c
+       rm -f SDCCy.h
+       rm -f SDCClex.c
 
 
 # Deleting everything that can reconstructed by this Makefile. It deletes