author | lcp |
Thu, 06 Apr 1995 10:48:11 +0200 | |
changeset 996 | 3566c197b420 |
parent 953 | 17d7fad9c9a2 |
child 1293 | 4ade5d1d369c |
permissions | -rw-r--r-- |
996 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (CCL) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
9 |
# make -f Makefile |
|
10 |
#To make the system and test it on standard examples, type |
|
11 |
# make -f Makefile test |
|
12 |
||
13 |
#Environment variable ISABELLECOMP specifies the compiler. |
|
14 |
#Environment variable ISABELLEBIN specifies the destination directory. |
|
15 |
#For Poly/ML, ISABELLEBIN must begin with a / |
|
16 |
||
17 |
#Makes FOL if this file is ABSENT -- but not |
|
18 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
19 |
||
20 |
BIN = $(ISABELLEBIN) |
|
21 |
COMP = $(ISABELLECOMP) |
|
22 |
||
334 | 23 |
SET_FILES = ROOT.ML Set.thy Set.ML subset.ML equalities.ML mono.ML \ |
24 |
Gfp.thy Gfp.ML Lfp.thy Lfp.ML |
|
0 | 25 |
|
334 | 26 |
CCL_FILES = CCL.thy CCL.ML Term.thy Term.ML Type.thy Type.ML \ |
27 |
coinduction.ML Hered.thy Hered.ML Trancl.thy Trancl.ML\ |
|
28 |
Wfd.thy Wfd.ML genrec.ML typecheck.ML eval.ML Fix.thy Fix.ML |
|
0 | 29 |
|
334 | 30 |
EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\ |
31 |
ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy |
|
101 | 32 |
|
0 | 33 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels |
34 |
$(BIN)/CCL: $(BIN)/FOL $(SET_FILES) $(CCL_FILES) |
|
35 |
case "$(COMP)" in \ |
|
36 |
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
|
37 |
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
|
38 |
sml*) echo 'exit_use"ROOT.ML"; xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;;\ |
468 | 39 |
*) echo Bad value for ISABELLECOMP: \ |
40 |
$(COMP) is not poly or sml;;\ |
|
0 | 41 |
esac |
42 |
||
43 |
$(BIN)/FOL: |
|
44 |
cd ../FOL; $(MAKE) |
|
45 |
||
101 | 46 |
test: ex/ROOT.ML $(BIN)/CCL $(EX_FILES) |
0 | 47 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
48 |
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
|
49 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/CCL;;\ |
468 | 50 |
*) echo Bad value for ISABELLECOMP: \ |
51 |
$(COMP) is not poly or sml;;\ |
|
0 | 52 |
esac |
53 |
||
54 |
.PRECIOUS: $(BIN)/FOL $(BIN)/CCL |