src/HOL/Makefile
author clasohm
Fri, 03 Mar 1995 12:02:25 +0100
changeset 923 ff1574a81019
child 944 01d6571fa106
permissions -rw-r--r--
new version of HOL with curried function application
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\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    29
	../Provers/classical.ML ../Provers/simplifier.ML \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    30
	../Provers/splitter.ML ../Provers/ind.ML $(THYS) $(THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    31
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    32
$(BIN)/CHOL:   $(BIN)/Pure  $(FILES) 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    33
	if [ -d $${ISABELLEBIN:?}/Pure ];\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    34
           	then echo Bad value for ISABELLEBIN: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    35
                	$(BIN) is the Isabelle source directory; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    36
                	exit 1; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    37
           	fi;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    38
	case "$(COMP)" in \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    39
	poly*)	echo 'make_database"$(BIN)/CHOL"; quit();'  \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    40
			| $(COMP) $(BIN)/Pure;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    41
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/CHOL ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    42
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/CHOL" banner;' | $(BIN)/Pure ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    43
	*)	echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    44
                	$(COMP) is not poly or sml; exit 1;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    45
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    46
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    47
$(BIN)/Pure:
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    48
	cd ../Pure;  $(MAKE)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    49
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    50
#### Testing of CHOL
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    51
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    52
#A macro referring to the object-logic (depends on ML compiler)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    53
LOGIC:sh=case $ISABELLECOMP in \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    54
	poly*)	echo "$ISABELLECOMP $ISABELLEBIN/CHOL" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    55
	sml*)	echo "$ISABELLEBIN/CHOL" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    56
	*)	echo "echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    57
                	$ISABELLEBIN is not poly or sml; exit 1" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    58
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    59
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    60
##IMP-semantics example
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    61
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
    62
IMP_FILES = IMP/ROOT.ML $(IMP_THYS) $(IMP_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    63
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    64
IMP:    $(BIN)/CHOL  $(IMP_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    65
	echo 'use"IMP/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    66
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    67
##The integers in CHOL
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    68
INTEG_THYS = Integ/Relation.thy Integ/Equiv.thy Integ/Integ.thy 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    69
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    70
INTEG_FILES = Integ/ROOT.ML $(INTEG_THYS) $(INTEG_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    71
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    72
Integ:  $(BIN)/CHOL  $(INTEG_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    73
	echo 'use"Integ/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    74
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    75
##I/O Automata
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    76
IOA_THYS = IOA/example/Action.thy IOA/example/Channels.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    77
	   IOA/example/Correctness.thy IOA/example/Impl.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    78
	   IOA/example/Lemmas.thy IOA/example/Multiset.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    79
	   IOA/example/Receiver.thy IOA/example/Sender.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    80
	   IOA/meta_theory/Asig.thy IOA/meta_theory/IOA.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    81
	   IOA/meta_theory/Option.thy IOA/meta_theory/Solve.thy
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    82
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    83
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
    84
	    $(IOA_THYS) $(IOA_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    85
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    86
IOA:    $(BIN)/CHOL  $(IOA_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    87
	echo 'use"IOA/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    88
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    89
##Properties of substitutions
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    90
SUBST_THYS = Subst/AList.thy Subst/Setplus.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    91
	     Subst/Subst.thy Subst/Unifier.thy\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    92
	     Subst/UTerm.thy Subst/UTLemmas.thy
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    93
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    94
SUBST_FILES = Subst/ROOT.ML $(SUBST_THYS) $(SUBST_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    95
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    96
Subst:  $(BIN)/CHOL  $(SUBST_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    97
	echo 'use"Subst/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    98
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    99
##Miscellaneous examples
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   100
EX_THYS = ex/LexProd.thy ex/MT.thy ex/Acc.thy \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   101
	  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
   102
	  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
   103
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   104
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
   105
           ex/set.ML $(EX_THYS) $(EX_THYS:.thy=.ML)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   106
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   107
ex:     $(BIN)/CHOL  $(EX_FILES)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   108
	echo 'use"ex/ROOT.ML";quit();' | $(LOGIC)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   109
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   110
#Full test.
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   111
test:   $(BIN)/CHOL IMP Integ IOA Subst ex
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   112
	echo 'Test examples ran successfully' > test
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   113
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   114
.PRECIOUS:  $(BIN)/Pure $(BIN)/CHOL