src/HOL/Makefile
changeset 923 ff1574a81019
child 944 01d6571fa106
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/HOL/Makefile	Fri Mar 03 12:02:25 1995 +0100
     1.3 @@ -0,0 +1,114 @@
     1.4 +#########################################################################
     1.5 +#									#
     1.6 +# 			Makefile for Isabelle (CHOL)			#
     1.7 +#									#
     1.8 +#########################################################################
     1.9 +
    1.10 +#To make the system, cd to this directory and type  
    1.11 +#	make -f Makefile 
    1.12 +#To make the system and test it on standard examples, type  
    1.13 +#	make -f Makefile 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 pure Isabelle (Pure) 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 +THYS = HOL.thy Ord.thy Set.thy Fun.thy subset.thy \
    1.25 +       equalities.thy Prod.thy Trancl.thy Sum.thy WF.thy \
    1.26 +       mono.thy Lfp.thy Gfp.thy Nat.thy Inductive.thy \
    1.27 +       Finite.thy Arith.thy Sexp.thy Univ.thy List.thy 
    1.28 +
    1.29 +FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML\
    1.30 +	ind_syntax.ML indrule.ML intr_elim.ML simpdata.ML\
    1.31 +	subtype.ML thy_syntax.ML ../Pure/section_utils.ML\
    1.32 +	../Provers/classical.ML ../Provers/simplifier.ML \
    1.33 +	../Provers/splitter.ML ../Provers/ind.ML $(THYS) $(THYS:.thy=.ML)
    1.34 +
    1.35 +$(BIN)/CHOL:   $(BIN)/Pure  $(FILES) 
    1.36 +	if [ -d $${ISABELLEBIN:?}/Pure ];\
    1.37 +           	then echo Bad value for ISABELLEBIN: \
    1.38 +                	$(BIN) is the Isabelle source directory; \
    1.39 +                	exit 1; \
    1.40 +           	fi;\
    1.41 +	case "$(COMP)" in \
    1.42 +	poly*)	echo 'make_database"$(BIN)/CHOL"; quit();'  \
    1.43 +			| $(COMP) $(BIN)/Pure;\
    1.44 +		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CHOL ;;\
    1.45 +	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/CHOL" banner;' | $(BIN)/Pure ;;\
    1.46 +	*)	echo Bad value for ISABELLECOMP: \
    1.47 +                	$(COMP) is not poly or sml; exit 1;;\
    1.48 +	esac
    1.49 +
    1.50 +$(BIN)/Pure:
    1.51 +	cd ../Pure;  $(MAKE)
    1.52 +
    1.53 +#### Testing of CHOL
    1.54 +
    1.55 +#A macro referring to the object-logic (depends on ML compiler)
    1.56 +LOGIC:sh=case $ISABELLECOMP in \
    1.57 +	poly*)	echo "$ISABELLECOMP $ISABELLEBIN/CHOL" ;;\
    1.58 +	sml*)	echo "$ISABELLEBIN/CHOL" ;;\
    1.59 +	*)	echo "echo Bad value for ISABELLECOMP: \
    1.60 +                	$ISABELLEBIN is not poly or sml; exit 1" ;;\
    1.61 +	esac
    1.62 +
    1.63 +##IMP-semantics example
    1.64 +IMP_THYS = IMP/Com.thy IMP/Denotation.thy IMP/Equiv.thy IMP/Properties.thy
    1.65 +IMP_FILES = IMP/ROOT.ML $(IMP_THYS) $(IMP_THYS:.thy=.ML)
    1.66 +
    1.67 +IMP:    $(BIN)/CHOL  $(IMP_FILES)
    1.68 +	echo 'use"IMP/ROOT.ML";quit();' | $(LOGIC)
    1.69 +
    1.70 +##The integers in CHOL
    1.71 +INTEG_THYS = Integ/Relation.thy Integ/Equiv.thy Integ/Integ.thy 
    1.72 +
    1.73 +INTEG_FILES = Integ/ROOT.ML $(INTEG_THYS) $(INTEG_THYS:.thy=.ML)
    1.74 +
    1.75 +Integ:  $(BIN)/CHOL  $(INTEG_FILES)
    1.76 +	echo 'use"Integ/ROOT.ML";quit();' | $(LOGIC)
    1.77 +
    1.78 +##I/O Automata
    1.79 +IOA_THYS = IOA/example/Action.thy IOA/example/Channels.thy\
    1.80 +	   IOA/example/Correctness.thy IOA/example/Impl.thy \
    1.81 +	   IOA/example/Lemmas.thy IOA/example/Multiset.thy \
    1.82 +	   IOA/example/Receiver.thy IOA/example/Sender.thy \
    1.83 +	   IOA/meta_theory/Asig.thy IOA/meta_theory/IOA.thy \
    1.84 +	   IOA/meta_theory/Option.thy IOA/meta_theory/Solve.thy
    1.85 +
    1.86 +IOA_FILES = IOA/ROOT.ML IOA/example/Packet.thy IOA/example/Spec.thy\
    1.87 +	    $(IOA_THYS) $(IOA_THYS:.thy=.ML)
    1.88 +
    1.89 +IOA:    $(BIN)/CHOL  $(IOA_FILES)
    1.90 +	echo 'use"IOA/ROOT.ML";quit();' | $(LOGIC)
    1.91 +
    1.92 +##Properties of substitutions
    1.93 +SUBST_THYS = Subst/AList.thy Subst/Setplus.thy\
    1.94 +	     Subst/Subst.thy Subst/Unifier.thy\
    1.95 +	     Subst/UTerm.thy Subst/UTLemmas.thy
    1.96 +
    1.97 +SUBST_FILES = Subst/ROOT.ML $(SUBST_THYS) $(SUBST_THYS:.thy=.ML)
    1.98 +
    1.99 +Subst:  $(BIN)/CHOL  $(SUBST_FILES)
   1.100 +	echo 'use"Subst/ROOT.ML";quit();' | $(LOGIC)
   1.101 +
   1.102 +##Miscellaneous examples
   1.103 +EX_THYS = ex/LexProd.thy ex/MT.thy ex/Acc.thy \
   1.104 +	  ex/PropLog.thy ex/Puzzle.thy ex/Qsort.thy ex/LList.thy \
   1.105 +	  ex/Rec.thy ex/Simult.thy ex/Term.thy ex/String.thy 
   1.106 +
   1.107 +EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
   1.108 +           ex/set.ML $(EX_THYS) $(EX_THYS:.thy=.ML)
   1.109 +
   1.110 +ex:     $(BIN)/CHOL  $(EX_FILES)
   1.111 +	echo 'use"ex/ROOT.ML";quit();' | $(LOGIC)
   1.112 +
   1.113 +#Full test.
   1.114 +test:   $(BIN)/CHOL IMP Integ IOA Subst ex
   1.115 +	echo 'Test examples ran successfully' > test
   1.116 +
   1.117 +.PRECIOUS:  $(BIN)/Pure $(BIN)/CHOL