Makefile revision efa8f9db01f64e2c719c201e4037743caefae045
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington# Author: Klaus L�ttich
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington# This Makefile will compile the new hetcats system and provides also
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington# targets for test programs during implementation phases.
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington# !!! Note: This makefile is written for GNU make !!!
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington# (gmake on solaris ; make on linux)
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington####################################################################
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill Cunnington## Some varibles, which control the compilation
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill CunningtonCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill CunningtonCLEAN_PATH = Common:Logic:CASL:Syntax:Static:GUI:HasCASL:Haskell:Haskell/Language:Modal:CspCASL:$(INCLUDE_PATH)
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill CunningtonDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:/home/linux-bkb/ghc/ghc-latest/lib/ghc-6.0/imports'
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill CunningtonHC_FLAGS = -fglasgow-exts -fallow-overlapping-instances -Wall
3e96abd39343cc5e8f4bf8ff7429409658f0d484Phill CunningtonHC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
genrule_files = Common/Lib/Graph.hs Common/Id.hs Common/Result.hs Common/AS_Annotation.der.hs Common/Named.hs \
Syntax/AS_Structured.der.hs Syntax/AS_Architecture.der.hs Common/GlobalAnnotations.hs Syntax/AS_Library.der.hs \
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
-i/home/linux-bkb/ghc/ghc-6.0/share/ghc-6.0/html/base,/home/linux-bkb/ghc/ghc-6.0/share/ghc-6.0/html/base/base.haddock \
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) $@
$(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) $<
#%.hs: %.ag.hs
$(DRIFT) $< > $@
%.d : %.hs
%.d : %.lhs