Makefile revision 0ea916d1e6aea10fd7b84f802fb5148a79d8c20a
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# This Makefile will compile the new hets system and provides also
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# targets for test programs during implementation phases.
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# !!! Note: This makefile is written for GNU make !!!
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# (gmake on solaris)
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig####################################################################
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig## Some varibles, which control the compilation
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig CspCASL ATC Proofs Comorphisms Isabelle Driver \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Taxonomy CASL_DL SPASS OWL_DL OMDoc PGIP Propositional $(PFE_PATHS) \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# the 'replacing spaces' example was taken from the (GNU) Make info manual
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig## set ghc imports properly for your system
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# import directories for ghc-5.04.2
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# override on commandline for other architectures
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs Common/Utils.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages; \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# remove -fno-warn-orphans for older ghcs and add -ifgl
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction -fcontext-stack60 \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig -fallow-overlapping-instances -fallow-undecidable-instances
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# -ddump-minimal-imports
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# flags also come in via ../uni/uni-package.conf
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# but added it here in case of compilation without uni
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettiglogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SPASS \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig SPASS/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig SPASS/tests/soapTest.hs SPASS/tests/soapTest.hs SPASS/tests/CMDL_tests.hs
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
269f47de02761bab3b7b28e2007a2bac34f629ccThuy FettigHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# some modules from uni for haddock
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettig# if uni/server is included also HaXml sources are needed
269f47de02761bab3b7b28e2007a2bac34f629ccThuy Fettiguni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
$@.hs -o $@
strip $@
$(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