Makefile revision 00ccf62b4570513e965eb156ab5916ec816c5d2b
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# This Makefile will compile the new hets system and provides also
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# targets for test programs during implementation phases.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# !!! Note: This makefile is written for GNU make !!!
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# (gmake on solaris)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster####################################################################
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster## Some varibles, which control the compilation
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
d1b57e78cf72f41c7c6a52bd7c2a6d6aa4da6ba4Craig McDonnell Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Taxonomy CASL_DL SoftFOL OWL OMDoc PGIP Propositional
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# the 'replacing spaces' example was taken from the (GNU) Make info manual
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest# override on commandline for other architectures
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# remove -fno-warn-orphans for older ghcs and add -ifgl
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# -ddump-minimal-imports
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# uncomment to above line to generate .imports files for displayDependencyGraph
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterlogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL CASL_DL SoftFOL \
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterTESTTARGETFILES += CASL/fromKif.hs CASL/capa.hs HasCASL/hacapa.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Haskell/wrap.hs Isabelle/isa.hs Syntax/hetpa.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster ATC/ATCTest.hs ATC/ATCTest2.hs Common/ATerm/ATermLibTest.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster Common/ATerm/ATermDiffMain.hs Common/annos.hs Common/test_parser.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster SoftFOL/tests/PrintTPTPTests.hs Comorphisms/test/showKP.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster SoftFOL/tests/soapTest.hs Comorphisms/test/sublogicGraph.hs \
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# some modules from uni for haddock
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# if uni/server is included also HaXml sources are needed
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosteruni_dirs = ../uni/davinci ../uni/graphs ../uni/events \
(cd ../programatica/tools; \
$@.hs -o $@
strip $@
$(RM) $@
$(APPENDPRELUDESTRING) < $< > $@
#Ti_Prop_files = property/TI/TiPropDecorate property/syntax/PropSyntaxRec
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
$(GENRULECALL) -o $@ $<
cpp_sources = \
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
cgi:
(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 \
$(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 \
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
@echo Please do