Makefile revision 8b0f493ae42bad8b94918cc0957f1af57096cda4
6bb524f1895f30265a1431afc460977d391cb36bsf# Author: Klaus L�ttich
6bb524f1895f30265a1431afc460977d391cb36bsf# Year: 2003
6bb524f1895f30265a1431afc460977d391cb36bsf# This Makefile will compile the new hetcats system and provides also
8233250a7f6c06225752db92bf32117bd9648c1dsf# targets for test programs during implementation phases.
8233250a7f6c06225752db92bf32117bd9648c1dsf# !!! Note: This makefile is written for GNU make !!!
b40bfdb714672f972887f9f1f1e154e00125bb68covener# (gmake on solaris ; make on linux)
b40bfdb714672f972887f9f1f1e154e00125bb68covener####################################################################
b40bfdb714672f972887f9f1f1e154e00125bb68covener## Some varibles, which control the compilation
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCLEAN_PATH = Common:Logic:CASL:Syntax:Static:GUI:HasCASL:Haskell:Haskell/Language:Modal:CspCASL:$(INCLUDE_PATH)
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungHC_FLAGS = -fglasgow-exts -fallow-overlapping-instances -Wall
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungHC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci -package uni-server
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick### Profiling and Warnings (only for debugging)
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick### Attention every module must be compiled with profiling or the linker
0827cb14e550f6f65018431c22c2c913631c8f25kbrand### cannot link the various .o files properly. So after switching on
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick### Profiling, do an 'gmake clean; gmake'
ae600ca541efc686b34f8b1f21bd3d0741d37674covener### If you need Profiling comment out the following line
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick#HC_PROF = -prof -auto-all -Wall
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim### list of directories to run checks in
cfa64348224b66dd1c9979b809406c4d15b1c137fielding####################################################################
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 \
.PHONY : clean d_clean real_clean bin_clean check hetana hetpa hetdg hets all clean_genRules genRules
#.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); \
$(RM) ATC/*.der.hs CASL/ATC_CASL.der.hs HasCASL/ATC_HasCASL.der.hs Haskell/ATC_Haskell.der.hs CspCASL/ATC_CspCASL.der.hs
### 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) $<
$(AG) $<
$(AG) $< -o $@
$(DRIFT) $< > $@
%.d : %.hs
%.d : %.lhs