author | lcp |
Wed, 15 Mar 1995 10:34:47 +0100 | |
changeset 953 | 17d7fad9c9a2 |
parent 468 | 3dd1dcb509ac |
child 996 | 3566c197b420 |
permissions | -rw-r--r-- |
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;\ |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
36 |
echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/CCL ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
37 |
sml*) echo 'exit_use"ROOT.ML"; xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;;\ |
468 | 38 |
*) echo Bad value for ISABELLECOMP: \ |
39 |
$(COMP) is not poly or sml;;\ |
|
0 | 40 |
esac |
41 |
||
42 |
$(BIN)/FOL: |
|
43 |
cd ../FOL; $(MAKE) |
|
44 |
||
101 | 45 |
test: ex/ROOT.ML $(BIN)/CCL $(EX_FILES) |
0 | 46 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
47 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CCL ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
48 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/CCL;;\ |
468 | 49 |
*) echo Bad value for ISABELLECOMP: \ |
50 |
$(COMP) is not poly or sml;;\ |
|
0 | 51 |
esac |
52 |
||
53 |
.PRECIOUS: $(BIN)/FOL $(BIN)/CCL |