src/HOL/Makefile
author nipkow
Wed, 08 Mar 1995 17:23:07 +0100
changeset 944 01d6571fa106
parent 923 ff1574a81019
child 953 17d7fad9c9a2
permissions -rw-r--r--
Added dependencies on ../Provers/hypsubst.ML and removed those on ../Provers/ind.ML
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     1
#########################################################################
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     2
#									#
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     3
# 			Makefile for Isabelle (CHOL)			#
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     4
#									#
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     5
#########################################################################
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     6
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     7
#To make the system, cd to this directory and type  
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     8
#	make -f Makefile 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     9
#To make the system and test it on standard examples, type  
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    10
#	make -f Makefile test
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    11
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    12
#Environment variable ISABELLECOMP specifies the compiler.
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    13
#Environment variable ISABELLEBIN specifies the destination directory.
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    14
#For Poly/ML, ISABELLEBIN must begin with a /
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    15
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    16
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    17
#if it is out of date, since this Makefile does not know its dependencies!
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    18
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    19
BIN = $(ISABELLEBIN)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    20
COMP = $(ISABELLECOMP)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    21
THYS = HOL.thy Ord.thy Set.thy Fun.thy subset.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    22
       equalities.thy Prod.thy Trancl.thy Sum.thy WF.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    23
       mono.thy Lfp.thy Gfp.thy Nat.thy Inductive.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    24
       Finite.thy Arith.thy Sexp.thy Univ.thy List.thy 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    25
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    26
FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    27
	ind_syntax.ML indrule.ML intr_elim.ML simpdata.ML\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    28
	subtype.ML thy_syntax.ML ../Pure/section_utils.ML\
944
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    29
	../Provers/hypsubst.ML ../Provers/classical.ML\
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    30
        ../Provers/simplifier.ML ../Provers/splitter.ML\
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    31
        $(THYS) $(THYS:.thy=.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    32
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    33
$(BIN)/CHOL:   $(BIN)/Pure  $(FILES) 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    34
	if [ -d $${ISABELLEBIN:?}/Pure ];\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    35
           	then echo Bad value for ISABELLEBIN: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    36
                	$(BIN) is the Isabelle source directory; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    37
                	exit 1; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    38
           	fi;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    39
	case "$(COMP)" in \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    40
	poly*)	echo 'make_database"$(BIN)/CHOL"; quit();'  \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    41
			| $(COMP) $(BIN)/Pure;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    42
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CHOL ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    43
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/CHOL" banner;' | $(BIN)/Pure ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    44
	*)	echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    45
                	$(COMP) is not poly or sml; exit 1;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    46
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    47
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    48
$(BIN)/Pure:
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    49
	cd ../Pure;  $(MAKE)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    50
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    51
#### Testing of CHOL
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    52
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    53
#A macro referring to the object-logic (depends on ML compiler)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    54
LOGIC:sh=case $ISABELLECOMP in \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    55
	poly*)	echo "$ISABELLECOMP $ISABELLEBIN/CHOL" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    56
	sml*)	echo "$ISABELLEBIN/CHOL" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    57
	*)	echo "echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    58
                	$ISABELLEBIN is not poly or sml; exit 1" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    59
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    60
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    61
##IMP-semantics example
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    62
IMP_THYS = IMP/Com.thy IMP/Denotation.thy IMP/Equiv.thy IMP/Properties.thy
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    63
IMP_FILES = IMP/ROOT.ML $(IMP_THYS) $(IMP_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    64
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    65
IMP:    $(BIN)/CHOL  $(IMP_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    66
	echo 'use"IMP/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    67
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    68
##The integers in CHOL
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    69
INTEG_THYS = Integ/Relation.thy Integ/Equiv.thy Integ/Integ.thy 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    70
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    71
INTEG_FILES = Integ/ROOT.ML $(INTEG_THYS) $(INTEG_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    72
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    73
Integ:  $(BIN)/CHOL  $(INTEG_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    74
	echo 'use"Integ/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    75
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    76
##I/O Automata
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    77
IOA_THYS = IOA/example/Action.thy IOA/example/Channels.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    78
	   IOA/example/Correctness.thy IOA/example/Impl.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    79
	   IOA/example/Lemmas.thy IOA/example/Multiset.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    80
	   IOA/example/Receiver.thy IOA/example/Sender.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    81
	   IOA/meta_theory/Asig.thy IOA/meta_theory/IOA.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    82
	   IOA/meta_theory/Option.thy IOA/meta_theory/Solve.thy
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    83
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    84
IOA_FILES = IOA/ROOT.ML IOA/example/Packet.thy IOA/example/Spec.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    85
	    $(IOA_THYS) $(IOA_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    86
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    87
IOA:    $(BIN)/CHOL  $(IOA_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    88
	echo 'use"IOA/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    89
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    90
##Properties of substitutions
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    91
SUBST_THYS = Subst/AList.thy Subst/Setplus.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    92
	     Subst/Subst.thy Subst/Unifier.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    93
	     Subst/UTerm.thy Subst/UTLemmas.thy
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    94
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    95
SUBST_FILES = Subst/ROOT.ML $(SUBST_THYS) $(SUBST_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    96
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    97
Subst:  $(BIN)/CHOL  $(SUBST_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    98
	echo 'use"Subst/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    99
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   100
##Miscellaneous examples
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   101
EX_THYS = ex/LexProd.thy ex/MT.thy ex/Acc.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   102
	  ex/PropLog.thy ex/Puzzle.thy ex/Qsort.thy ex/LList.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   103
	  ex/Rec.thy ex/Simult.thy ex/Term.thy ex/String.thy 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   104
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   105
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   106
           ex/set.ML $(EX_THYS) $(EX_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   107
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   108
ex:     $(BIN)/CHOL  $(EX_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   109
	echo 'use"ex/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   110
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   111
#Full test.
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   112
test:   $(BIN)/CHOL IMP Integ IOA Subst ex
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   113
	echo 'Test examples ran successfully' > test
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   114
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   115
.PRECIOUS:  $(BIN)/Pure $(BIN)/CHOL