Makefile revision 33d042fe6a9eb27a4c48f840b80838f3e7d98e34
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
876438657776b9ac4eb59f9ebefa328d36295a0bMatt Sweeney# This Makefile will compile the new hetcats system and provides also
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney# targets for test programs during implementation phases.
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney# !!! Note: This makefile is written for GNU make !!!
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney# (gmake on solaris ; make on linux)
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney####################################################################
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney## Some varibles, which control the compilation
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt SweeneyCOMMONLIB_PATH = Common/Lib:Common/Lib/Parsec:Common/ATerm
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt SweeneyCLEAN_PATH = Common:Logic:CASL:Syntax:Static:GUI:HasCASL:Haskell:Haskell/Language:Modal:CspCASL:ATC:ToHaskell:Proofs:Comorphisms:$(INCLUDE_PATH):Haskell/Hatchet
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney## set ghc imports properly for your system
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt SweeneyDRIFT_ENV = DERIVEPATH='.:ghc:hetcats:/home/linux-bkb/ghc/ghc-latest/lib/ghc-6.0.1/imports'
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt SweeneyHC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci \
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney### Profiling and Warnings (only for debugging)
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney### Attention every module must be compiled with profiling or the linker
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney### cannot link the various .o files properly. So after switching on
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney### Profiling, do an 'gmake clean; gmake'
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney### If you need Profiling comment out the following line
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt Sweeney#HC_PROF = -prof -auto-all
b0e8ba0bb1024f36f17e1c8c55f531698df8bec7Matt SweeneyHCI_OPTS = $(HC_FLAGS) $(HC_PACKAGE) $(HC_INCLUDE)
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
(cd utils/GenerateRules; \
$(casl_files)
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) $@
### 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) $<
%.d : %.hs
%.d : %.lhs