src/CCL/Makefile
author clasohm
Sun, 17 Oct 1993 16:30:16 +0100
changeset 59 ab555029f583
parent 0 a5a9c433f639
child 101 d4730dd72226
permissions -rw-r--r--
renamed: terms.* to term.*, types.* to type.*, wf.* to wfd.*
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
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
SET_FILES = ROOT.ML set.thy set.ML subset.ML equalities.ML mono.ML \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
	    gfp.thy gfp.ML lfp.thy lfp.ML
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
59
ab555029f583 renamed: terms.* to term.*, types.* to type.*, wf.* to wfd.*
clasohm
parents: 0
diff changeset
    25
CCL_FILES = ccl.thy ccl.ML term.thy term.ML type.thy type.ML \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
            coinduction.ML hered.thy hered.ML trancl.thy trancl.ML\
59
ab555029f583 renamed: terms.* to term.*, types.* to type.*, wf.* to wfd.*
clasohm
parents: 0
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
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
$(BIN)/CCL:   $(BIN)/FOL  $(SET_FILES)  $(CCL_FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
	poly*)	cp $(BIN)/FOL $(BIN)/CCL;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CCL ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
test:   ex/ROOT.ML  $(BIN)/CCL
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CCL ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/CCL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
.PRECIOUS:  $(BIN)/FOL $(BIN)/CCL