Makefile revision 1aee4aaddde105264c1faf394d88e302c05094ff
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# This Makefile will compile the new hets system and provides also
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# targets for test programs during implementation phases.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# !!! Note: This makefile is written for GNU make !!!
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# (gmake on solaris)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin####################################################################
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin## Some varibles, which control the compilation
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Taxonomy CASL_DL SPASS OWL_DL OMDoc PGIP $(PFE_PATHS) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# the 'replacing spaces' example was taken from the (GNU) Make info manual
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin## set ghc imports properly for your system
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# import directories for ghc-5.04.2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# override on commandline for other architectures
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs Common/Utils.hs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# remove -fno-warn-orphans for older ghcs and add -ifgl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -fallow-overlapping-instances -fallow-undecidable-instances
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# -ddump-minimal-imports
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# flags also come in via ../uni/uni-package.conf
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# but added it here in case of compilation without uni
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin SPASS/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# some modules from uni for haddock
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# if uni/server is included also HaXml sources are needed
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinuni_sources = $(wildcard $(addsuffix /haddock/*.hs, $(uni_dirs))) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTESTTARGETFILES += OWL_DL/ToHaskellAS.hs Taxonomy/taxonomyTool.hs
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin### list of directories to run checks in
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinhs_clean_files = Haskell/TiATC.hs Haskell/TiDecorateATC.hs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPFE_DIRS = base/AST base/TI base/parse2 base/parse2/Lexer base/parse2/Parser \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin base/parse2/LexerGen base/parse2/LexerSpec base/tests/HbcLibraries \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin base/pretty base/syntax base/lib base/lib/Monads base/Modules base/defs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin property/TI property/defs property/parse2 property/parse2/Parser
$@.hs -o $@
strip $@
$(RM) $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
$(wildcard syb-generics/Data/Generics2/*.hs) \
$(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)
-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 ;\