Makefile revision 5afff1a0f62394414c33b06141175b3ab0b117a5
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# Makefile
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# $Id$
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# Author: (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2009
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# This Makefile will compile the hets system and provides also
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# targets for test programs during implementation phases.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# !!! Note: This makefile is written for GNU make !!!
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# (gmake on solaris)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederall: hets
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederinclude var.mk
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder# the 'replacing spaces' example was taken from the (GNU) Make info manual
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederempty =
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederspace = $(empty) $(empty)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
a1ed34933c266ce85066acb0d7b20c90cb8eb213Christian MaederDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichDRIFT_deps = utils/DrIFT-src/*hs
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
ad270004874ce1d0697fb30d7309f180553bb315Christian MaederGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
4cb215739e9ab13447fa21162482ebe485b47455Christian Maeder Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
8ef75f1cc0437656bf622cec5ac9e8ea221da8f2Christian Maeder Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus Luettich
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPERL = perl
74eed04be26f549d2f7ca35c370e1c03879b28b1Christian MaederHAPPY = happy -sga
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederGENRULES = utils/genRules
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian Maeder -i Data.Typeable -i ATerm.Lib
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederGENRULECALL2 = $(GENRULES) -r Typeable -r ShATermLG \
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder -i Data.Typeable -i ATerm.Lib -i ATC.Grothendieck
ef9e8535c168d3f774d9e74368a2317a9eda5826Christian MaederDRIFT = utils/DrIFT
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederINLINEAXIOMS = utils/outlineAxioms
e593b89bfd4952698dc37feced21cefe869d87a2Christian MaederHADDOCK = haddock
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederOSBYUNAME = $(shell uname)
c3053d57f642ca507cdf79512e604437c4546cb9Christian Maederifneq ($(findstring SunOS, $(OSBYUNAME)),)
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederTAR = gtar
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederPATCH = gpatch
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian Maederelse
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian MaederTAR = tar
05a62e84edac8c64de04f8349dee418598d216b9Christian MaederPATCH = patch
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maederendif
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederARCH = $(subst $(space),,$(shell uname -m))
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederSETUP = utils/Setup
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederSETUPPACKAGE = ../$(SETUP) clean; \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder ../$(SETUP) configure -O -p $(SETUPPREFIX) --user; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder# list glade files
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederGTK_GLADE_FILES = $(wildcard GUI/Glade/*.glade)
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederGTK_GLADE_HSFILES = $(subst .glade,.hs,$(GTK_GLADE_FILES))
8cacad2a09782249243b80985f28e9387019fe40Christian Maeder
6a2dad705deefd1b7a7e09b84fd2d75f2213be47Christian Maederderived_sources += $(GTK_GLADE_HSFILES)
a7c27282e71cf4505026645f96d4f5cb8a284e32Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder# the list of logics that need ShATermConvertible instances
014dc30f64ec25e4790cca987d4d1e6635430510Christian Maederlogics = CASL HasCASL Isabelle Modal Temporal CoCASL COL CspCASL CASL_DL \
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettich SoftFOL ConstraintCASL Propositional OWL RelationalScheme VSE OMDoc DFOL \
6aea82c63ba1d2efc0329bc784a14e521469ec20Christian Maeder LF Framework Maude ExtModal CommonLogic CSL QBF Adl HolLight Fpl
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
feca1d35123d8c31aee238c9ce79947b0bf65494Christian MaederTESTTARGETFILES += Scratch.hs CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
c8012b9719c73f08418af7a0b4ba28fa1d200631Christian Maeder Common/ATerm/ATermDiffMain.hs Common/annos.hs \
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Comorphisms/test/sublogicGraph.hs PGIP/ParseProofScript.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder Common/testxupdate.hs Common/testxpath.hs \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder SoftFOL/dfg.hs Adl/adl.hs GUI/displayDependencyGraph.hs
23ffcc44ca8612feccbd8fda63fa5be7ab5f9dc3Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder### list of directories to run checks in
c0c2380bced8159ff0297ece14eba948bd236471Christian MaederTESTDIRS += Common CASL Fpl/test HasCASL test
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Haskell/TiPropATC.hs Haskell/ATC_Haskell.der.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPFE_TOOLDIR = $(wildcard programatica/tools)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederifneq ($(strip $(PFE_TOOLDIR)),)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder base/transforms base/transforms/Deriving property \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder property/syntax property/AST property/transforms \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder property/TI property/defs property/parse2 property/parse2/Parser
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian MaederPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
bc8cbf12aa172bf5673b92a9e7a0151d4aa4c315Christian Maederpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
2d130d212db7208777ca896a7ecad619a8944971Christian MaederPFE_PATH = $(addprefix -i, $(PFE_PATHS))
2d130d212db7208777ca896a7ecad619a8944971Christian Maederhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
51d769d55d88dfa88bdf54bee78d8fa85a2deba8Christian Maeder
a5e5b8c3e5c11177e5034ef2423813a5d28979edChristian MaederLEX_DIR = $(PFE_TOOLDIR)/base/parse2/Lexer
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maederprogramatica_pkg: $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs \
b363eb04791e7f735633b9b4088502c2bc50ebfcChristian Maeder $(LEX_DIR)/HsLex.hs $(SETUP)
a42fbfe7becf0eae2d624123eb0db73a794593f0Christian Maeder @if $(HCPKG) field programatica version; then \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder echo "of programatica package found"; else \
1cd4f6541984962658add5cfaa9f28a93879881bChristian Maeder ($(PATCH) -usNlp0 -d $(PFE_TOOLDIR) \
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder -i `pwd`/Haskell/Programatica.patch || exit 0); \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder cp -f utils/programatica.cabal $(PFE_TOOLDIR); \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder cp -f $(SETUP) $(PFE_TOOLDIR); \
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder cp -f LICENSE.txt $(PFE_TOOLDIR); \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder (cd $(PFE_TOOLDIR); \
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder ./Setup configure $(SETUPPREFIX) --user; \
4017ebc0f692820736d796af3110c3b3018c108aChristian Maeder ./Setup build; ./Setup install) fi
a9b59eb2ce961014974276cdae0e9df4419bd212Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)/HsLex.hs: $(LEX_DIR)Gen/HsLexerGen
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder echo "{-# OPTIONS -w #-}" > $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder $< >> $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
a3c6d8e0670bf2aa71bc8e2a3b1f45d56dd65e4cChristian Maeder $(LEX_DIR)/HsTokens.hs
dc679edd4ca027663212afdf00926ae2ce19b555Christian Maeder $(HC) --make -fno-monomorphism-restriction -O \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i$(PFE_TOOLDIR)/base/tests/HbcLibraries \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder -i$(PFE_TOOLDIR)/base/lib \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i$(LEX_DIR) -i$(LEX_DIR)Gen -i$(LEX_DIR)Spec \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder $@.hs -o $@
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maederlogics += Haskell
4017ebc0f692820736d796af3110c3b3018c108aChristian Maederderived_sources += Haskell/PreludeString.hs
b568982efd0997d877286faa592d81b03c8c67b8Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian MaederAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich Haskell/ProgramaticaPrelude.hs
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder## rule for appendHaskellPreludeString
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederHaskell/PreludeString.hs: Haskell/PreludeString.append.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder $(APPENDPRELUDESTRING)
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder $(RM) $@
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(APPENDPRELUDESTRING) < $< > $@
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder chmod 444 $@
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian MaederAst_Haskell_files = HsDeclStruct HsExpStruct HsFieldsStruct \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder HsGuardsStruct HsKindStruct HsPatStruct HsTypeStruct HsAssocStruct \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder HsModule HsName HsLiteral HsIdent
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#files in base/TI/
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#Ti_Haskell_files = TiTypes TiKinds TiDecorate TiInstanceDB
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederOther_PFE_files = property/AST/HsPropStruct base/defs/PNT \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/defs/UniqueNames base/Modules/TypedIds base/Modules/Ents \
ca074a78b8dcccbb8c419586787882f98d0c6163Christian Maeder base/parse2/SourceNames base/syntax/SyntaxRec \
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder property/syntax/PropSyntaxStruct
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederHaskell_files = $(addsuffix .hs, \
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder $(addprefix $(PFE_TOOLDIR)/base/AST/, $(Ast_Haskell_files)) \
d946c1bfdd7d58aa7c023efe864d5999eb44a61bChristian Maeder $(addprefix $(PFE_TOOLDIR)/, $(Other_PFE_files)))
e6d5dbbc3308f05197868806e0b860f4f53875f1Christian Maeder
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder## rule for ATC generation
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian MaederHaskell/ATC_Haskell.der.hs: $(Haskell_files) $(GENRULES)
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder $(GENRULECALL) -i Haskell.BaseATC -o $@ $(Haskell_files)
eb74267cf39e4e95f9eeb5c765f4c8dac33971b4Christian Maeder
e4f4d096e5e6d60dd91c746d0e833d0ac7a29c50Christian Maederhs_der_files += $(hs_clean_files)
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTESTDIRS += ToHaskell
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian MaederTESTTARGETFILES += Haskell/hana.hs Haskell/h2h.hs Haskell/h2hf.hs
8d178ae08a52d61379e6b8074f61646499bc88bbChristian Maederelse
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# unset this variable from var.mk because the programatica sources
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder# are needed to created our sources!
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederPFE_FLAGS =
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maederendif
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder# end of programatica stuff
6cd33d6101fb1b93baa6d86fac158af18a115108Christian Maeder
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian MaederTESTTARGETS = $(subst .hs,,$(TESTTARGETFILES))
59138b404f12352d103eeffbeaeb3957b90e75fdChristian Maeder
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian MaederGHCVERSION = $(shell ghc --numeric-version)
b2ac5a92cf36382e8deea5661c1964566caf72b3Christian Maederifneq ($(findstring 12, $(GHCVERSION)),)
6cd33d6101fb1b93baa6d86fac158af18a115108Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederendif
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maederifneq ($(findstring 7, $(GHCVERSION)),)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederNO_BIND_WARNING = -fno-warn-unused-do-bind -fno-warn-warnings-deprecations
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maederendif
0e5b095a19790411e5352fa7cf57cb0388e70472Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHC_WARN = -Wall -fno-warn-orphans $(NO_BIND_WARNING)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
f1a913f880e409e7327b5deae95738b5448379a1Christian MaederINCLUDE_PATH =
f1a913f880e409e7327b5deae95738b5448379a1Christian MaederHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder# uncomment HC_PROF for profiling (and comment out packages in var.mk)
f1a913f880e409e7327b5deae95738b5448379a1Christian Maeder# call resulting binary with a final +RTS -p to get a file <binary>.prof
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder# HC_PROF = -prof -auto-all -osuf p_o +RTS -K100m -RTS
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederifneq ($(findstring -O, $(CFLAGS)),)
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHC_DEBIAN_OPT=-O
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maederendif
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian MaederHC_OPTS += $(HC_WARN) $(HC_INCLUDE) $(HC_PROF) $(HC_DEBIAN_OPT)
93f5b72fdb9ee734caa750b43dd79bbb590dcd73Christian Maeder# -ddump-minimal-imports
328a85c807f2a95c3f147d10b05927eaf862ebebChristian Maeder# uncomment the above line to generate .imports files for displayDependencyGraph
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang
06dd4e7c29f33f6122a910719e3bd9062256e397Andy Gimblett# files generated by DriFT
254df6f22d01eacf7c57b85729e0445747b630d9Christian Maederdrifted_files = Common/AS_Annotation.hs \
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder CASL/AS_Basic_CASL.hs Modal/AS_Modal.hs \
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder Syntax/AS_Structured.hs Syntax/AS_Architecture.hs Syntax/AS_Library.hs \
5b818f10e11fc79def1fdd5c8a080d64a6438d87Christian Maeder Propositional/AS_BASIC_Propositional.hs \
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers CoCASL/AS_CoCASL.hs COL/AS_COL.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder CASL_DL/AS_CASL_DL.hs OWL/ReadWrite.hs \
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder CspCASL/AS_CspCASL_Process.hs CspCASL/AS_CspCASL.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder RelationalScheme/AS.hs ATC/Grothendieck.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder ExtModal/AS_ExtModal.hs QBF/AS_BASIC_QBF.hs \
d6697ad2479099b816203fd2c36f593c72c73c76Christian Maeder CommonLogic/AS_CommonLogic.hs Fpl/As.hs \
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(gendrifted_files)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian Maeder# files to extract data types from to generate ShATermConvertible instances
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersatc_files = Common/AS_Annotation.der.hs Common/DefaultMorphism.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs \
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder Logic/Prover.hs Common/LibName.hs \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder Common/Consistency.hs Common/ProofTree.hs Static/DevGraph.hs \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder Common/Id.hs Common/Result.hs Common/OrderedMap.hs \
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder Common/Lib/Graph.hs
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder# files generated by genRules as input for DriFT
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maederatc_der_files = $(foreach file, $(atc_files), \
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder ATC/$(basename $(basename $(notdir $(file)))).der.hs)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder# the rules to create ATC .der.hs file for DriFT
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Id.der.hs: Common/Id.hs $(GENRULES)
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder $(GENRULECALL) -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian MaederATC/Result.der.hs: Common/Result.hs $(GENRULES)
383aa66e5142365fe9b1f88b18c1da5b27cc8c04Christian Maeder $(GENRULECALL) -i ATC.Id -o $@ $<
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian MaederATC/OrderedMap.der.hs: Common/OrderedMap.hs $(GENRULES)
a14767aeac3e78ed100f5b75e210ba563ee10dbaChristian Maeder $(GENRULECALL) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Graph.der.hs: Common/Lib/Graph.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $<
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder
54ea981a0503c396c2923a1c06421c6235baf27fChristian MaederATC/ProofTree.der.hs: Common/ProofTree.hs $(GENRULES)
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder $(GENRULECALL) -o $@ $<
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/AS_Annotation.der.hs: Common/AS_Annotation.der.hs $(GENRULES)
697e63e30aa3c309a1ef1f9357745111f8dfc5a9Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/Consistency.der.hs: Common/Consistency.hs $(GENRULES)
f9e0b18852b238ddb649d341194e05d7200d1bbeChristian Maeder $(GENRULECALL) -x Common.Consistency.ConservativityChecker -o $@ $<
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder
819e29dba060687cf391e444e0f6ff88c1908cc3Christian MaederATC/LibName.der.hs: Common/LibName.hs $(GENRULES)
819e29dba060687cf391e444e0f6ff88c1908cc3Christian Maeder $(GENRULECALL) -i ATC.Id -i Common.ATerm.ConvInstances -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/ExtSign.der.hs: Common/ExtSign.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -i Common.ATerm.ConvInstances -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/DefaultMorphism.der.hs: Common/DefaultMorphism.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
254df6f22d01eacf7c57b85729e0445747b630d9Christian MaederATC/AS_Structured.der.hs: Syntax/AS_Structured.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
aded505f9b42cc38975559c2a5d175ae95de436bChristian MaederATC/AS_Architecture.der.hs: Syntax/AS_Architecture.der.hs $(GENRULES)
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(GENRULECALL2) -i ATC.AS_Structured -o $@ $<
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder
ac34194a668399bb8ef238da77c3a09e93fb253bChristian MaederATC/AS_Library.der.hs: Syntax/AS_Library.der.hs $(GENRULES)
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder $(GENRULECALL2) -i ATC.AS_Architecture -i ATC.LibName -o $@ $<
aded505f9b42cc38975559c2a5d175ae95de436bChristian Maeder
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederATC/GlobalAnnotations.der.hs: Common/GlobalAnnotations.hs $(GENRULES)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -i ATC.Result -o $@ $<
4fc9de0da898448f1d3597ebbd8c04a066464c21Christian Maeder
df5eb1b8e587946c9d072f4ee6ac7d001719b034Christian MaederATC/Prover.der.hs: Logic/Prover.hs $(GENRULES)
1842453990fed8a1bd7a5ac792d7982c1d2bfcd5Christian Maeder $(GENRULECALL) -x Logic.Prover.ProverTemplate \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder -x Logic.Prover.ConsChecker \
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder -i ATC.AS_Annotation -i ATC.OrderedMap -o $@ $<
986d3f255182539098a97ac86da9eeee5b7a72e3Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederATC/DevGraph.der.hs: Static/DevGraph.hs $(GENRULES)
4561227a776bdf0ab679b19fb92f1eaaed8786f7Christian Maeder $(GENRULECALL2) -i ATC.LibName -i ATC.Consistency \
01e278bdd7dce13b9303ed3d79683d83c89d09f9Liam O'Reilly -i ATC.AS_Library -o $@ $<
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
5ad5dffe06818a13e1632b1119fbca7881085fc1Dominik Luecke# ATC files for every logic
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederCASL_files = CASL/Sublogic.hs CASL/Morphism.hs CASL/Sign.hs \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder CASL/AS_Basic_CASL.der.hs
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuHasCASL_files = Common/Prec.hs HasCASL/As.hs HasCASL/Le.hs HasCASL/Sublogic.hs
31d6d9286988dc31639d105841296759aeb743e0Jonathan von SchroederIsabelle_files = Isabelle/IsaSign.hs
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederPropositional_files = Propositional/Sign.hs Propositional/Morphism.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder Propositional/AS_BASIC_Propositional.hs Propositional/Symbol.hs \
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder Propositional/Sublogic.hs
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
05a206508bc898f87fe6ab6e069814df3c29d303Dominik LueckeHolLight_files = HolLight/Sentence.hs HolLight/Sign.hs \
05a206508bc898f87fe6ab6e069814df3c29d303Dominik Luecke HolLight/Sublogic.hs HolLight/Term.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian MaederQBF_files = Propositional/Sign.hs QBF/Morphism.hs \
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder QBF/AS_BASIC_QBF.hs QBF/Symbol.hs \
d54cd08a4cfa26256c38d8ed12c343adbfe1a0e3Christian Maeder QBF/Sublogic.hs
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian MaederRS_files = RelationalScheme/AS.hs RelationalScheme/Sign.hs
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
8c812cd83569e973f10cf69a342424ceabc07af9Christian MaederModal_files = Modal/AS_Modal.hs Modal/ModalSign.hs
0b349288edfa50fdf38fda1a14e1562d03f92574Christian MaederTemporal_files = Temporal/AS_BASIC_Temporal.hs Temporal/Sign.hs \
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder Temporal/Symbol.hs Temporal/Morphism.hs
5afff1a0f62394414c33b06141175b3ab0b117a5Christian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian MaederConstraintCASL_files = ConstraintCASL/AS_ConstraintCASL.hs
1b3a2f98d1cd01fc9e0591f69507e20526727559Dominik LueckeCoCASL_files = CoCASL/AS_CoCASL.hs CoCASL/CoCASLSign.hs
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus LuettichCOL_files = COL/AS_COL.hs COL/COLSign.hs
247cc88aa55d0a7b6831767cd593ea885c6747a0Christian Maeder
e39a1626bee36d6ad13a2c0014a80ef179a65bcbChristian MaederCspCASL_files = CspCASL/AS_CspCASL.hs CspCASL/AS_CspCASL_Process.hs \
f8e1a1eca871a26a535a4ee7d51902ba94b1db1eChristian Maeder CspCASL/SignCSP.hs CspCASL/SymbItems.hs CspCASL/Symbol.hs \
ea3bff3e547a1ac714d4db39c5efef95e02b2e7dChristian Maeder CspCASL/Morphism.hs
dd6f22b9dcff2695181b86372e4df03d5b96e92dKristina Sojakova
005e0f0c6b0cc898003b03801158c208f3071fc5Kristina SojakovaCASL_DL_files = CASL_DL/AS_CASL_DL.hs CASL_DL/Sign.hs CASL_DL/Sublogics.hs
abf2487c3aece95c371ea89ac64319370dcb6483Klaus LuettichSoftFOL_files = SoftFOL/Sign.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederOWL_files = OWL/Sign.hs OWL/Sublogic.hs OWL/Morphism.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederVSE_files = VSE/As.hs
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederOMDoc_files = OMDoc/OMDocInterface.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederDFOL_files = DFOL/AS_DFOL.hs DFOL/Sign.hs DFOL/Morphism.hs DFOL/Symbol.hs
76b9b2974795a6fb31f242fd032de3ff66df6204Christian MaederLF_files = LF/Sign.hs LF/Morphism.hs LF/AS.hs
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederFramework_files = Framework/AS.hs
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik DietrichMaude_files = Maude/Sign.hs Maude/Morphism.hs Maude/Sentence.hs \
6b75c206b317eb30a08d88a8f27e0295ffeb1546Christian Maeder Maude/Symbol.hs Maude/AS_Maude.hs
9a4b469ca0a7f44a598e551a973c75195207db58Eugen Kuksa
48aa0645e25883048369afc02aac3f49b14a50daChristian MaederExtModal_files = ExtModal/AS_ExtModal.hs ExtModal/ExtModalSign.hs \
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder ExtModal/MorphismExtension.hs
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederCSL_files = CSL/Sign.hs CSL/Morphism.hs CSL/AS_BASIC_CSL.hs CSL/Symbol.hs
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis TsogiasCommonLogic_files = CommonLogic/AS_CommonLogic.hs CommonLogic/Sign.hs \
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias CommonLogic/Symbol.hs CommonLogic/Morphism.hs
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst SchulzAdl_files = Adl/As.hs Adl/Sign.hs
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaederFpl_files = Fpl/As.hs Fpl/Sign.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# ATC DrIFT-rule generation for logics
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL/ATC_CASL.der.hs: $(CASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(CASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederRelationalScheme/ATC_RelationalScheme.der.hs: $(RS_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(RS_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederPropositional/ATC_Propositional.der.hs: $(Propositional_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Propositional_files)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von SchroederQBF/ATC_QBF.der.hs: $(QBF_files) $(GENRULES)
7a3fe82695aa32657693e05712f84d7f81672f2eJonathan von Schroeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(QBF_files)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai CodescuHolLight/ATC_HolLight.der.hs: $(HolLight_files) $(GENRULES)
1535e1d8c82db5f7e2402261983c4c2ef39f4f39Mihai Codescu $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(HolLight_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederHasCASL/ATC_HasCASL.der.hs: $(HasCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.GlobalAnnotations -o $@ $(HasCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederIsabelle/ATC_Isabelle.der.hs: $(Isabelle_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -o $@ $(Isabelle_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederModal/ATC_Modal.der.hs: $(Modal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Modal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederTemporal/ATC_Temporal.der.hs: $(Temporal_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Temporal_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederConstraintCASL/ATC_ConstraintCASL.der.hs: $(ConstraintCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ConstraintCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCASL_DL/ATC_CASL_DL.der.hs: $(CASL_DL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CASL_DL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCoCASL/ATC_CoCASL.der.hs: $(CoCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CoCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCOL/ATC_COL.der.hs: $(COL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(COL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederCspCASL/ATC_CspCASL.der.hs: $(CspCASL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(CspCASL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederSoftFOL/ATC_SoftFOL.der.hs: $(SoftFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(SoftFOL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederOWL/ATC_OWL.der.hs: $(OWL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i OWL.ReadWrite -o $@ $(OWL_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederVSE/ATC_VSE.der.hs: $(VSE_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -x VSE.As.FoldRec -i CASL.ATC_CASL -o $@ $(VSE_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
3e8b136f23ed57d40ee617f49bcac37830b58cabChristian MaederOMDoc/ATC_OMDoc.der.hs: $(OMDoc_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i OMDoc.ATerm -o $@ $(OMDoc_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian MaederDFOL/ATC_DFOL.der.hs: $(DFOL_files) $(GENRULES)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(DFOL_files)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova
48aa0645e25883048369afc02aac3f49b14a50daChristian MaederLF/ATC_LF.der.hs: $(LF_files) $(GENRULES)
9f85afecbd79b3df5a0bb17bd28cd0b288dc3213Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(LF_files)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova
79834070d6d3c63a098e570b12fa3405c607dc70Kristina SojakovaFramework/ATC_Framework.der.hs: $(Framework_files) $(GENRULES)
79834070d6d3c63a098e570b12fa3405c607dc70Kristina Sojakova $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Framework_files)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian MaederMaude/ATC_Maude.der.hs: $(Maude_files) $(GENRULES)
23b4e542dca35852f58d1fb3f7d9078c1de5ab06Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Maude_files)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder
8a78868bae2ec6838c87366c35c57e109154c51eChristian MaederExtModal/ATC_ExtModal.der.hs: $(ExtModal_files) $(GENRULES)
8a78868bae2ec6838c87366c35c57e109154c51eChristian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(ExtModal_files)
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst Schulz
624e6701e0deb7ac6c03c0cba0190fbc5033cf93Ewaryst SchulzCSL/ATC_CSL.der.hs: $(CSL_files) $(GENRULES)
c2e192ace9ef7cfb0e59563f1b24477b2b65cff3Dominik Dietrich $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CSL_files)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl LucCommonLogic/ATC_CommonLogic.der.hs: $(CommonLogic_files) $(GENRULES)
7165a916d2fa1bf87c4741ec63b253413eebbf69Karl Luc $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(CommonLogic_files)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder
01645eac73dbc789392674930adc5745c935f3a0Christian MaederAdl/ATC_Adl.der.hs: $(Adl_files) $(GENRULES)
01645eac73dbc789392674930adc5745c935f3a0Christian Maeder $(GENRULECALL) -i ATC.AS_Annotation -o $@ $(Adl_files)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian MaederFpl/ATC_Fpl.der.hs: $(Fpl_files) $(GENRULES)
bff4b3f816be4c1e1d8ded76f1d5af786839e1a9Christian Maeder $(GENRULECALL) -i CASL.ATC_CASL -o $@ $(Fpl_files)
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogias# all ATC .der.hs files for all logics
b5da047a9a875dec3f968b6c0df96af326f90fa9Alexis Tsogiasatc_logic_files = $(foreach logic, $(logics), $(logic)/ATC_$(logic).der.hs)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulzgenerated_rule_files = $(atc_der_files) $(atc_logic_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
bab2d88d650448628730ed3b65c9f99c52500e8cChristian Maeder# a rule to create all .der.hs files
bab2d88d650448628730ed3b65c9f99c52500e8cChristian MaedergenRules: $(generated_rule_files)
0a03acf9fa28e6ff00f4d7c9c6acbae64cf09c56Ewaryst Schulz
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# the final ATC target files created by DriFT
c70ef4c3b3a62764f715510c9fd67dde3acfe454Christian Maedergendrifted_files = $(patsubst %.der.hs, %.hs, $(generated_rule_files))
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder# files to be processed by utils/InlineAxioms
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckersinline_axiom_files = Comorphisms/Modal2CASL.hs CASL_DL/PredefinedSign.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedergen_inline_axiom_files = $(patsubst %.hs,%.inline.hs, $(inline_axiom_files))
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# all sources that need to be created before ghc can be called
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maederderived_sources += $(drifted_files) Driver/Version.hs $(happy_files) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(inline_axiom_files) Modal/ModalSystems.hs $(hs_der_files)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
2b33802ca26124644f4311db4319376ecffdc8d2Christian Maeder####################################################################
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder### targets
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski.PHONY : all hets-opt hets-optimized clean o_clean clean_pretty \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder real_clean bin_clean package_clean distclean packages \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder programatica_pkg aterm_pkg maintainer-clean annos \
8c812cd83569e973f10cf69a342424ceabc07af9Christian Maeder check capa hacapa h2h h2hf showKP clean_genRules genRules \
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder count doc fromKif derivedSources release cgi ghci build
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder.SECONDARY : %.hs %.d $(generated_rule_files) $(gen_inline_axiom_files)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich$(SETUP): utils/Setup.hs
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(HC) --make -O -o $@ $<
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder
f443a57f2a8e0ca3daa7431b0c89a18ba52c337aChristian Maederpackages: programatica_pkg
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
857992065be4ed40a72c6296b6c0aec62ab4c5b9Christian Maederprogramatica_pkg:
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski
7c99e334446bb97120e30e967baeeddfdd1278deKlaus Luettichhets-opt:
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder $(MAKE) distclean
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder $(MAKE) derivedSources
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder $(MAKE) clean
fc436618ae33856afa329ee53c4f47a2e19100eeChristian Maeder $(MAKE) hets-optimized
27785f379d6810811b4e6d23feab18845fde9a98Christian Maeder
2d130d212db7208777ca896a7ecad619a8944971Christian Maederhets-optimized: $(derived_sources)
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(HC) --make -O -o hets hets.hs $(HC_OPTS)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maedercgi:
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder $(MAKE) distclean
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder $(MAKE) derivedSources
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(MAKE) clean
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder $(MAKE) hets.cgi
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
0c355dd0b739631ee472f9a656e266be27fa4e64Christian Maederhets.cgi: GUI/hets_cgi.hs
fa21fba9ceb1ddf7b3efd54731a12ed8750191d8Christian Maeder ghc --make GUI/hets_cgi.hs -o $@ $(HC_OPTS) -O
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettich# Documentation via haddock
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichdoc: docs/index.html
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus LuettichHADDOCK_OPTS = $(addprefix --optghc=, $(HC_OPTS))
c7ec85d1103173e089aa5048fd7afb2f9b505124Klaus Luettichdocs/index.html:
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder $(RM) -r docs
a883cd4d01fe39d23219cf5333425f195be24d8bChristian Maeder mkdir docs
b905126bab9454b89041f92b3c50bb9efc85e427Klaus Luettich $(HADDOCK) --ignore-all-exports -o docs -h -s ../%F \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder -t 'Hets - the Heterogeneous Tool Set' \
33d042fe6a9eb27a4c48f840b80838f3e7d98e34Christian Maeder -p Hets-Haddock-Prologue.txt $(HADDOCK_OPTS) \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Syntax/ADoc.hs $(filter-out Scratch.hs, $(wildcard *.hs)) \
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder Static/ChangeGraph.hs
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
f38b3687c5558128515e34fb85d8b466d22dc300Christian MaederderivedSources: $(derived_sources)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
22bd26413b512bcc2bd838945e3a56cdbbe01ac3Christian Maeder$(DRIFT): $(DRIFT_deps)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder (cd utils/DrIFT-src; $(HC) --make DrIFT.hs -o ../DrIFT)
f38b3687c5558128515e34fb85d8b466d22dc300Christian Maeder
a204259b2a95cf632336c164ff58331e9fd807e2Christian Maeder$(GENRULES): $(DRIFT) $(GENERATERULES_deps)
a545f813d2f8006ef79617e4fedc841d89195e2dChristian Maeder (cd utils/GenerateRules; \
ef67402074be14deb95e4ff564737d5593144130Klaus Luettich $(HC) --make -i../DrIFT-src -i../.. $(HC_WARN) \
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder GenerateRules.hs -o ../genRules)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder# "-package hssource" for ghc-5.04.2
e05fd774e0181e93963d4302303b20698603a505Christian Maeder$(INLINEAXIOMS): $(INLINEAXIOMS_deps)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder $(HC) $(PARSEC_FLAG) --make utils/InlineAxioms/InlineAxioms.hs \
aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9Christian Maeder $(HC_WARN) $(HC_PROF) -i../.. -o $(INLINEAXIOMS)
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederutils/appendHaskellPreludeString: utils/appendHaskellPreludeString.hs
e05fd774e0181e93963d4302303b20698603a505Christian Maeder $(HC) --make -o $@ $<
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder
f2d9352f2999f82c36b4b65535d14a6a40ae5a82Christian Maeder# release management
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian MaederREV = trunk
483333cb1e873b6d55f5ef0bfbf061861f0493abChristian Maederrelease:
483333cb1e873b6d55f5ef0bfbf061861f0493abChristian Maeder $(RM) -r Hets
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski svn co https://svn-agbkb.informatik.uni-bremen.de/Hets/$(REV) Hets
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder (cd Hets; $(MAKE) derivedSources; $(MAKE) clean; \
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder cp Makefile Makefile.orig; \
1dfba1f850f6a43094962b459998d1ea11472461Christian Maeder cp ReleaseMakefile Makefile; \
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder ./clean.sh; \
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder find . -name .svn -o -name \*.o -o -name \*.hi | xargs $(RM) -r; \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(RM) clean.*; utils/replaceAllHeaders.sh)
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder $(TAR) cvf Hets.tar Hets
fa0f3519d71f719d88577b716b1579776b4a2535Christian Maeder
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder# Common/LaTeX_maps.hs generation
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maederutils/genItCorrections: $(GENITCORRECTIONS_deps)
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder $(HC) --make -o $@ $<
5bb7eeaca10ea76595229375f907a5a388b7c882Christian Maeder
c59d1c38ef94b4fb1c8d9fda9573bc1e1d2801e7Christian Maederpretty/LaTeX_maps.hs: utils/words.pl utils/genItCorrections \
cd36bffee51c77cdadcb9f916b34fa512e311946Christian Maeder pretty/words.input pretty/fonts.input pretty/width-table.tex.templ
99afa6000472f3d291fdf9193ea19d334a58658dChristian Maeder @echo -n "Generating pretty/LaTeX_maps.hs ... "
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian Maeder @(cd pretty >/dev/null; $(PERL) ../utils/words.pl > words.pl.log)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder @(cd pretty >/dev/null; ../utils/genItCorrections \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich gen_it_characters gen_it_words >> LaTeX_maps.hs)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo "ready"
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich @echo "please copy the file manually to Common"
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### clean up
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichclean_genRules:
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich $(RM) $(generated_rule_files) $(gendrifted_files) \
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich $(hs_clean_files)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichclean: bin_clean o_clean clean_pretty
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### removes all *.o, *.hi and *.p_o files in all subdirectories
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maedero_clean:
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder find . -name \*.o -o -name \*.hi -o -name \*.p_o \
810746aea00b81c1eec27dae84d73a43599ff056Christian Maeder -o -name \*.exe -o -name \*.exe.manifest | xargs $(RM)
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder
8b0f493ae42bad8b94918cc0957f1af57096cda4Felix Reckers### remove binaries
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichbin_clean:
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(RM) hets
82e29b77f0ef4cccd7ed734692c5e1e93dbbc645Christian Maeder $(RM) hets.cgi
a80c28bb8b7a23ccdf7e08d0fe216fc19cc97273Klaus Luettich $(RM) $(SETUP)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder $(RM) $(TESTTARGETS)
5f0e3e4cb7dd31033c9682cafa712d2a66b2f3bcChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederclean_pretty:
b9625461755578f3eed04676d42a63fd2caebd0cChristian Maeder $(RM) pretty/*.c.* pretty/*.h.* pretty/gen_it_* \
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder pretty/generated_words.tex
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) test/*/*.{thy,pp.het,pp.tex,th,dfg.c,xml,log,dvi,aux,sty}
d0652648f9879c67a194f8b03baafe2700c68eb4Christian Maeder $(RM) test/*/log
210aa1071465039588fa9e38c10e343631c34655Christian Maeder $(RM) ToHaskell/test/*.{out,output}
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder $(RM) */test/temp*
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) doc/UserGuide.{log,aux,bbl,blg,out,pdf}
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich### additionally removes the library files
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichreal_clean: clean
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder### clean user packages
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maederpackage_clean:
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder $(HCPKG) unregister programatica --user || exit 0
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder $(HCPKG) unregister aterm --user || exit 0
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder### additionally removes generated files not in the CVS tree
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettichdistclean: clean clean_genRules
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(RM) $(derived_sources)
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) Modal/GeneratePatterns.inline.hs utils/appendHaskellPreludeString
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) CASL_DL/PredefinedSign.inline.hs CASL_DL/PredDatatypes.het
2d130d212db7208777ca896a7ecad619a8944971Christian Maeder $(RM) utils/DrIFT utils/genRules $(INLINEAXIOMS)
10883d13973c46cac98964b66ace7a52b2d059abChristian Maeder $(RM) utils/genItCorrections pretty/LaTeX_maps.hs pretty/words.pl.log
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) -r docs
83394c6b6e6de128e71b67c9251ed7a84485d082Christian Maeder
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maedermaintainer-clean: distclean package_clean
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder $(RM) -r $(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
c5e3fc166373b0d90f6e36e8aa234396a1dcd879Christian Maeder
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder### interactive
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maederghci: $(derived_sources)
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich ghci $(HC_OPTS)
4ba08bfca0cc8d9da65397b8dfd2654fdb4c0e62Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### build only, don't link
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maederbuild: hets.hs packages
e1559d046eb2c6dde0e6e272b37b6756eac0e8adChristian Maeder $(HC) --make -c $< $(HC_OPTS)
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Kif parser
2c619a4dfdc1df27573eba98e81ed1ace906941dChristian MaederfromKif: CASL/fromKif
5580ab3e64410186ccd36cde8a94282d8757ac0dChristian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Annos parser
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühlannos: Common/annos
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühl### CASL parser
e284004f10a315dbdb624c8b2522f65d485eaa48Martin Kühlcapa: CASL/capa
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
50515239e7e190f4a34ca581dd685d002148fbddChristian Maeder### HasCASL parser
50515239e7e190f4a34ca581dd685d002148fbddChristian Maederhacapa: HasCASL/hacapa
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maeder### Haskell analysis
0b349288edfa50fdf38fda1a14e1562d03f92574Christian Maederhana: Haskell/hana
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder### Haskell to Isabelle-HOLCF translation
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederh2hf: Haskell/h2hf
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederHaskell/h2hf: Haskell/h2hf.hs Haskell/*.hs Isabelle/*.hs Common/*.hs \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/Lib/*.hs Comorphisms/*.hs
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski $(HC) -O --make -o $@ $< $(HC_OPTS)
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski
8b4c68db8b465107cabef8b9cd5b6bc216e1b156Till Mossakowski### HasCASL to Haskell translation
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrinih2h: Haskell/h2h
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrini### test program to check the known provers
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian MaedershowKP: Comorphisms/test/showKP
5ce19352a9cc47d982819cc889a71cd0a61ac171Christian Maeder
c9a7e6af169a2adfb92f42331cd578065ed83a2bChristian Maeder### run tests in other directories
bcaf979d9babe6346aa343687aa7d596e2894cccPaolo Torrinicheck: $(TESTTARGETS)
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder for i in $(TESTDIRS); do $(MAKE) -C $$i check; done
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder
23ab8855c58adfbd03a0730584b917b24c603901Christian Maeder## Preparing the version of Hets
e50e41135ece589f7202bd4ef8d6b97531c2a56eKlaus LuettichDriver/Version.hs: Driver/Version.in version_nr
47b0e9f3cb008cb7997f4e3bae26e4d62dcc887aChristian Maeder $(RM) $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder LANG=C $(PERL) utils/build_version.pl version_nr \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder < Driver/Version.in > $@
431d34c7007a787331c4e5ec997badb0f8190fc7Christian Maeder chmod 444 $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## two hardcoded dependencies for a correct generation of Version.hs
99afa6000472f3d291fdf9193ea19d334a58658dChristian MaederDriver/Options.hs Driver/WriteFn.hs Driver/ReadFn.hs: Driver/Version.hs
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maederhets.hs: Driver/Version.hs
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus LuettichATC/DevGraph.hs: Static/DevGraph.hs
d5d349836d8b1fa93ea49a59d977b106c6e9233bKlaus Luettich
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder## two dependencies to avoid circular prerequisites
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederCASL_DEPENDENT_BINARIES = hets CASL/capa CASL/fromKif \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder Common/annos Common/test_parser Comorphisms/test/showKP \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder CspCASL/print_csp HasCASL/hacapa Haskell/h2h Haskell/h2hf \
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder Haskell/hana Haskell/wrap Isabelle/isa Syntax/hetpa
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder$(CASL_DEPENDENT_BINARIES): $(derived_sources)
9096f6c6aaded6cd8288656ceccd4c7b3bd0747eChristian Maeder
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder## suffix rules
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder.SUFFIXES:
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich## rule for GHC
e62d49c0dc2893da75faad896bd135e2e9a7087bKlaus Luettich%: %.hs packages
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(HC) --make -o $@ $< $(HC_OPTS)
e112e83352048f3db8c8f93ae104193e7338c10fChristian Maeder
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder## rule for HAPPY
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder%.hs: %.y
61fa0ac06ede811c7aad54ec4c4202346727368eChristian Maeder $(HAPPY) -o $@.tmp $<
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder echo "{-# OPTIONS -w #-}" > $@
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder cat $@.tmp >> $@
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder $(RM) $@.tmp
363939beade943a02b31004cea09dec34fa8a6d9Christian Maeder
c72c1e75a969ff4c336e77481c2a8e42603f13eeChristian Maeder## rule for DrIFT
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder%.hs: %.der.hs $(DRIFT)
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder $(RM) $@
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder ($(DRIFT_ENV); export DERIVEPATH; $(DRIFT) $< > $@)
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder chmod 444 $@
6ff7a91875597d6e4dfaa68c79187d01473e8341Christian Maeder
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder## rule for inlineAxioms
fdef3358918491badb0e29e42b5d3b5a01950716Christian Maeder%.hs: %.inline.hs $(INLINEAXIOMS)
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(RM) $@
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian Maeder $(INLINEAXIOMS) $< > $@
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder chmod 444 $@
7767474aba4fa2dc51a6c68017d3bcef3b773001Christian Maeder
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder## rule for cpp and haddock
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hspp: %.hs
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder $(HC) -E -cpp -D__HADDOCK__ \
340706b6c0c6e3dbacdd7003e20e9cab7f9aa765Christian Maeder -DUNI_PACKAGE -DCASLEXTENSIONS -DPROGRAMATICA -optP -P $<
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder
bf76f4fcf07abaebea587df8135de8356c26a363Till Mossakowski## compiling rules for object and interface files
88318aafc287e92931dceffbb943d58a9310001dChristian Maeder%.o %.hi: %.hs
fdb2d618144159395f7bf8ce3327b3c112a17dd3Till Mossakowski $(HC) -c $< $(HC_OPTS)
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich%.o %.hi: %.lhs
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder $(HC) -c $< $(HC_OPTS)
473bc1f3f3443f18e0ee83e4642fab42183470f2Christian Maeder
6e049108aa87dc46bcff96fae50a4625df1d9648Klaus Luettich## compiling rules for dependencies
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.d : %.lhs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder $(HC) -M $< $(HC_OPTS) -optdep-f -optdep$@
f4505a64a089693012a3f5c3b1f12a82cd7a2a5aKlaus Luettich
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder## Rule to generate hs files from glade files. Needed for GTK
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder%.hs: %.glade utils/appendHaskellPreludeString \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder GUI/Glade/Template.append.hs
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder b=`basename $< .glade`; \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder cat GUI/Glade/Template.append.hs | sed "s/\%s/$$b/" | \
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder utils/appendHaskellPreludeString $< > $@
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder
1a6464613c59e35072b90ca296ae402cbe956144Christian Maeder## generate the inline file for the predefined CASL_DL sign
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian MaederCASL_DL/PredefinedSign.inline.hs: \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder CASL_DL/PredefinedSign.inline.hs.in utils/appendHaskellPreludeString \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder CASL_DL/PredDatatypes.het
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder $(RM) $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder utils/appendHaskellPreludeString CASL_DL/PredDatatypes.het \
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder < CASL_DL/PredefinedSign.inline.hs.in > $@
8b767d09a78927b111f5596fdff9ca7d2c1a439fChristian Maeder echo " )" >> $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich chmod 444 $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich# Warning: Don't change the order of the depencies!!
0be0db405c49906bd7057255069bf6df53395ac9Klaus LuettichCASL_DL/PredDatatypes.het: utils/transformLibAsBasicSpec.pl \
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich CASL_DL/Datatypes.het
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(RM) $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(PERL) $+ > $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich chmod 444 $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
5818d884784339c1b8aa6c6d972bad4eafd36ccbKlaus Luettich# uses intransparently utils/outlineAxioms
0be0db405c49906bd7057255069bf6df53395ac9Klaus LuettichModal/ModalSystems.hs: Modal/GeneratePatterns.inline.hs.in \
2e62113845a35e07cb46db05714627c95450f267Klaus Luettich utils/genTransMFormFunc.pl $(INLINEAXIOMS)
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(RM) $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich $(PERL) utils/genTransMFormFunc.pl $< $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich chmod 444 $@
0be0db405c49906bd7057255069bf6df53395ac9Klaus Luettich
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich# directory for installers
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederINSTALLER_DIR = ../installers
9e748851c150e1022fb952bab3315e869aaf0214Christian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederifeq ($(strip $(HETS_VERSION)),)
88318aafc287e92931dceffbb943d58a9310001dChristian MaederHETS_VERSION := `cat version_nr`
438f9bd974c8e668203e636b0f2bc80c589af043Klaus Luettich# or `date +%F`
88318aafc287e92931dceffbb943d58a9310001dChristian Maederendif
feac53e31a8351e3e3c6621f6a14b5714008bfc7Heng Jiang
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder# prepare installer creation
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maederinitialize_installer:
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder mkdir -p $(INSTALLER_DIR)
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder sed "s/^\(HETS_VERSION =\).*/\1$(HETS_VERSION)/" Makefile.installer \
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder > $(INSTALLER_DIR)/Makefile
fd2c22348e5a69231f92fb44e35a9970b47c4e93Christian Maeder @echo Please do
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder @echo " -> cd $(INSTALLER_DIR)"
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder @echo " -> make"
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder @echo and wait until it is finished
89c9d707aa817684b88036a2dad66c3437840677Heng Jiang
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder# check out java parts for OWL
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maederowl_java:
f78ce817f35574674d54e30ad1861a9b4ced20caChristian Maeder svn co \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder https://owlapi.svn.sourceforge.net/svnroot/owlapi/owl1_1/trunk \
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder OWL/java/OwlApi
f041c9a6bda23de33a38490e35b831ae18d96b45Christian Maeder
bea81dabd203833818cb4a5f3758977c695728cdHeng Jianginitialize_java: owl_java
bf7b17b0e19362e9228672782218678cab275d1eDominik Luecke ant -q init
456238178f89e5a3de2988ee6c8af924297d52d9Christian Maeder
c802a1041ed9251f8ad79139454267e802900e2aChristian Maederjava-libs:
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder ant -q java-libs
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder
c802a1041ed9251f8ad79139454267e802900e2aChristian Maederjava-files:
c802a1041ed9251f8ad79139454267e802900e2aChristian Maeder ant -q java-files
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maederjava-clean:
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder ant -q java-clean
f9442174f64331ccf0bf08178632af7302ccfc96Christian Maeder