struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / clean.mk
blob41768f9c222308c833b29aae55810d69dbd9603b
1 CLEANALLPORTS = pic14 pic16
2 include $(srcdir)/incl.mk
4 # Deleting all files created by building the program
5 # --------------------------------------------------
6 clean:
7 rm -f *core *[%~] *.[oa] *.rel *.lst *.sym *.asm *.ihx *.dump* *.cdb
8 rm -f .[a-z]*~
9 rm -f *.dump*
10 rm -rf build
11 for model in $(MODELS); do\
12 if [ -d $$model ]; then\
13 $(MAKE) -C $$model clean ;\
14 fi;\
15 rm -rf $${model}-xstack-auto $${model}-stack-auto ;\
16 done
17 for port in $(CLEANALLPORTS) ; do\
18 if [ -f $$port/Makefile ]; then\
19 $(MAKE) -C $$port clean ;\
20 fi;\
21 done
24 # Deleting all files created by configuring or building the program
25 # -----------------------------------------------------------------
26 distclean: clean
27 rm -f Makefile *.dep
28 for port in $(CLEANALLPORTS) ; do\
29 if [ -f $$port/Makefile ]; then\
30 $(MAKE) -C $$port distclean ;\
31 fi;\
32 done
34 # Like clean but some files may still exist
35 # -----------------------------------------
36 mostlyclean: clean
39 # Deleting everything that can reconstructed by this Makefile. It deletes
40 # everything deleted by distclean plus files created by bison, etc.
41 # -----------------------------------------------------------------------
42 realclean: distclean