Makefile revision 448c6b836431b11873f4d5b4311fc15116809e5a
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This Makefile will compile the new hetcats system and provides also
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# targets for test programs during implementation phases.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# !!! Note: This makefile is written for GNU make !!!
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# (gmake on solaris ; make on linux)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein####################################################################
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein## Some varibles, which control the compilation
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm:fgl/Data/Graph:fgl/Data/Graph/Inductive:fgl/Data/Graph/Inductive/Aux:fgl/Data/Graph/Inductive/Monad:fgl/Data/Graph/Inductive/Query
e0f518c964d69b07a52949c80c12d8fe4adb7398Rob AusteinCLEAN_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:$(PFE_PATHS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein## set ghc imports properly for your system
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# the 'replacing spaces' example was taken from the (GNU) Make info manual
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# override on commandline for other architectures
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinINSTALLDIR = /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinHC_FLAGS = -Wall -fglasgow-exts -fallow-overlapping-instances -fallow-incoherent-instances
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# -ddump-minimal-imports
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# flags also come in via ../uni/uni-package.conf
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# but added it here in case of compilation without uni
e0f518c964d69b07a52949c80c12d8fe4adb7398Rob AusteinUNI_PACKAGE_CONF := $(wildcard ../uni/uni-package.conf)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinHC_PACKAGE = -package-conf $(UNI_PACKAGE_CONF) -package uni-davinci \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# some modules from uni for haddock
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# if uni/server is included also HaXml sources are needed
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinuni_sources = $(wildcard ../uni/davinci/haddock/*.hs) \
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
$(HC_FLAGS) -O
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
gen_atc_files = \
### also delete *.d.bak (dependency file backups)
$(RM) $@
ghci:
$(RM) $@
$(RM) $@
$(RM) $@
$(happy_files)
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
### ATerm.Lib test system
$(RM) $@
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
$(HAPPY) $<
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation