0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (CCL) #
|
|
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 FOL 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 |
|
334
|
22 |
SET_FILES = ROOT.ML Set.thy Set.ML subset.ML equalities.ML mono.ML \
|
|
23 |
Gfp.thy Gfp.ML Lfp.thy Lfp.ML
|
0
|
24 |
|
334
|
25 |
CCL_FILES = CCL.thy CCL.ML Term.thy Term.ML Type.thy Type.ML \
|
|
26 |
coinduction.ML Hered.thy Hered.ML Trancl.thy Trancl.ML\
|
|
27 |
Wfd.thy Wfd.ML genrec.ML typecheck.ML eval.ML Fix.thy Fix.ML
|
0
|
28 |
|
334
|
29 |
EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\
|
|
30 |
ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy
|
101
|
31 |
|
0
|
32 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels
|
|
33 |
$(BIN)/CCL: $(BIN)/FOL $(SET_FILES) $(CCL_FILES)
|
|
34 |
case "$(COMP)" in \
|
|
35 |
poly*) cp $(BIN)/FOL $(BIN)/CCL;\
|
|
36 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CCL ;;\
|
|
37 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;;\
|
|
38 |
*) echo Bad value for ISABELLECOMP;;\
|
|
39 |
esac
|
|
40 |
|
|
41 |
$(BIN)/FOL:
|
|
42 |
cd ../FOL; $(MAKE)
|
|
43 |
|
101
|
44 |
test: ex/ROOT.ML $(BIN)/CCL $(EX_FILES)
|
0
|
45 |
case "$(COMP)" in \
|
|
46 |
poly*) echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CCL ;;\
|
|
47 |
sml*) echo 'use"ex/ROOT.ML";' | $(BIN)/CCL;;\
|
|
48 |
*) echo Bad value for ISABELLECOMP;;\
|
|
49 |
esac
|
|
50 |
|
|
51 |
.PRECIOUS: $(BIN)/FOL $(BIN)/CCL
|