author | nipkow |
Tue, 09 May 1995 22:10:08 +0200 | |
changeset 1114 | c8dfb56a7e95 |
parent 1063 | d33e3523a5e6 |
child 1125 | 13a3df2adbe5 |
permissions | -rw-r--r-- |
923 | 1 |
######################################################################### |
2 |
# # |
|
3 |
# Makefile for Isabelle (CHOL) # |
|
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) |
|
1044 | 21 |
NAMES = HOL Ord Set Fun subset equalities Prod Trancl Sum WF \ |
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 |
|
31 |
$(BIN)/CHOL: $(BIN)/Pure $(FILES) |
|
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 \ |
|
38 |
poly*) echo 'make_database"$(BIN)/CHOL"; quit();' \ |
|
39 |
| $(COMP) $(BIN)/Pure;\ |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
40 |
echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/CHOL ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
41 |
sml*) echo 'exit_use"ROOT.ML"; xML"$(BIN)/CHOL" 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 |
||
49 |
#### Testing of CHOL |
|
50 |
||
51 |
#A macro referring to the object-logic (depends on ML compiler) |
|
52 |
LOGIC:sh=case $ISABELLECOMP in \ |
|
53 |
poly*) echo "$ISABELLECOMP $ISABELLEBIN/CHOL" ;;\ |
|
54 |
sml*) echo "$ISABELLEBIN/CHOL" ;;\ |
|
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 |
|
63 |
IMP: $(BIN)/CHOL $(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 |
|
66 |
##The integers in CHOL |
|
1044 | 67 |
INTEG_NAMES = Relation Equiv Integ |
923 | 68 |
|
1044 | 69 |
INTEG_FILES = Integ/ROOT.ML \ |
70 |
$(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML) |
|
923 | 71 |
|
72 |
Integ: $(BIN)/CHOL $(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 |
|
1063 | 81 |
IOA_FILES = IOA/ROOT.ML IOA/NTP/Spec.thy\ |
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 |
|
89 |
IOA: $(BIN)/CHOL $(IOA_FILES) |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
90 |
echo 'exit_use"IOA/ROOT.ML";quit();' | $(LOGIC) |
923 | 91 |
|
92 |
##Properties of substitutions |
|
1044 | 93 |
SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas |
923 | 94 |
|
1044 | 95 |
SUBST_FILES = Subst/ROOT.ML \ |
96 |
$(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML) |
|
923 | 97 |
|
98 |
Subst: $(BIN)/CHOL $(SUBST_FILES) |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
99 |
echo 'exit_use"Subst/ROOT.ML";quit();' | $(LOGIC) |
923 | 100 |
|
101 |
##Miscellaneous examples |
|
1044 | 102 |
EX_NAMES = LexProd MT Acc PropLog Puzzle Qsort LList Rec Simult Term String |
923 | 103 |
|
104 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \ |
|
1044 | 105 |
ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML) |
923 | 106 |
|
107 |
ex: $(BIN)/CHOL $(EX_FILES) |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
944
diff
changeset
|
108 |
echo 'exit_use"ex/ROOT.ML";quit();' | $(LOGIC) |
923 | 109 |
|
110 |
#Full test. |
|
111 |
test: $(BIN)/CHOL IMP Integ IOA Subst ex |
|
112 |
echo 'Test examples ran successfully' > test |
|
113 |
||
114 |
.PRECIOUS: $(BIN)/Pure $(BIN)/CHOL |