Makefile revision d27ad22f77ca7399742b54e9dce2cdceed12d5e0
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# This Makefile will compile the new hets system and provides also
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# targets for test programs during implementation phases.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# !!! Note: This makefile is written for GNU make !!!
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# (gmake on solaris)
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews####################################################################
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews## Some varibles, which control the compilation
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMMONLIB_PATH = Common/Lib Common/ATerm fgl/Data/Graph \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews Logic CASL CASL/CCC Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver $(INCLUDE_PATH) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Haskell/Hatchet Hatchet Taxonomy CASL_DL SPASS $(PFE_PATHS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# the 'replacing spaces' example was taken from the (GNU) Make info manual
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein## set ghc imports properly for your system
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(subst $(space),:,$(PFE_PATHS))
24abfe433efd98bb2099b867fb14d049b2f1f531Tinderbox User# override on commandline for other architectures
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater CASL/Print_AS_Basic.hs Common/AnnoState.hs CASL/Formula.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater CASL/OpItem.hs CASL/SortItem.hs CASL/Inject.hs Common/Result.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater Common/ConvertLiteral.hs Common/Earley.hs CASL/MixfixParser.hs \
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater CASL/Parse_AS_Basic.hs CASL/Sign.hs CASL/Overload.hs \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein CASL/StaticAna.hs Modal/AS_Modal.hs Modal/Parse_AS.hs \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinHC_FLAGS = $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
24abfe433efd98bb2099b867fb14d049b2f1f531Tinderbox User -fallow-overlapping-instances -fallow-undecidable-instances
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -ddump-minimal-imports
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# flags also come in via ../uni/uni-package.conf
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# but added it here in case of compilation without uni
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic Updaterlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL Hatchet CASL_DL
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic UpdaterUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic UpdaterHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# some modules from uni for haddock
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# if uni/server is included also HaXml sources are needed
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox Useruni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox Useruni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein### list of directories to run checks in
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsTESTDIRS += Common CASL HasCASL Haskell/Hatchet/examples
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein base/transforms base/transforms/Deriving property \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein property/syntax property/AST property/transforms \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein property/TI property/defs property/parse2 property/parse2/Parser
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
24abfe433efd98bb2099b867fb14d049b2f1f531Tinderbox Userhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
24abfe433efd98bb2099b867fb14d049b2f1f531Tinderbox User$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinderived_sources += Haskell/PreludeString.hs $(LEX_DIR)/HsLex.hs \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinAPPENDPRELUDESTRING = utils/appendHaskellPreludeString \
$(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:
### 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