Makefile revision b1fc44bcc364a48f94b73b7995c2325e37359db7
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Year: 2004
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# This Makefile will compile the new hets system and provides also
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# targets for test programs during implementation phases.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# !!! Note: This makefile is written for GNU make !!!
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# (gmake on solaris)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl####################################################################
9512fe850e98fdd448c638ca63fdd92a8a510255ahl## Some varibles, which control the compilation
9512fe850e98fdd448c638ca63fdd92a8a510255ahlHAIFA_PATHS = Network Network/Server Org Org/W3 Org/W3/N2001 \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Org/Xmlsoap Org/Xmlsoap/Schemas Org/Xmlsoap/Schemas/Soap \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Text Text/XML Text/XML/HXT Text/XML/Schema Text/XML/Schema/TypeMapper \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Syntax Static GUI HasCASL Haskell Modal CoCASL COL ConstraintCASL \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# the 'replacing spaces' example was taken from the (GNU) Make info manual
9512fe850e98fdd448c638ca63fdd92a8a510255ahl## set ghc imports properly for your system
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# import directories for ghc-5.04.2
9512fe850e98fdd448c638ca63fdd92a8a510255ahl DERIVEPATH=.:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# override on commandline for other architectures
9512fe850e98fdd448c638ca63fdd92a8a510255ahl /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
9512fe850e98fdd448c638ca63fdd92a8a510255ahlGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl Modal/Parse_AS.hs Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
9512fe850e98fdd448c638ca63fdd92a8a510255ahlGENRULECALL = $(GENRULES) -r Typeable -r ShATermConvertible \
# flags also come in via ../uni/uni-package.conf
(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 $@ $<
cpp_sources = \
$(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 \
$(GENRULES)
-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 \
sed "s/^\(SPASS_DIR_MAC=\).*/\1`ls utils/SPASS-ppc-mac/ | grep SPASS`/" Makefile.inst > Makefile.inst2 ;\
@echo Please do