0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (CTT) #
|
|
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)
|
|
21 |
FILES = ROOT.ML ctt.thy ctt.ML bool.thy bool.ML \
|
|
22 |
arith.thy arith.ML rew.ML ../Provers/typedsimp.ML
|
|
23 |
|
101
|
24 |
EX_FILES = ex/ROOT.ML ex/elim.ML ex/equal.ML ex/synth.ML ex/typechk.ML
|
|
25 |
|
0
|
26 |
$(BIN)/CTT: $(BIN)/Pure $(FILES)
|
|
27 |
case "$(COMP)" in \
|
|
28 |
poly*) echo 'make_database"$(BIN)/CTT"; quit();' \
|
|
29 |
| $(COMP) $(BIN)/Pure;\
|
|
30 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CTT ;;\
|
|
31 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/CTT" banner;' | $(BIN)/Pure ;;\
|
|
32 |
*) echo Bad value for ISABELLECOMP;;\
|
|
33 |
esac
|
|
34 |
|
|
35 |
$(BIN)/Pure:
|
|
36 |
cd ../Pure; $(MAKE)
|
|
37 |
|
101
|
38 |
test: ex/ROOT.ML $(BIN)/CTT $(EX_FILES)
|
0
|
39 |
case "$(COMP)" in \
|
|
40 |
poly*) echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CTT ;;\
|
|
41 |
sml*) echo 'use"ex/ROOT.ML";' | $(BIN)/CTT;;\
|
|
42 |
*) echo Bad value for ISABELLECOMP;;\
|
|
43 |
esac
|
|
44 |
|
|
45 |
.PRECIOUS: $(BIN)/Pure $(BIN)/CTT
|