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