Makefile revision 9096f6c6aaded6cd8288656ceccd4c7b3bd0747e
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This Makefile will compile the new hets system and provides also
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# targets for test programs during implementation phases.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# !!! Note: This makefile is written for GNU make !!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# (gmake on solaris)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte####################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## Some varibles, which control the compilation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINCLUDE_PATH = hxt syb-generics haifa-lite/src hcl/src
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHXT_PATHS = Data Data/Tree Data/Tree/NTree Data/Digest Text Text/XML \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Text/XML/HXT Text/XML/HXT/IO Text/XML/HXT/DOM Text/XML/HXT/Arrow \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Text/XML/HXT/XPath Text/XML/HXT/Validator Text/XML/HXT/Parser \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Text/XML/HXT/RelaxNG Text/XML/HXT/ProtocolHandler Codec Codec/ASN1 \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Codec/Binary Codec/Encryption Codec/Encryption/RSA System Control \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Taxonomy CASL_DL SPASS OWL_DL OMDoc $(PFE_PATHS) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte hcl/src/Data syb-generics/Data syb-generics/Data/Generics2 \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the 'replacing spaces' example was taken from the (GNU) Make info manual
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## set ghc imports properly for your system
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# import directories for ghc-5.04.2
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
1a1a84a324206b6b1f5f704ab166c4ebf78aed76Peter Dunlap# override on commandline for other architectures
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs Common/Utils.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/Doc.hs CASL/Print_AS_Basic.hs Modal/AS_Modal.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap# remove -fno-warn-orphans for older ghcs and add -ifgl
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap -fallow-overlapping-instances -fallow-undecidable-instances
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap# -ddump-minimal-imports
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap# flags also come in via ../uni/uni-package.conf
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap# but added it here in case of compilation without uni
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# some modules from uni for haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# if uni/server is included also HaXml sources are needed
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += OWL_DL/ToHaskellAS.hs Taxonomy/taxonomyTool.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### list of directories to run checks in
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/transforms base/transforms/Deriving property \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte property/syntax property/AST property/transforms \
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China property/TI property/defs property/parse2 property/parse2/Parser
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing ChinaPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing Chinapfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte patch -usNlp0 -d $(PFE_TOOLDIR) -i `pwd`/$< || exit 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo "{-# OPTIONS -w #-}" > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortederived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for appendHaskellPreludeString
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for ATC generation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortehs_der_files += Haskell/TiATC.hs Haskell/TiDecorateATC.hs Haskell/TiPropATC.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTESTTARGETS = Test.o $(subst .hs,,$(TESTTARGETFILES))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Profiling (only for debugging)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Attention every module must be compiled with profiling or the linker
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### cannot link the various .o files properly. So after switching on
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### Profiling, do an 'gmake real_clean; gmake'
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### Comment in the following line for switching on profiling.
cc7ef4959916befd1d1197845b5b82284d96c450yi zhang - Sun Microsystems - Beijing China#HC_PROF = -prof -auto-all -fignore-asserts
cc7ef4959916befd1d1197845b5b82284d96c450yi zhang - Sun Microsystems - Beijing ChinaHC_OPTS = $(HC_FLAGS) $(HC_INCLUDE) $(HC_PACKAGE) $(PFE_FLAGS) $(HC_PROF) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte####################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## sources for hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortenon_sources = Common/LaTeX_maps.svmono.hs CspCASL/Main.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/CaslLanguage.hs ./Test.hs Static/LogicStructured.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(wildcard haifa-lite/src/Org/Xmlsoap/Schemas/Soap/*.hs) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(wildcard $(addsuffix /[A-Z]*hs, $(SOURCE_PATHS))))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedrifted_files = Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs Syntax/AS_Structured.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Modal/AS_Modal.hs CoCASL/AS_CoCASL.hs COL/AS_COL.hs CASL_DL/AS_CASL_DL.hs\
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Logic/Prover.hs #Common/Id.hs Common/Result.hs OWL_DL/AS.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ATC/$(basename $(basename $(notdir $(file)))).der.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
6cefaae1e90a413ba01560575bb3998e1a3df40eJack Meng $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Grothendieck -o $@ $<
6cefaae1e90a413ba01560575bb3998e1a3df40eJack MengATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
6cefaae1e90a413ba01560575bb3998e1a3df40eJack MengATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -x ProverTemplate -i ATC.AS_Annotation -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs CoCASL/Sublogic.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCspCASL_files = CspCASL/AS_CSP_CASL.hs CspCASL/SignCSP.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegenerated_rule_files = $(atc_der_files) $(atc_logic_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinline_axiom_files = Comorphisms/CASL2PCFOL.hs Comorphisms/PCFOL2CFOL.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Comorphisms/Modal2CASL.hs Comorphisms/CASL2TopSort.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Comorphisms/CASL2SubCFOL.hs CASL_DL/PredefinedSign.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortederived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OWL_DL/ReadWrite.hs ConstraintCASL/AS_ConstraintCASL.hs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# sources that have {-# OPTIONS -cpp #-}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte SPASS/Logic_SPASS.hs GUI/Utils.hs Driver/WriteFn.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Comorphisms/LogicList.hs Comorphisms/LogicGraph.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Comorphisms/KnownProvers.hs hets.hs $(happy_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte hxt/Text/XML/HXT/ProtocolHandler/ProtocolHandler.hs \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# unused, remove when header files are gone
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortegenrule_header_files = $(wildcard ATC/*.header.hs)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortenondoc_sources = $(wildcard utils/DrIFT-src/*.hs) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(cpp_sources) $(pfe_sources) $(gen_inline_axiom_files) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(genrule_header_files) $(generated_rule_files) \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hspp \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte Haskell/PreludeString.append.hs Haskell/ProgramaticaPrelude.hs \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlaphspp_sources = $(patsubst %.hs, %.hspp, $(cpp_sources))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# this variable holds the modules that should be documented
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlapdoc_sources = $(filter-out $(nondoc_sources), $(sources) $(hspp_sources))
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlaptax_sources = Taxonomy/AbstractGraphView.hs Taxonomy/MMiSSOntology.hs \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap Taxonomy/MMiSSOntologyGraph.hs Taxonomy/OntoParser.hs
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlaptax_objects = $(patsubst %.hs, %.o, $(tax_sources))
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap####################################################################
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte check capa hacapa h2h h2hf clean_genRules genRules \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte derivedSources install_hets install release cgi patch ghci
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap ghc --make GUI/hets_cgi.hs -o $@ $(HC_INCLUDE) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte###############################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### TAGS files for (x)emacs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# load them with "M-x" "visit-tags-table" from
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# use "M-." to search for a tag
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# !!Beware this is somewhat instable, because it uses an absolute path!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /home/ger/linux/ghc-5.04.2/bin/i386-unknown-linux/hasktags \
d233de7e52b23edf30b2270f51e28cda6e08a98cJack Meng @echo 'File : Maintainer' > $@
b424305435881ac456a9343be2898f1f86440f31Sheng-Liang Eric Zhang 'foreach my $$f (@ARGV) { open I, "<$$f"; \
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China print "$$f :"; while (<I>) \
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China { if(m,^\s*Maintainer\s*:\s*(.*)$$,o) { \
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China print " $$1" ; last} }; print "\n"; close I; }' \
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China $(sources) >> $@
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China###############################
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China### count lines of code
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing Chinacount: $(sources)
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China wc -l $(sources)
d233de7e52b23edf30b2270f51e28cda6e08a98cJack Meng###############################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### Documentation via haddock
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# generate haddock documentation with links to sources
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the interface treatment is stolen from uni/mk/suffix.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(HADDOCK) -o docs -h -v -s ../%F $$HINTERFACES \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -t 'Hets - the Heterogeneous Tool Set' \
d233de7e52b23edf30b2270f51e28cda6e08a98cJack Meng# sources are not copied here
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte###############################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### release management
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortederivedSources: $(derived_sources) $(hspp_sources)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT && \
e790cde880fa38b13f6b938bc83aab8f9eacab06bing zhao - Sun Microsystems - Beijing Chinautils/genRules: $(GENERATERULES_deps)
e790cde880fa38b13f6b938bc83aab8f9eacab06bing zhao - Sun Microsystems - Beijing China (cd utils/GenerateRules; \
e790cde880fa38b13f6b938bc83aab8f9eacab06bing zhao - Sun Microsystems - Beijing China $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
e790cde880fa38b13f6b938bc83aab8f9eacab06bing zhao - Sun Microsystems - Beijing China GenerateRules.hs -o ../genRules && strip ../genRules)
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China# "hssource" for ghc-5.04.2
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China $(HC) --make utils/InlineAxioms/InlineAxioms.hs $(HC_WARN) $(HC_PROF) \
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China -package hssource -i../.. -o $(INLINEAXIOMS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# set this variable from the command line to i,e. RELEASETAG='-r release-0-60'
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cvs -d :pserver:cvsread@cvs-agbkb.informatik.uni-bremen.de:/repository\
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if [ -d ../programatica ] ; then \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ln -s ../../programatica/tools programatica/tools ; fi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd HetCATS; $(MAKE) derivedSources; $(MAKE) clean; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte find . -name CVS -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cp -p hets $(INSTALLDIR)/versions/hets-`cat version_nr`
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ln -s versions/hets-`cat version_nr` hets; $(RM) version_nr)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepack/install-%.jar: pack/install-%.xml pack/UserInputSpec-%.xml hets.in hets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ## TODO: add more dependencies and use hets-opt
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# compile $< -b . -k web -o $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte###################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortepretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo -n "Generating pretty/LaTeX_maps.hs ... "
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @(cd pretty >/dev/null; ../utils/genItCorrections \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "ready"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @echo "please copy the file manually to Common"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#############################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### ATC DrIFT-rule generation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Isabelle_files)
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSPASS/ATC_SPASS.der.hs: $(SPASS_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SPASS_files)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOWL_DL/ATC_OWL_DL.der.hs: $(OWL_DL_files) $(GENRULES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GENRULECALL) -i ATC.AS_Annotation -i OWL_DL.ReadWrite \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) $(generated_rule_files) $(gendrifted_files) $(hspp_sources) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte###############
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China### removes *.hi and *.o in all include directories
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China for p in $(CLEAN_PATH) ; do \
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China (cd $$p ; $(RM) *.hi *.o) ; done
2b79d384d32b4ea1e278466cd9b0f3bb56daae22bing zhao - Sun Microsystems - Beijing China### remove binaries
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### additionally removes the library files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### additionally removes generated files not in the CVS tree
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China####################################################################
aff4bce51ecc47df7e5a6351b7cee6bc20408c63yi zhang - Sun Microsystems - Beijing China####################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### christian's target
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### CASL parser
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte### CASL parser
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### HasCASL parser
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### Haskell analysis
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### Haskell to Isabelle-HOLCF translation
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap $(HC) -O --make -o $@ $< $(HC_FLAGS) $(PFE_FLAGS)
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### HasCASL to Haskell translation
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### test program to check the known provers
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapshowKP: Comorphisms/test/showKP.hs Comorphisms/*.hs Common/*.hs Logic/*.hs
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap### run tests in other directories
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap####################################################################
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap## Preparing the version of HetCATS
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap $(PERL) utils/build_version.pl version_nr < Driver/Version.in > $@
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap## two hardcoded dependencies for a correct generation of Version.hs
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap## two dependencies for avoidence of circular prerequisites
30e7468f8f41aa30ada067b2c1d5d284046514daPeter DunlapCASL_DEPENDENT_BINARIES= hets CASL/capa CASL/fromKif \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap Common/annos Common/test_parser Comorphisms/test/showKP \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap$(CASL_DEPENDENT_BINARIES): $(sources) $(derived_sources)
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap####################################################################
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap## rules for DrIFT
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap echo "{-# OPTIONS -w #-}" > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rules for inlineAxioms
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap## rule for cpp and haddock
30e7468f8f41aa30ada067b2c1d5d284046514daPeter Dunlap $(HC) -E -cpp -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## compiling rules for object and interface files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## compiling rules for dependencies
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## generate the inline file for the predefined CASL_DL sign
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Warning: Don't change the order of the depencies!!
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte echo " )" >> $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uses intransparently utils/outlineAxioms