Makefile revision b7839add0728fef3cbb28244373661db382f6588
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# This Makefile will compile the new hetcats system and provides also
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# targets for test programs during implementation phases.
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# !!! Note: This makefile is written for GNU make !!!
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# (gmake on solaris ; make on linux)
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer####################################################################
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer## Some varibles, which control the compilation
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerCOMMONLIB_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
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerCLEAN_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:Taxonomy:$(PFE_PATHS)
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer## set ghc imports properly for your system
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerLINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# the 'replacing spaces' example was taken from the (GNU) Make info manual
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# override on commandline for other architectures
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerINSTALLDIR = /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerINLINEAXIOMS_deps = utils/InlineAxioms/*hs $(drifted_files)
e4f5a11d4a234623168c1558fcdf4341e11769e1James KremerHC_FLAGS = -Wall -fglasgow-exts -fno-monomorphism-restriction
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# -ddump-minimal-imports
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# flags also come in via ../uni/uni-package.conf
e4f5a11d4a234623168c1558fcdf4341e11769e1James Kremer# but added it here in case of compilation without uni
#.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