/* Copyright (C) 1992, Digital Equipment Corporation */ /* All rights reserved. */ /* See the file COPYRIGHT for a full description. */ /* Last modified on Fri Jan 15 15:01:58 PST 1993 by muller */ A = compiler C = $(A)/$(CPU_TYPE) all install:: $(C) FRC @(error=0; \ if test ! -f $(LIB_USE)/libm3.a; then \ echo "You need to install libm3 first"; error=1; fi; \ exit $$error) @for d in $(C); do \ (echo '--------------------------------------' $$d; \ cd $$d; $(BIN_USE)/m3make $@); \ done clean:: FRC rm -fr $(C) $(C): mkdir $@ #define NOCLEAN /***************************************************** snapshots and ports ***/ /*------------------------------------------------ build a cross compiler ---*/ cross:: compiler/cross-$(NEW) @cd compiler/cross-$(NEW); \ echo `date` "===================== cross compiler for $(NEW)"; \ m3make -DTARGET -DTARGET_$(NEW) compiler/cross-$(NEW): @mkdir $@ /*--------------------------------- bootstrap the driver and the compiler ---*/ #define one_boot(dir,new) @@\ dir##/boot-##new: @@\ mkdir $@ @@\ bootstrap_##dir:: dir##/boot-##new @@\ @cd dir##/boot-##new; \ @@\ echo `date` ===================== bootstrap dir for new; \ @@\ m3make -DTARGET -DTARGET_##new -DBUILD_BOOT \ @@\ M3DEFPATH=-Y0@../../compiler/cross-##new##/m3compiler@ bootstrap_both:: bootstrap_compiler bootstrap_driver one_boot (compiler,$(NEW)) one_boot (driver,$(NEW)) /*-------------------------------------------- scratch the bootstrap code ---*/ bootstrap_scratch:: @rm -fr driver/boot-$(NEW) @rm -fr compiler/boot-$(NEW) /*----------------------------------------- package the bootstrap version ---*/ pack:: boot_files tar cfhl - \ doc \ m3make \ driver/boot-$(NEW) \ driver/src/m3makefile \ compiler/boot-$(NEW) \ compiler/src/m3makefile \ -C ../pkg/top README COPYRIGHT m3makefile.boot m3makefile \ | compress > boot_files/boot.$(NEW).tar.Z boot_files: mkdir $@