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