0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (FOL) #
|
|
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 ifol.thy ifol.ML fol.thy fol.ML int-prover.ML simpdata.ML \
|
|
22 |
../Provers/classical.ML ../Provers/simplifier.ML ../Provers/ind.ML
|
|
23 |
|
|
24 |
$(BIN)/FOL: $(BIN)/Pure $(FILES)
|
|
25 |
case "$(COMP)" in \
|
|
26 |
poly*) echo 'make_database"$(BIN)/FOL"; quit();' \
|
|
27 |
| $(COMP) $(BIN)/Pure;\
|
|
28 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOL;;\
|
|
29 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
|
|
30 |
*) echo Bad value for ISABELLECOMP;;\
|
|
31 |
esac
|
|
32 |
|
|
33 |
$(BIN)/Pure:
|
|
34 |
cd ../Pure; $(MAKE)
|
|
35 |
|
|
36 |
test: ex/ROOT.ML $(BIN)/FOL
|
|
37 |
case "$(COMP)" in \
|
|
38 |
poly*) echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
|
|
39 |
sml*) echo 'use"ex/ROOT.ML";' | $(BIN)/FOL;;\
|
|
40 |
*) echo Bad value for ISABELLECOMP;;\
|
|
41 |
esac
|
|
42 |
|
|
43 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOL
|