struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / src / clean.mk
blob2b74e874d20b0954631c30abe02be650a9455da7
1 CLEANALLPORTS = avr ds390 ds400 hc08 mos6502 mcs51 pic14 pic16 stm8 z80 xa51 pdk f8
3 # Deleting all files created by building the program
4 # --------------------------------------------------
5 clean:
6 rm -f *core *[%~] *.[oa] *.output
7 rm -f .[a-z]*~ \#*
8 rm -f version.h
9 rm -f SDCCy.c SDCCy.h SDCClex.c
10 rm -f $(TARGET)
11 for port in $(CLEANALLPORTS) ; do\
12 if [ -f $$port/Makefile ]; then\
13 $(MAKE) -C $$port clean ;\
14 fi;\
15 done
18 # Deleting all files created by configuring or building the program
19 # -----------------------------------------------------------------
20 distclean: clean
21 rm -f Makefile *.dep *.depcc *.depcxx
22 for port in $(CLEANALLPORTS) ; do\
23 if [ -f $$port/Makefile ]; then\
24 $(MAKE) -C $$port distclean ;\
25 fi;\
26 done
29 # Like clean but some files may still exist
30 # -----------------------------------------
31 mostlyclean: clean
32 rm -f SDCCy.c
33 rm -f SDCCy.h
34 rm -f SDCClex.c
37 # Deleting everything that can reconstructed by this Makefile. It deletes
38 # everything deleted by distclean plus files created by bison, etc.
39 # -----------------------------------------------------------------------
40 realclean: distclean
41 rm -f SDCCy.c
42 rm -f SDCCy.h
43 rm -f SDCClex.c