Makefile revision afa6ceaf4359ae437aaa6830949583143ace2752
a404e52c02ffe006736f42b123f557c44de918faChristian Maeder# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
5aceed326fe593ff15bef79c5a86eef2df62a2baChristian Maeder# This Makefile will compile the new hetcats system and provides also
a404e52c02ffe006736f42b123f557c44de918faChristian Maeder# targets for test programs during implementation phases.
5aceed326fe593ff15bef79c5a86eef2df62a2baChristian Maeder# !!! Note: This makefile is written for GNU make !!!
a404e52c02ffe006736f42b123f557c44de918faChristian Maeder# (gmake on solaris ; make on linux)
f5ac0f8cf78c06be3a34e9a3bd092af73001ff63Christian Maeder####################################################################
a404e52c02ffe006736f42b123f557c44de918faChristian Maeder## Some varibles, which control the compilation
COMMONLIB_PATH = Common/Lib:Common/ATerm:fgl/Data/Graph:fgl/Data/Graph/Inductive:fgl/Data/Graph/Inductive/Aux:fgl/Data/Graph/Inductive/Monad:fgl/Data/Graph/Inductive/Query
CLEAN_PATH = utils/DrIFT-src:utils/GenerateRules:utils/InlineAxioms:Common:Logic:CASL:CASL/CCC:Syntax:Static:GUI:HasCASL:Haskell:Modal:CoCASL:COL:CspCASL:ATC:ToHaskell:Proofs:Comorphisms:Isabelle:$(INCLUDE_PATH):Haskell/Hatchet:Hatchet:Taxonomy:$(PFE_PATHS)
empty:=
# flags also come in via ../uni/uni-package.conf
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
$(HC_FLAGS) -O
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
gen_atc_files = \
$@.hs -o $@
### 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) $< > $@
$(APPENDPRELUDESTRING) < $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation