Makefile revision 215d42ce4d6397a453d5887292bc786e8fa9c1a2
50722c0d550a63d4a2b8f34e907b693a81d864e0Mark Andrews# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# This Makefile will compile the new hets system and provides also
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# targets for test programs during implementation phases.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# !!! Note: This makefile is written for GNU make !!!
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# (gmake on solaris)
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews####################################################################
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## Some varibles, which control the compilation
c427260a8678f2e99a2337fb95ec98d9c9ee8c05Mark AndrewsHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Taxonomy CASL_DL SPASS OWL_DL OMDoc PGIP Propositional $(PFE_PATHS) \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# the 'replacing spaces' example was taken from the (GNU) Make info manual
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence## set ghc imports properly for your system
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# import directories for ghc-5.04.2
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# override on commandline for other architectures
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs Common/Utils.hs \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages; \
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceifneq ($(findstring 1.13.2, $(HAXMLVERSION)),)
c427260a8678f2e99a2337fb95ec98d9c9ee8c05Mark Andrews# remove -fno-warn-orphans for older ghcs and add -ifgl
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction -fcontext-stack60 \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley -fallow-overlapping-instances -fallow-undecidable-instances
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# -ddump-minimal-imports
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# flags also come in via ../uni/uni-package.conf
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# but added it here in case of compilation without uni
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleylogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley SPASS/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley SPASS/tests/soapTest.hs SPASS/tests/soapTest.hs SPASS/tests/CMDL_tests.hs
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
0014d6342b0d50ae37126ac16d5bf821d02ffff7David LawrenceHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# some modules from uni for haddock
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence# if uni/server is included also HaXml sources are needed
a9558a6c63d9c6dbb2f3800b39ccb008652fcde3Mark Andrewsuni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
0014d6342b0d50ae37126ac16d5bf821d02ffff7David LawrenceTESTTARGETFILES += OWL_DL/ToHaskellAS.hs Taxonomy/taxonomyTool.hs
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley### list of directories to run checks in
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley base/transforms base/transforms/Deriving property \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley property/syntax property/AST property/transforms \
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley property/TI property/defs property/parse2 property/parse2/Parser
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyPFE_PATHS = $(addprefix $(PFE_TOOLDIR)/, $(PFE_DIRS))
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleypfe_sources = $(wildcard $(addsuffix /*hs, $(PFE_PATHS)))
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyhappy_files += $(PFE_TOOLDIR)/property/parse2/Parser/PropParser.hs
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley patch -usNlp0 -d $(PFE_TOOLDIR) -i `pwd`/$< || exit 0
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley echo "{-# OPTIONS -w #-}" > $@
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley$(LEX_DIR)Gen/HsLexerGen: $(LEX_DIR)Gen/*.hs $(LEX_DIR)Spec/*.hs \
$(RM) $@
$(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:
@$(PERL) -e \
$(sources) >> $@
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
### Common/LaTeX_maps.hs generation
strip $@
@echo -n "Generating pretty/LaTeX_maps.hs ... "
@(cd pretty >/dev/null; ../utils/genItCorrections \
-o $@ $(OWL_DL_files)
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%.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) $@
@if [ -d $(INSTALLER_DIR) ] ; then \
@echo Please do