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