src/CCL/Makefile
author clasohm
Fri, 22 Apr 1994 20:23:02 +0200
changeset 334 9411dc57c56b
parent 101 d4730dd72226
child 468 3dd1dcb509ac
permissions -rw-r--r--
renamed theory files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
# 			Makefile for Isabelle (CCL)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
#To make the system, cd to this directory and type
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#	make -f Makefile 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
#To make the system and test it on standard examples, type 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#	make -f Makefile test
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#Makes FOL if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#if it is out of date, since this Makefile does not know its dependencies!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
COMP = $(ISABELLECOMP)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
334
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    22
SET_FILES = ROOT.ML Set.thy Set.ML subset.ML equalities.ML mono.ML \
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    23
	    Gfp.thy Gfp.ML Lfp.thy Lfp.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
334
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    25
CCL_FILES = CCL.thy CCL.ML Term.thy Term.ML Type.thy Type.ML \
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    26
            coinduction.ML Hered.thy Hered.ML Trancl.thy Trancl.ML\
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    27
            Wfd.thy Wfd.ML genrec.ML typecheck.ML eval.ML Fix.thy Fix.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
334
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    29
EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    30
	   ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 59
diff changeset
    31
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
$(BIN)/CCL:   $(BIN)/FOL  $(SET_FILES)  $(CCL_FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
	poly*)	cp $(BIN)/FOL $(BIN)/CCL;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CCL ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 59
diff changeset
    44
test:   ex/ROOT.ML  $(BIN)/CCL  $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CCL ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/CCL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
.PRECIOUS:  $(BIN)/FOL $(BIN)/CCL