# Currently support 'hp300', 'luna68k', 'sparc', 'mips-dec' architectures.
.if ${MACHINE} == "hp300"
rm -f aux-output.c; ln -s config/m68k.c aux-output.c
rm -f md; ln -s config/m68k.md md
rm -f tconfig.h; ln -s config/xm-m68k.h tconfig.h
rm -f tm.h; ln -s config/hp3bsd.h tm.h
.elif ${MACHINE} == "luna68k"
rm -f aux-output.c; ln -s config/m68k.c aux-output.c
rm -f md; ln -s config/m68k.md md
rm -f tconfig.h; ln -s config/xm-m68k.h tconfig.h
rm -f tm.h; ln -s config/luna68k.h tm.h
.elif ${MACHINE} == "mips"
rm -f aux-output.c; ln -s config/mips.c aux-output.c
rm -f md; ln -s config/mips.md md
rm -f tconfig.h; ln -s config/xm-mips.h tconfig.h
rm -f tm.h; ln -s config/mips-dec-bsd.h tm.h
.elif ${MACHINE} == "sparc"
rm -f aux-output.c; ln -s config/sparc.c aux-output.c
rm -f md; ln -s config/sparc.md md
rm -f tconfig.h; ln -s config/xm-sparc.h tconfig.h
rm -f tm.h; ln -s config/sparcbsd.h tm.h
make -f Makefile LANGUAGES="c"
make -f Makefile "CC=stage1/xgcc -Bstage1/" LANGUAGES="c"
make -f Makefile "CC=stage2/xgcc -Bstage2/" "CFLAGS+=-O2" \