src/LCF/Makefile
changeset 0 a5a9c433f639
child 102 e04cb6295a3f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/LCF/Makefile	Thu Sep 16 12:20:38 1993 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +#########################################################################
     1.5 +#									#
     1.6 +# 			Makefile for Isabelle (LCF)			#
     1.7 +#									#
     1.8 +#########################################################################
     1.9 +
    1.10 +#To make the system, cd to this directory and type  
    1.11 +#	make 
    1.12 +#To make the system and test it on standard examples, type  
    1.13 +#	make test
    1.14 +
    1.15 +#Environment variable ISABELLECOMP specifies the compiler.
    1.16 +#Environment variable ISABELLEBIN specifies the destination directory.
    1.17 +#For Poly/ML, ISABELLEBIN must begin with a /
    1.18 +
    1.19 +#Makes FOL if this file is ABSENT -- but not 
    1.20 +#if it is out of date, since this Makefile does not know its dependencies!
    1.21 +
    1.22 +BIN = $(ISABELLEBIN)
    1.23 +COMP = $(ISABELLECOMP)
    1.24 +FILES =  ROOT.ML lcf.thy lcf.ML simpdata.ML pair.ML fix.ML ex.ML
    1.25 +
    1.26 +#Uses cp rather than make_database because Poly/ML allows only 3 levels
    1.27 +$(BIN)/LCF:   $(BIN)/FOL  $(FILES) 
    1.28 +	case "$(COMP)" in \
    1.29 +	poly*)	cp $(BIN)/FOL $(BIN)/LCF;\
    1.30 +		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/LCF ;;\
    1.31 +	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/LCF" banner;' | $(BIN)/FOL;;\
    1.32 +	*)	echo Bad value for ISABELLECOMP;;\
    1.33 +	esac
    1.34 +
    1.35 +(BIN)/FOL:
    1.36 +	cd ../FOL;  $(MAKE)
    1.37 +
    1.38 +test:   ex.ML  $(BIN)/LCF
    1.39 +	case "$(COMP)" in \
    1.40 +	poly*)	echo 'use"ex.ML"; quit();' | $(COMP) $(BIN)/LCF ;;\
    1.41 +	sml*)	echo 'use"ex.ML";' | $(BIN)/LCF;;\
    1.42 +	*)	echo Bad value for ISABELLECOMP;;\
    1.43 +	esac
    1.44 +
    1.45 +.PRECIOUS:   $(BIN)/FOL  $(BIN)/LCF