Makefile revision 6ae5607d2def114f998fd49bac4eef12a2620faf
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# This Makefile will compile the new hetcats system and provides also
9b2267b5ba9d0640512a41e139a4a36caa43730dBob Halley# targets for test programs during implementation phases.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# !!! Note: This makefile is written for GNU make !!!
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# (gmake on solaris ; make on linux)
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews####################################################################
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## Some varibles, which control the compilation
9b2267b5ba9d0640512a41e139a4a36caa43730dBob HalleyCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
9b2267b5ba9d0640512a41e139a4a36caa43730dBob HalleyCLEAN_PATH = utils/DrIFT-src:utils/GenerateRules:Common:Logic:CASL:Syntax:Static:GUI:HasCASL:Haskell:Modal:CspCASL:ATC:ToHaskell:Proofs:Comorphisms:Isabelle:$(INCLUDE_PATH):Haskell/Hatchet
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont## set ghc imports properly for your system
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid LawrenceLINUX_IMPORTS = $(wildcard /home/linux-bkb/ghc/ghc-latest/lib/ghc-*/imports)
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid LawrenceDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:${LINUX_IMPORTS}:${GHC_IMPORTS}'
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps)
fe6b7ccc8de18264107a96602fefe7be772e9d4fMark Andrews# -fglasgow-exts comes in via ../uni/uni-package.conf
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
(cd utils/GenerateRules; \
(cd utils/InlineAxioms; \
strip ../inlineAxioms)
utils/genRules -r $(rule) -o ATC -h ATC/$(basename $(basename $(notdir $(file)))).header.hs $(file); \
### also delete *.d.bak (dependency file backups)
$(RM) $@
ghci:
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
### ATerm.Lib test system
$(RM) $@
$(RM) $@
$(HC) --make -o $@ $< $(HC_OPTS) -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
## two hardcoded dependencies for a correct generation of Version.hs
$(HAPPY) $<
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs