author | nipkow |
Mon, 13 Nov 1995 16:44:48 +0100 | |
changeset 1329 | 8987c0df4b2f |
parent 1301 | 42782316d510 |
child 1336 | 38d66830a046 |
permissions | -rw-r--r-- |
1296 | 1 |
# $Id$ |
923 | 2 |
######################################################################### |
3 |
# # |
|
1164 | 4 |
# Makefile for Isabelle (HOL) # |
923 | 5 |
# # |
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
1296 | 9 |
# make |
923 | 10 |
#To make the system and test it on standard examples, type |
1296 | 11 |
# make test |
12 |
#To generate HTML files for every theory, set the environment variable |
|
13 |
#MAKE_HTML or add the parameter "MAKE_HTML=". |
|
923 | 14 |
|
15 |
#Environment variable ISABELLECOMP specifies the compiler. |
|
16 |
#Environment variable ISABELLEBIN specifies the destination directory. |
|
17 |
#For Poly/ML, ISABELLEBIN must begin with a / |
|
18 |
||
19 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not |
|
20 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
21 |
||
22 |
BIN = $(ISABELLEBIN) |
|
23 |
COMP = $(ISABELLECOMP) |
|
1129 | 24 |
NAMES = HOL Ord Set Fun subset equalities Prod Relation Trancl Sum WF \ |
1044 | 25 |
mono Lfp Gfp Nat Inductive Finite Arith Sexp Univ List |
923 | 26 |
|
27 |
FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML\ |
|
28 |
ind_syntax.ML indrule.ML intr_elim.ML simpdata.ML\ |
|
29 |
subtype.ML thy_syntax.ML ../Pure/section_utils.ML\ |
|
944
01d6571fa106
Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents:
923
diff
changeset
|
30 |
../Provers/hypsubst.ML ../Provers/classical.ML\ |
01d6571fa106
Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents:
923
diff
changeset
|
31 |
../Provers/simplifier.ML ../Provers/splitter.ML\ |
1044 | 32 |
$(NAMES:%=%.thy) $(NAMES:%=%.ML) |
923 | 33 |
|
1164 | 34 |
$(BIN)/HOL: $(BIN)/Pure $(FILES) |
923 | 35 |
if [ -d $${ISABELLEBIN:?}/Pure ];\ |
36 |
then echo Bad value for ISABELLEBIN: \ |
|
37 |
$(BIN) is the Isabelle source directory; \ |
|
38 |
exit 1; \ |
|
39 |
fi;\ |
|
40 |
case "$(COMP)" in \ |
|
1164 | 41 |
poly*) echo 'make_database"$(BIN)/HOL"; quit();' \ |
1296 | 42 |
| $(COMP) $(BIN)/Pure;\ |
43 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
|
44 |
then echo 'open PolyML; init_html (); exit_use"ROOT";' \ |
|
45 |
| $(COMP) $(BIN)/HOL;\ |
|
46 |
else echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/HOL;\ |
|
47 |
fi;;\ |
|
48 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
49 |
then echo 'init_html (); exit_use"ROOT.ML"; xML"$(BIN)/HOL" banner;' | $(BIN)/Pure;\ |
|
50 |
else echo 'exit_use"ROOT.ML"; xML"$(BIN)/HOL" banner;' \ |
|
51 |
| $(BIN)/Pure;\ |
|
52 |
fi;;\ |
|
923 | 53 |
*) echo Bad value for ISABELLECOMP: \ |
54 |
$(COMP) is not poly or sml; exit 1;;\ |
|
55 |
esac |
|
56 |
||
57 |
$(BIN)/Pure: |
|
58 |
cd ../Pure; $(MAKE) |
|
59 |
||
1164 | 60 |
#### Testing of HOL |
923 | 61 |
|
62 |
#A macro referring to the object-logic (depends on ML compiler) |
|
63 |
LOGIC:sh=case $ISABELLECOMP in \ |
|
1164 | 64 |
poly*) echo "$ISABELLECOMP $ISABELLEBIN/HOL" ;;\ |
65 |
sml*) echo "$ISABELLEBIN/HOL" ;;\ |
|
923 | 66 |
*) echo "echo Bad value for ISABELLECOMP: \ |
67 |
$ISABELLEBIN is not poly or sml; exit 1" ;;\ |
|
68 |
esac |
|
69 |
||
70 |
##IMP-semantics example |
|
1044 | 71 |
IMP_NAMES = Com Denotation Equiv Properties |
72 |
IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML) |
|
923 | 73 |
|
1164 | 74 |
IMP: $(BIN)/HOL $(IMP_FILES) |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
75 |
echo 'exit_use"IMP/ROOT.ML";quit();' | $(LOGIC) |
923 | 76 |
|
1164 | 77 |
##The integers in HOL |
1129 | 78 |
INTEG_NAMES = Equiv Integ |
923 | 79 |
|
1044 | 80 |
INTEG_FILES = Integ/ROOT.ML \ |
81 |
$(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML) |
|
923 | 82 |
|
1164 | 83 |
Integ: $(BIN)/HOL $(INTEG_FILES) |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
84 |
echo 'exit_use"Integ/ROOT.ML";quit();' | $(LOGIC) |
923 | 85 |
|
86 |
##I/O Automata |
|
1063 | 87 |
IOA_NTP_NAMES = Abschannel Action Correctness Impl Lemmas Multiset Packet\ |
88 |
Receiver Sender |
|
89 |
IOA_ABP_NAMES = Action Correctness Lemmas |
|
1044 | 90 |
IOA_MT_NAMES = Asig IOA Option Solve |
923 | 91 |
|
1254
a28e04685adc
replaced "IOA/ROOT.ML" by "IOA/ROOT_NTP.ML IOA/ROOT_ABP.ML"
clasohm
parents:
1253
diff
changeset
|
92 |
IOA_FILES = IOA/ROOT_NTP.ML IOA/ROOT_ABP.ML IOA/NTP/Spec.thy\ |
1063 | 93 |
$(IOA_NTP_NAMES:%=IOA/NTP/%.thy) $(IOA_NTP_NAMES:%=IOA/NTP/%.ML)\ |
94 |
IOA/ABP/Abschannel.thy IOA/ABP/Abschannel_finite.thy IOA/ABP/Env.thy\ |
|
95 |
IOA/ABP/Impl.thy IOA/ABP/Impl_finite.thy IOA/ABP/Packet.thy\ |
|
96 |
IOA/ABP/Receiver.thy IOA/ABP/Sender.thy IOA/ABP/Spec.thy\ |
|
97 |
$(IOA_ABP_NAMES:%=IOA/ABP/%.thy) $(IOA_ABP_NAMES:%=IOA/ABP/%.ML)\ |
|
1044 | 98 |
$(IOA_MT_NAMES:%=IOA/meta_theory/%.thy) $(IOA_MT_NAMES:%=IOA/meta_theory/%.ML) |
923 | 99 |
|
1164 | 100 |
IOA: $(BIN)/HOL $(IOA_FILES) |
1253 | 101 |
echo 'exit_use"IOA/ROOT_NTP.ML";quit();' | $(LOGIC) |
1264
3eb91524b938
added local simpsets; removed IOA from 'make test'
clasohm
parents:
1254
diff
changeset
|
102 |
# echo 'exit_use"IOA/ROOT_ABP.ML";quit();' | $(LOGIC) |
923 | 103 |
|
104 |
##Properties of substitutions |
|
1044 | 105 |
SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas |
923 | 106 |
|
1044 | 107 |
SUBST_FILES = Subst/ROOT.ML \ |
108 |
$(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML) |
|
923 | 109 |
|
1164 | 110 |
Subst: $(BIN)/HOL $(SUBST_FILES) |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
111 |
echo 'exit_use"Subst/ROOT.ML";quit();' | $(LOGIC) |
923 | 112 |
|
1125 | 113 |
##Confluence of Lambda-calculus |
1270 | 114 |
LAMBDA_NAMES = Lambda ParRed Commutation Eta |
1125 | 115 |
|
116 |
LAMBDA_FILES = Lambda/ROOT.ML \ |
|
117 |
$(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML) |
|
118 |
||
1164 | 119 |
Lambda: $(BIN)/HOL $(LAMBDA_FILES) |
1125 | 120 |
echo 'exit_use"Lambda/ROOT.ML";quit();' | $(LOGIC) |
121 |
||
1301 | 122 |
MINIML_NAMES = I Maybe MiniML Type W |
123 |
||
124 |
LAMBDA_FILES = MiniML/ROOT.ML \ |
|
125 |
$(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML) |
|
126 |
||
127 |
MiniML: $(BIN)/HOL $(MINIML_FILES) |
|
128 |
echo 'exit_use"MiniML/ROOT.ML";quit();' | $(LOGIC) |
|
129 |
||
923 | 130 |
##Miscellaneous examples |
1174 | 131 |
EX_NAMES = LexProd MT Acc PropLog Puzzle Qsort LList Rec Simult Term String \ |
132 |
BT Perm |
|
923 | 133 |
|
134 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \ |
|
1044 | 135 |
ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML) |
923 | 136 |
|
1164 | 137 |
ex: $(BIN)/HOL $(EX_FILES) |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
138 |
echo 'exit_use"ex/ROOT.ML";quit();' | $(LOGIC) |
923 | 139 |
|
1264
3eb91524b938
added local simpsets; removed IOA from 'make test'
clasohm
parents:
1254
diff
changeset
|
140 |
#Full test. (IOA has been removed temporarily) |
1329 | 141 |
test: $(BIN)/HOL IMP Integ Subst Lambda MiniML IOA ex |
923 | 142 |
echo 'Test examples ran successfully' > test |
143 |
||
1164 | 144 |
.PRECIOUS: $(BIN)/Pure $(BIN)/HOL |