xref: /original-bsd/contrib/gcc-2.3.3/makefile (revision f737e041)
1#Build for 4.4BSD
2
3# Currently support 'hp300', 'luna68k', 'sparc', 'mips-dec' architectures.
4all:
5.if ${MACHINE} == "hp300"
6	rm -f aux-output.c; ln -s config/m68k.c aux-output.c
7	rm -f md; ln -s config/m68k.md md
8	rm -f tconfig.h; ln -s config/xm-m68k.h tconfig.h
9	rm -f tm.h; ln -s config/hp3bsd.h tm.h
10.elif ${MACHINE} == "luna68k"
11	rm -f aux-output.c; ln -s config/m68k.c aux-output.c
12	rm -f md; ln -s config/m68k.md md
13	rm -f tconfig.h; ln -s config/xm-m68k.h tconfig.h
14	rm -f tm.h; ln -s config/luna68k.h tm.h
15.elif ${MACHINE} == "mips"
16	rm -f aux-output.c; ln -s config/mips.c aux-output.c
17	rm -f md; ln -s config/mips.md md
18	rm -f tconfig.h; ln -s config/xm-mips.h tconfig.h
19	rm -f tm.h; ln -s config/mips-dec-bsd.h tm.h
20.elif ${MACHINE} == "sparc"
21	rm -f aux-output.c; ln -s config/sparc.c aux-output.c
22	rm -f md; ln -s config/sparc.md md
23	rm -f tconfig.h; ln -s config/xm-sparc.h tconfig.h
24	rm -f tm.h; ln -s config/sparcbsd.h tm.h
25.endif
26	make -f Makefile LANGUAGES="c"
27	make -f Makefile stage1
28	make -f Makefile "CC=stage1/xgcc -Bstage1/" LANGUAGES="c"
29	make -f Makefile stage2
30	make -f Makefile "CC=stage2/xgcc -Bstage2/" "CFLAGS+=-O2" \
31	    LANGUAGES="c c++"
32
33clean:
34	make -f Makefile clean
35	rm -rf stage1 stage2
36	rm -f cccp.0 g++.0 gcc.0
37
38install:
39	make -f Makefile install
40