Makefile revision c9acb8681bcc512245b4f0d1a9f2b189c60e10d4
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# This Makefile will compile the new hets system and provides also
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# targets for test programs during implementation phases.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# !!! Note: This makefile is written for GNU make !!!
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# (gmake on solaris)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce####################################################################
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce## Some varibles, which control the compilation
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMMONLIB_PATH = Common/Lib Common/ATerm fgl/Data/Graph \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Logic CASL CASL/CCC Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver $(INCLUDE_PATH) \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# the 'replacing spaces' example was taken from the (GNU) Make info manual
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce## set ghc imports properly for your system
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(subst $(space),:,$(PFE_PATHS))
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# override on commandline for other architectures
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce CASL/Print_AS_Basic.hs Common/AnnoState.hs CASL/Formula.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce CASL/OpItem.hs CASL/SortItem.hs CASL/Inject.hs Common/Result.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Common/ConvertLiteral.hs Common/Earley.hs CASL/MixfixParser.hs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce CASL/Parse_AS_Basic.hs CASL/Sign.hs CASL/Overload.hs \
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce CASL/StaticAna.hs Modal/AS_Modal.hs Modal/Parse_AS.hs \
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
c6872e79e8496fd075e20aec0343ade99cca725cSimo SorceHC_FLAGS = $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce -fallow-overlapping-instances -fallow-undecidable-instances
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce# -ddump-minimal-imports
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl# flags also come in via ../uni/uni-package.conf
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl# but added it here in case of compilation without uni
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březinalogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub HrozekUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub HrozekHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
bc30ce9b7d588a17e58012e699986f0d6898b791Pavel Březina# some modules from uni for haddock
b5ee224324b0158641d9b110f81d2bc6eddddc13Pavel Reichl# if uni/server is included also HaXml sources are needed
2a96981a0ac781d01e5bba473409ed2bdf4cd4e0Jakub Hrozekuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
4dd38025efda88f123eac672f87d3cda12f050c8Jakub Hrozekuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4Stef Walter### list of directories to run checks in
5a5c5cdeb92f4012fc75fd717bfea06598f68f12Pavel ReichlPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
804df4040eb142f82a44c019c7a55b5ce524583cMichal Zidek base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce base/transforms base/transforms/Deriving property \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce property/syntax property/AST property/transforms \
0c16d2eefbc6ac8331078a4cdcecfee817a71bc6Simo Sorce property/TI property/defs property/parse2 property/parse2/Parser
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorcePFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
7650ded4ffa87fcf7ce5adf00920fecf89cffcf5Michal Zidekpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorcePFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorcehappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
$(APPENDPRELUDESTRING) < $< > $@
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
$(HC_FLAGS) -O
# "HetCATS/hetcats.TAGS"
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
gen_atc_files = \
### also delete *.d.bak (dependency file backups)
ghci:
ToHaskell/h2hf: ToHaskell/h2hf.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs Isabelle/*.hs Common/*.hs
### ATerm.Lib test system
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%: %.hs
$(HAPPY) $<
%.hs: %.y
$(HAPPY) -o $@ $<
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation