Makefile revision aebb0b18fe5e6ba7dd7e4c66a16a905611ef7ba9
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# This Makefile will compile the new hets system and provides also
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# targets for test programs during implementation phases.
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# !!! Note: This makefile is written for GNU make !!!
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# (gmake on solaris)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases####################################################################
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases## Some varibles, which control the compilation
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases CspCASL ATC Proofs Comorphisms Isabelle Driver Modifications \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Taxonomy CASL_DL SoftFOL OWL_DL OWL_DL/OWL11 OMDoc PGIP Propositional
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# the 'replacing spaces' example was taken from the (GNU) Make info manual
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesDRIFT_ENV = DERIVEPATH=$(subst $(space),:,$(PFE_PATHS))
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# override on commandline for other architectures
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesGENITCORRECTIONS_deps = utils/itcor/GenItCorrections.hs
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Common/Doc.hs CASL/ToDoc.hs Modal/AS_Modal.hs \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesSETUPPREFIX = --prefix=$(HOME)/.ghc/$(ARCH)-$(OSBYUNAME)-hets-packages
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases ../$(SETUP) configure -p $(SETUPPREFIX) --user; \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases ../$(SETUP) build; ../$(SETUP) haddock; ../$(SETUP) install --user
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayasesifneq ($(findstring 1.13.2, $(HAXMLVERSION)),)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesHAXML_PACKAGE = -package HaXml -DHAXML_PACKAGE
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# remove -fno-warn-orphans for older ghcs and add -ifgl
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases $(HC_WARN) -fglasgow-exts -fallow-overlapping-instances \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# -ddump-minimal-imports
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases# uncomment to above line to generate .imports files for displayDependencyGraph
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesHC_OPTS_MAC := $(if $(findstring Darwin,$(shell uname -s)), \
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy Vetayases -optl-F$(HOME)/Library/Frameworks -optl-framework -optlGNUreadline,)
7ff178cd8db129d385d3177eb20744d3b6efc59bJimmy VetayasesHC_INCLUDE = $(addprefix -i, $(INCLUDE_PATH))
(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 \
$(GENRULES)
-o $@ $(OWL_DL_files)
-o $@ $(OWL11_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 \
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
@echo Please do