Makefile revision 4561227a776bdf0ab679b19fb92f1eaaed8786f7
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
9bff67898d55cddfcec9ce30cc2b1bb6211ec691David Lawrence# This Makefile will compile the new hets system and provides also
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# targets for test programs during implementation phases.
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# !!! Note: This makefile is written for GNU make !!!
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# (gmake on solaris)
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff####################################################################
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff## Some varibles, which control the compilation
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Taxonomy CASL_DL SPASS OWL_DL OMDoc $(PFE_PATHS)
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# the 'replacing spaces' example was taken from the (GNU) Make info manual
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff## set ghc imports properly for your system
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# import directories for ghc-5.04.2
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# override on commandline for other architectures
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/GlobalAnnotations.hs Common/PrettyPrint.hs Common/Partial.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff CASL/Print_AS_Basic.hs Common/AnnoState.hs CASL/Formula.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff CASL/OpItem.hs CASL/SortItem.hs CASL/Inject.hs Common/Result.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Common/ConvertLiteral.hs Common/Earley.hs CASL/MixfixParser.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff CASL/Parse_AS_Basic.hs CASL/Sign.hs CASL/Overload.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff CASL/StaticAna.hs Modal/AS_Modal.hs Modal/Parse_AS.hs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# remove -fno-warn-orphans for older ghcs and add -ifgl
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff -fallow-overlapping-instances -fallow-undecidable-instances
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# -ddump-minimal-imports
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# flags also come in via ../uni/uni-package.conf
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# but added it here in case of compilation without uni
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Grafflogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS OWL_DL ConstraintCASL
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffTESTTARGETS += test_parser hetpa hetana Test.o wrap isa fromKif \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# some modules from uni for haddock
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff# if uni/server is included also HaXml sources are needed
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graffuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graffuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffTESTTARGETS += hetdg OWL_DL/readAStest taxonomy
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff### list of directories to run checks in
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffPFE_TOOLDIR = $(wildcard ../programatica/tools)
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff base/transforms base/transforms/Deriving property \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff property/syntax property/AST property/transforms \
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graff property/TI property/defs property/parse2 property/parse2/Parser
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graffpfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael GraffPFE_FLAGS = -package data -package text $(PFE_PATH) -DPROGRAMATICA
79d29bd3206f9dfc77521bcdc516c5e255bc717dMichael Graffhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
$@.hs -o $@
strip $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
cgi:
# "HetCATS/hetcats.TAGS"
@$(PERL) -e \
$(sources) >> $@
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
if [ -d ../programatica ] ; then \
./clean.sh; \
-o $@ $(OWL_DL_files)
### ATerm.Lib test system
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%: %.hs
%.hs: %.y
$(RM) $@
$(RM) $@
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
$(RM) $@
$(RM) $@
$(PERL) $+ > $@
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
$(RM) $@