Makefile revision 432b5019a1852dc850e776caa268fef30ce0d7cc
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# This Makefile will compile the new hets system and provides also
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# targets for test programs during implementation phases.
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# !!! Note: This makefile is written for GNU make !!!
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# (gmake on solaris)
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna####################################################################
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna## Some varibles, which control the compilation
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid LunaCOMMONLIB_PATH = Common/Lib Common/ATerm fgl/Data/Graph \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid LunaCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna Logic CASL CASL/CCC Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver $(INCLUDE_PATH) \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna Haskell/Hatchet Hatchet Taxonomy CASL_DL SPASS $(PFE_PATHS)
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# the 'replacing spaces' example was taken from the (GNU) Make info manual
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna## set ghc imports properly for your system
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(subst $(space),:,$(PFE_PATHS))
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna# override on commandline for other architectures
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid LunaGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid LunaINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
8e10fde505ebb199db3bf8f55e9b8025ea8a939dDavid Luna Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
# flags also come in via ../uni/uni-package.conf
$@.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:
### 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