0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (HOL) #
|
|
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)
|
69
|
21 |
FILES = ROOT.ML HOL.thy HOL.ML simpdata.ML Ord.thy Ord.ML \
|
|
22 |
fun.ML Set.thy Set.ML subset.ML equalities.ML \
|
70
|
23 |
Prod.thy Prod.ML Sum.thy Sum.ML WF.thy WF.ML \
|
69
|
24 |
mono.ML Lfp.thy Lfp.ML Gfp.thy Gfp.ML Nat.thy Nat.ML Sexp.thy \
|
|
25 |
Sexp.ML Univ.thy Univ.ML LList.thy LList.ML List.thy List.ML \
|
70
|
26 |
Datatype.ML \
|
0
|
27 |
../Provers/classical.ML ../Provers/simplifier.ML \
|
|
28 |
../Provers/splitter.ML ../Provers/ind.ML
|
|
29 |
|
69
|
30 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/Finite.ML ex/Finite.thy\
|
|
31 |
ex/LexProd.ML ex/LexProd.thy ex/meson.ML ex/mesontest.ML\
|
|
32 |
ex/MT.ML ex/MT.thy ex/PL.ML ex/PL.thy ex/Puzzle.ML ex/Puzzle.thy\
|
|
33 |
ex/Qsort.thy ex/Qsort.ML\
|
|
34 |
ex/Rec.ML ex/Rec.thy ex/rel.ML ex/set.ML ex/Simult.ML ex/Simult.thy\
|
|
35 |
ex/Term.ML ex/Term.thy
|
16
|
36 |
|
69
|
37 |
SUBST_FILES = Subst/ROOT.ML Subst/AList.ML Subst/AList.thy\
|
|
38 |
Subst/Setplus.ML Subst/Setplus.thy\
|
|
39 |
Subst/Subst.ML Subst/subst.thy\
|
|
40 |
Subst/Unifier.ML Subst/unifier.thy\
|
|
41 |
Subst/UTerm.ML Subst/UTerm.thy\
|
|
42 |
Subst/UTLemmas.ML Subst/UTLemmas.thy
|
16
|
43 |
|
0
|
44 |
$(BIN)/HOL: $(BIN)/Pure $(FILES)
|
|
45 |
case "$(COMP)" in \
|
|
46 |
poly*) echo 'make_database"$(BIN)/HOL"; quit();' \
|
|
47 |
| $(COMP) $(BIN)/Pure;\
|
|
48 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/HOL ;;\
|
|
49 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/HOL" banner;' | $(BIN)/Pure ;;\
|
|
50 |
*) echo Bad value for ISABELLECOMP;;\
|
|
51 |
esac
|
|
52 |
|
|
53 |
$(BIN)/Pure:
|
|
54 |
cd ../Pure; $(MAKE)
|
|
55 |
|
16
|
56 |
test: ex/ROOT.ML $(BIN)/HOL $(EX_FILES)
|
0
|
57 |
case "$(COMP)" in \
|
|
58 |
poly*) echo 'use"ex/ROOT.ML"; use"Subst/ROOT.ML"; quit();' \
|
|
59 |
| $(COMP) $(BIN)/HOL ;;\
|
|
60 |
sml*) echo 'use"ex/ROOT.ML";use"Subst/ROOT.ML";' | $(BIN)/HOL;;\
|
|
61 |
*) echo Bad value for ISABELLECOMP;;\
|
|
62 |
esac
|
|
63 |
|
|
64 |
.PRECIOUS: $(BIN)/Pure $(BIN)/HOL
|