Makefile revision 5ea9168eddbfbfe2282ed46dfe107a8962d6727b
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Year: 2004
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# This Makefile will compile the new hets system and provides also
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# targets for test programs during implementation phases.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# !!! Note: This makefile is written for GNU make !!!
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# (gmake on solaris)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync####################################################################
671242f350d172e106580348e24bab66b0d7e6a5vboxsync## Some varibles, which control the compilation
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncCLEAN_PATH = . hxt/Data hxt/Text/XML/HXT/DOM hxt/Text/XML/HXT/Parser \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync utils utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Common/Lib Common/ATerm Logic CASL CASL/CCC CASL/CompositionTable \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# the 'replacing spaces' example was taken from the (GNU) Make info manual
671242f350d172e106580348e24bab66b0d7e6a5vboxsync## set ghc imports properly for your system
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# import directories for ghc-5.04.2
671242f350d172e106580348e24bab66b0d7e6a5vboxsync DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(GHC5):$(subst $(space),:,$(PFE_PATHS))
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# override on commandline for other architectures
671242f350d172e106580348e24bab66b0d7e6a5vboxsync /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
# flags also come in via ../uni/uni-package.conf
$@.hs -o $@
strip $@
$(APPENDPRELUDESTRING) < $< > $@
$(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)
if [ -d ../programatica ] ; then \
./clean.sh; \
-o $@ $(OWL_DL_files)
### ATerm.Lib test system
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%: %.hs
%.hs: %.y
$(RM) $@
$(RM) $@
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
$(RM) $@