Makefile revision 29633f709477530c1dc68039695cdc3cbb051184
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Author: Klaus L�ttich
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Year: 2003
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# This Makefile will compile the new hetcats system and provides also
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# targets for test programs during implementation phases.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# !!! Note: This makefile is written for GNU make !!!
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# (gmake on solaris ; make on linux)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync####################################################################
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync## Some varibles, which control the compilation
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCLEAN_PATH = Common:Logic:CASL:Syntax:Static:GUI:HasCASL:Haskell:Haskell/Language:Modal:CspCASL:$(INCLUDE_PATH)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncHC_FLAGS = -fglasgow-exts -fallow-overlapping-instances -Wall
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync### Profiling and Warnings (only for debugging)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync### Attention every module must be compiled with profiling or the linker
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync### cannot link the various .o files properly. So after switching on
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync### Profiling, do an 'gmake clean; gmake'
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync### If you need Profiling comment out the following line
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#HC_PROF = -prof -auto-all -Wall
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync### list of directories to run checks in
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncTESTDIRS = Common/test CASL/test HasCASL/test ToHaskell test
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync####################################################################
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync## sources for hetcats (semi - manually produced with a perl script)
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
### also delete *.d.bak (dependency file backups)
$(RM) $@
$(RM) $@
ghci:
$(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) $<
$(DRIFT) $< > $@
$(AG) $< -o $@
$(DRIFT) $< > $@
%.d : %.hs
%.d : %.lhs