Makefile revision 68b77966b2cf7bf2e340bf0fb6b9efc3e6a00467
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# This Makefile will compile the new hets system and provides also
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# targets for test programs during implementation phases.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# !!! Note: This makefile is written for GNU make !!!
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# (gmake on solaris)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte####################################################################
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte## Some varibles, which control the compilation
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMMONLIB_PATH = Common/Lib Common/ATerm fgl/Data/Graph \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Logic CASL CASL/CCC Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver $(INCLUDE_PATH) \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Haskell/Hatchet Hatchet Taxonomy CASL_DL SPASS $(PFE_PATHS)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# the 'replacing spaces' example was taken from the (GNU) Make info manual
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte## set ghc imports properly for your system
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(subst $(space),:,$(PFE_PATHS))
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# override on commandline for other architectures
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Common/Print_AS_Annotation.hs Common/PPUtils.hs CASL/LiteralFuns.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte CASL/Print_AS_Basic.hs Common/AnnoState.hs CASL/Formula.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte CASL/OpItem.hs CASL/SortItem.hs CASL/Inject.hs Common/Result.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Common/ConvertLiteral.hs Common/Earley.hs CASL/MixfixParser.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte CASL/Parse_AS_Basic.hs CASL/Sign.hs CASL/Overload.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte CASL/StaticAna.hs Modal/AS_Modal.hs Modal/Parse_AS.hs \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte Modal/ModalSign.hs Modal/Print_AS.hs Modal/StatAna.hs
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteHC_FLAGS = $(HC_WARN) -fglasgow-exts -fno-monomorphism-restriction \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte -fallow-overlapping-instances -fallow-undecidable-instances
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# -ddump-minimal-imports
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# flags also come in via ../uni/uni-package.conf
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# but added it here in case of compilation without uni
450396635f70344c58b6b1e4db38cf17ff34445cJohn Fortelogics = CASL HasCASL Isabelle Modal CoCASL COL CspCASL Hatchet CASL_DL
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteUNI_PACKAGE_CONF = $(wildcard ../uni/uni-package.conf)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# some modules from uni for haddock
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# if uni/server is included also HaXml sources are needed
$@.hs -o $@
$(APPENDPRELUDESTRING) < $< > $@
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
$(HC_FLAGS) -O
# "HetCATS/hetcats.TAGS"
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
gen_atc_files = \
### also delete *.d.bak (dependency file backups)
ghci:
ToHaskell/h2hf: ToHaskell/h2hf.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs Isabelle/*.hs Common/*.hs
### ATerm.Lib test system
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%: %.hs
$(HAPPY) $<
%.hs: %.y
$(HAPPY) -o $@ $<
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation