#
# $Id: IsaMakefile,v 1.10 2005/09/03 15:54:05 wenzelm Exp $
#
# IsaMakefile for LCF
#

## targets

default: LCF
images: LCF
test: LCF-ex
all: images test


## global settings

SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log


## LCF

LCF: FOL $(OUT)/LCF

FOL:
	@cd $(SRC)/FOL; $(ISATOOL) make FOL

$(OUT)/LCF: $(OUT)/FOL LCF_lemmas.ML LCF.thy ROOT.ML fix.ML pair.ML
	@$(ISATOOL) usedir -b -r $(OUT)/FOL LCF


## LCF-ex

LCF-ex: LCF $(LOG)/LCF-ex.gz

$(LOG)/LCF-ex.gz: $(OUT)/LCF ex/Ex1.ML ex/Ex1.thy ex/Ex2.ML ex/Ex2.thy \
  ex/Ex3.ML ex/Ex3.thy ex/Ex4.ML ex/Ex4.thy ex/ROOT.ML
	@$(ISATOOL) usedir $(OUT)/LCF ex


## clean

clean:
	@rm -f $(OUT)/LCF $(LOG)/LCF.gz $(LOG)/LCF-ex.gz
