Makefile revision 5d39c60274aaa76506292d2d9e885fccd27e1eab
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# This Makefile will compile the new hets system and provides also
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# targets for test programs during implementation phases.
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# !!! Note: This makefile is written for GNU make !!!
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# (gmake on solaris)
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber####################################################################
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber## Some varibles, which control the compilation
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane GraberCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber Common/Lib Common/ATerm Logic CASL CASL/CCC \
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver \
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# the 'replacing spaces' example was taken from the (GNU) Make info manual
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber## set ghc imports properly for your system
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane Graber# import directories for ghc-5.04.2
5b99af0079813347d90c935ea540ed7f96dcea38Stéphane GraberGHC5 = $(GHC_IMPORTS)/base:$(GHC_IMPORTS)/haskell98
INSTALLDIR = \
# flags also come in via ../uni/uni-package.conf
$@.hs -o $@
strip $@
$(APPENDPRELUDESTRING) < $< > $@
$(GENRULECALL) -o $@ $<
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
# "HetCATS/hetcats.TAGS"
@$(PERL) -e \
$(sources) >> $@
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
if [ -d ../programatica ] ; then \
./clean.sh; \
### also delete *.d.bak (dependency file backups)
ghci:
ToHaskell/h2hf: ToHaskell/h2hf.hs ToHaskell/*.hs Haskell/*.hs HasCASL/*.hs Isabelle/*.hs Common/*.hs
### ATerm.Lib test system
$(RM) $@
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%: %.hs
%.hs: %.y
$(RM) $@
$(RM) $@
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation
# uses intransparently utils/outlineAxioms
$(RM) $@