src/HOL/IsaMakefile
author wenzelm
Tue May 06 15:27:35 1997 +0200 (1997-05-06)
changeset 3118 24dae6222579
parent 3079 2ea678d3523f
child 3125 3f0ab2c306f7
permissions -rw-r--r--
fixed ISABELLE_OUTPUT, ISABELLE_PATH (finally?);
     1 #
     2 # $Id$
     3 #
     4 # IsaMakefile for HOL
     5 #
     6 
     7 #### Base system
     8 
     9 OUT = $(ISABELLE_OUTPUT)
    10 
    11 NAMES = HOL Ord Set Fun subset equalities Prod Relation Trancl Sum WF \
    12 	mono Lfp Gfp NatDef Nat intr_elim indrule Inductive Finite Arith \
    13 	Sexp Univ List RelPow Option
    14 
    15 FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML \
    16 	ind_syntax.ML cladata.ML simpdata.ML \
    17 	typedef.ML thy_syntax.ML thy_data.ML ../Pure/section_utils.ML \
    18 	../Provers/hypsubst.ML ../Provers/classical.ML ../Provers/blast.ML \
    19 	../Provers/simplifier.ML ../Provers/splitter.ML \
    20 	../Provers/nat_transitive.ML \
    21 	$(NAMES:%=%.thy) $(NAMES:%=%.ML)
    22 
    23 $(OUT)/HOL: $(OUT)/Pure $(FILES)
    24 	@$(ISATOOL) usedir -b $(OUT)/Pure HOL
    25 	@chmod -w $@
    26 
    27 $(OUT)/Pure:
    28 	@cd ../Pure; $(ISATOOL) make
    29 
    30 
    31 ## TFL (requires integration into HOL proper)
    32 
    33 TFL_NAMES = mask tfl thms thry usyntax utils
    34 TFL_FILES = ../TFL/ROOT.ML ../TFL/sys.sml \
    35             $(TFL_NAMES:%=../TFL/%.sig) $(TFL_NAMES:%=../TFL/%.sml)
    36 
    37 TFL:	$(OUT)/HOL $(TFL_FILES)
    38 	@$(ISABELLE) -qe 'exit_use_dir"../TFL"; quit();' HOL
    39 
    40 
    41 
    42 #### Tests and examples
    43 
    44 ## IMP-semantics example
    45 
    46 IMP_NAMES = Expr Com Natural Transition Denotation Hoare VC
    47 IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML)
    48 
    49 IMP:	$(OUT)/HOL $(IMP_FILES)
    50 	@$(ISATOOL) usedir $(OUT)/HOL IMP
    51 
    52 
    53 ## Hoare logic
    54 
    55 Hoare_NAMES = Hoare Arith2 Examples
    56 Hoare_FILES = Hoare/ROOT.ML $(Hoare_NAMES:%=Hoare/%.thy) \
    57 	      $(Hoare_NAMES:%=Hoare/%.ML)
    58 
    59 Hoare:	$(OUT)/HOL $(Hoare_FILES)
    60 	@$(ISATOOL) usedir $(OUT)/HOL Hoare
    61 
    62 
    63 ## The integers in HOL
    64 
    65 INTEG_NAMES = Equiv Integ Group Ring Lagrange IntRingDefs IntRing
    66 
    67 INTEG_FILES = Integ/ROOT.ML \
    68 	      $(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML)
    69 
    70 Integ:	$(OUT)/HOL $(INTEG_FILES)
    71 	@$(ISATOOL) usedir $(OUT)/HOL Integ
    72 
    73 
    74 ## I/O Automata (meta theory only)
    75 
    76 
    77 IOA_FILES = IOA/ROOT.ML IOA/Asig.thy IOA/Asig.ML IOA/IOA.thy \
    78   IOA/IOA.ML IOA/Solve.thy IOA/Solve.ML
    79 
    80 IOA: $(OUT)/HOL $(IOA_FILES)
    81 	@$(ISATOOL) usedir $(OUT)/HOL IOA
    82 
    83 
    84 ## Authentication & Security Protocols
    85 
    86 Auth_NAMES = Message Shared NS_Shared OtwayRees OtwayRees_AN OtwayRees_Bad \
    87 	     Recur WooLam Yahalom Yahalom2 Public NS_Public_Bad NS_Public
    88 
    89 AUTH_FILES = Auth/ROOT.ML $(AUTH_NAMES:%=Auth/%.thy) $(AUTH_NAMES:%=Auth/%.ML)
    90 
    91 Auth:	$(OUT)/HOL $(AUTH_FILES)
    92 	@$(ISATOOL) usedir $(OUT)/HOL Auth
    93 
    94 
    95 ## Properties of substitutions
    96 
    97 SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas
    98 
    99 SUBST_FILES = Subst/ROOT.ML \
   100 	      $(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML)
   101 
   102 Subst:	$(OUT)/HOL $(SUBST_FILES)
   103 	@$(ISATOOL) usedir $(OUT)/HOL Subst
   104 
   105 
   106 ## Confluence of Lambda-calculus
   107 
   108 LAMBDA_NAMES = Lambda ParRed Commutation Eta
   109 
   110 LAMBDA_FILES = Lambda/ROOT.ML \
   111 	      $(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML)
   112 
   113 Lambda:	 $(OUT)/HOL $(LAMBDA_FILES)
   114 	@$(ISATOOL) usedir $(OUT)/HOL Lambda
   115 
   116 
   117 ## Type inference without let
   118 
   119 W0_NAMES = I Maybe MiniML Type W
   120 
   121 W0_FILES = W0/ROOT.ML \
   122 	      $(W0_NAMES:%=W0/%.thy) $(W0_NAMES:%=W0/%.ML)
   123 
   124 W0: $(OUT)/HOL $(W0_FILES)
   125 	@$(ISATOOL) usedir $(OUT)/HOL W0
   126 
   127 
   128 ## Type inference with let
   129 
   130 MINIML_NAMES = Generalize Instance Maybe MiniML Type W
   131 
   132 MINIML_FILES = MiniML/ROOT.ML \
   133 	      $(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML)
   134 
   135 MiniML: $(OUT)/HOL $(MINIML_FILES)
   136 	@$(ISATOOL) usedir $(OUT)/HOL MiniML
   137 
   138 
   139 ## Lexical analysis
   140 
   141 LEX_FILES = Auto AutoChopper Chopper Prefix
   142 
   143 LEX_FILES = Lex/ROOT.ML \
   144 	    $(LEX_NAMES:%=Lex/%.thy) $(LEX_NAMES:%=Lex/%.ML)
   145 
   146 Lex:	$(OUT)/HOL $(LEX_FILES)
   147 	@$(ISATOOL) usedir $(OUT)/HOL Lex
   148 
   149 
   150 ## Axiomatic type classes examples
   151 
   152 AXC_GROUP_FILES = Group.ML Group.thy GroupDefs.ML GroupDefs.thy \
   153 	GroupInsts.thy Monoid.thy MonoidGroupInsts.thy ROOT.ML Sigs.thy
   154 
   155 AXC_LATTICE_FILES = CLattice.ML CLattice.thy LatInsts.ML LatInsts.thy \
   156 	LatMorph.ML LatMorph.thy LatPreInsts.ML LatPreInsts.thy \
   157 	Lattice.ML Lattice.thy OrdDefs.ML OrdDefs.thy OrdInsts.thy \
   158 	Order.ML Order.thy ROOT.ML tools.ML
   159 
   160 AXC_TUTORIAL_FILES = BoolGroupInsts.thy Group.ML Group.thy Monoid.thy \
   161 	MonoidGroupInsts.thy ProdGroupInsts.thy Product.thy \
   162 	ProductInsts.thy ROOT.ML Semigroup.thy Semigroups.thy Sigs.thy \
   163 	Xor.ML Xor.thy
   164 
   165 AXCLASSES_FILES = AxClasses/ROOT.ML \
   166 	$(AXC_GROUP_FILES:%=AxClasses/Group/%) \
   167 	$(AXC_LATTICE_FILES:%=AxClasses/Lattice/%) \
   168 	$(AXC_TUTORIAL_FILES:%=AxClasses/Tutorial/%)
   169 
   170 AxClasses: $(OUT)/HOL $(AXCLASSES_FILES)
   171 	@$(ISATOOL) usedir $(OUT)/HOL AxClasses
   172 	@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group
   173 	@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice
   174 	@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial
   175 
   176 
   177 ## Higher-order quotients and example fractionals
   178 
   179 QUOT_FILES = Quot/ROOT.ML Quot/PER0.thy Quot/PER0.ML Quot/PER.thy Quot/PER.ML \
   180 	Quot/HQUOT.thy Quot/HQUOT.ML Quot/NPAIR.thy Quot/NPAIR.ML \
   181 	Quot/FRACT.thy Quot/FRACT.ML
   182 Quot:	$(OUT)/HOL $(QUOT_FILES)
   183 	@$(ISATOOL) usedir $(OUT)/HOL Quot
   184 
   185 
   186 ## Miscellaneous examples
   187 
   188 EX_NAMES = String BT Perm Comb InSort Qsort LexProd Puzzle Mutil \
   189 	   Primes NatSum SList LList LFilter Acc PropLog Term Simult MT
   190 
   191 EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
   192 	   ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML)
   193 
   194 ex:	$(OUT)/HOL $(EX_FILES)
   195 	@$(ISATOOL) usedir $(OUT)/HOL ex
   196 
   197 
   198 ## Full test
   199 
   200 test:	$(OUT)/HOL \
   201 	TFL IMP Hoare Lex Integ Auth Subst Lambda W0 MiniML IOA AxClasses Quot ex
   202 	echo 'Test examples ran successfully' > test
   203 
   204 
   205 .PRECIOUS: $(OUT)/Pure $(OUT)/HOL