src/ZF/Makefile
author nipkow
Thu, 21 Jul 1994 16:51:26 +0200
changeset 483 4d1614d8f119
parent 467 92868dab2939
child 484 70b789956bd3
permissions -rw-r--r--
added IMP
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 (ZF)			#
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)
339
7e67ca1618b7 renamed theory files
clasohm
parents: 102
diff changeset
    21
FILES = ROOT.ML ZF.thy ZF.ML upair.ML subset.ML pair.ML domrange.ML \
7e67ca1618b7 renamed theory files
clasohm
parents: 102
diff changeset
    22
	func.ML simpdata.ML Bool.thy Bool.ML \
342
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    23
	Sum.thy Sum.ML QPair.thy QPair.ML mono.ML Fixedpt.thy Fixedpt.ML \
92
7252e7699e24 renamed co_inductive.ML to coinductive.ML
clasohm
parents: 90
diff changeset
    24
	ind_syntax.ML intr_elim.ML indrule.ML inductive.ML coinductive.ML \
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    25
	equalities.ML Perm.thy Perm.ML Rel.thy Rel.ML Trancl.thy Trancl.ML \
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    26
	WF.thy WF.ML Order.thy Order.ML Ordinal.thy Ordinal.ML \
467
92868dab2939 new cardinal arithmetic developments
lcp
parents: 435
diff changeset
    27
	OrderArith.thy OrderArith.ML OrderType.thy OrderType.ML \
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    28
	Cardinal.thy Cardinal.ML CardinalArith.thy CardinalArith.ML \
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    29
	Nat.thy Nat.ML \
339
7e67ca1618b7 renamed theory files
clasohm
parents: 102
diff changeset
    30
	Epsilon.thy Epsilon.ML Arith.thy Arith.ML Univ.thy Univ.ML \
342
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    31
	QUniv.thy QUniv.ML constructor.ML Datatype.ML  \
363
1180a3c5479e renaming/removal of filenames to correct case
lcp
parents: 342
diff changeset
    32
	Fin.ML List.ML ListFn.thy ListFn.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
483
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    34
IMP_FILES = IMP/ROOT.ML IMP/Aexp.ML IMP/Aexp.thy IMP/Assign.ML IMP/Assign.thy\
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    35
            IMP/Bexp.ML IMP/Bexp.thy IMP/Com.ML IMP/Com.thy IMP/Denotation.ML\
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    36
            IMP/Denotation.thy IMP/Equiv.ML IMP/Equiv.thy IMP/Evala0.thy\
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    37
            IMP/Evala.ML IMP/Evala.thy IMP/Evalb0.thy IMP/Evalb.ML\
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    38
            IMP/Evalb.thy IMP/Evalc0.thy IMP/Evalc.ML IMP/Evalc.thy
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    39
342
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    40
EX_FILES = ex/ROOT.ML ex/Acc.ML ex/Bin.ML ex/BinFn.ML ex/BinFn.thy\
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    41
	   ex/BT.ML ex/BT_Fn.ML ex/BT_Fn.thy ex/Comb.ML\
363
1180a3c5479e renaming/removal of filenames to correct case
lcp
parents: 342
diff changeset
    42
	   ex/Contract0.ML ex/Contract0.thy ex/CoUnit.ML ex/Data.ML\
342
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    43
	   ex/Enum.ML ex/Equiv.ML ex/Equiv.thy ex/Integ.ML ex/Integ.thy\
363
1180a3c5479e renaming/removal of filenames to correct case
lcp
parents: 342
diff changeset
    44
	   ex/ListN.ML ex/LList.ML ex/LList_Eq.ML ex/LListFn.ML ex/LListFn.thy\
342
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    45
	   ex/misc.ML ex/ParContract.ML ex/Primrec0.ML ex/Primrec0.thy\
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    46
	   ex/Prop.ML ex/PropLog.ML ex/PropLog.thy ex/Ramsey.ML ex/Ramsey.thy\
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    47
	   ex/Rmap.ML ex/Term.ML ex/TermFn.ML ex/TermFn.thy ex/TF.ML\
339
7e67ca1618b7 renamed theory files
clasohm
parents: 102
diff changeset
    48
	   ex/TF_Fn.ML ex/TF_Fn.thy ex/twos_compl.ML
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    49
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
$(BIN)/ZF:   $(BIN)/FOL  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
	poly*)	cp $(BIN)/FOL $(BIN)/ZF;\
82
b9ac34abc054 no longer specifies "-h 15000". Instead $ISABELLECOMP should
lcp
parents: 75
diff changeset
    54
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/ZF ;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/ZF" banner;' | $(BIN)/FOL;;\
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    56
	*)	echo Bad value for ISABELLECOMP: \
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    57
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
483
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    63
test:   ex/ROOT.ML  $(BIN)/ZF  $(IMP_FILES) $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
	case "$(COMP)" in \
483
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    65
	poly*)	echo 'use"IMP/ROOT.ML"; use"ex/ROOT.ML"; quit();' | \
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    66
			$(COMP) $(BIN)/ZF ;;\
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    67
	sml*)	echo 'use"IMP/ROOT.ML"; use"ex/ROOT.ML";' | $(BIN)/ZF;;\
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    68
	*)	echo Bad value for ISABELLECOMP: \
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    69
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    70
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    71
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    72
.PRECIOUS:  $(BIN)/FOL $(BIN)/ZF