Makefile revision bd798943a2c35a9376a3830a906f24bdb7b13047
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2005
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# This Makefile will compile the new hets system and provides also
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# targets for test programs during implementation phases.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# !!! Note: This makefile is written for GNU make !!!
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# (gmake on solaris)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis####################################################################
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis## Some varibles, which control the compilation
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisCOMMONLIB_PATH = Common/Lib Common/ATerm fgl/Data/Graph \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis fgl/Data/Graph/Inductive fgl/Data/Graph/Inductive/Internal \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis fgl/Data/Graph/Inductive/Monad fgl/Data/Graph/Inductive/Query
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisCLEAN_PATH = . utils/DrIFT-src utils/GenerateRules utils/InlineAxioms Common \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis Logic CASL CASL/CCC Syntax Static GUI HasCASL Haskell Modal CoCASL COL \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis CspCASL ATC ToHaskell Proofs Comorphisms Isabelle Driver $(INCLUDE_PATH) \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis Haskell/Hatchet Hatchet Taxonomy CASL_DL SPASS $(PFE_PATHS)
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# the 'replacing spaces' example was taken from the (GNU) Make info manual
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis## set ghc imports properly for your system
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisGHC_IMPORTS = `$(HC) --print-libdir`/imports
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis DERIVEPATH=.:ghc:$(GHC_IMPORTS):$(subst $(space),:,$(PFE_PATHS))
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis# override on commandline for other architectures
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis /home/www/agbkb/forschung/formal_methods/CoFI/hets/`utils/sysname.sh`
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisGENERATERULES_deps = utils/GenerateRules/*hs $(DRIFT_deps) Common/Utils.hs
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr JasiukajtisINLINEAXIOMS_deps = utils/InlineAxioms/InlineAxioms.hs \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis Common/Lib/Pretty.hs Common/Keywords.hs Common/Lib/Set.hs \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis Common/Lib/Map.hs Common/Lib/Rel.hs Common/Lib/State.hs Common/Id.hs \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis Common/AS_Annotation.hs CASL/AS_Basic_CASL.hs CASL/ShowMixfix.hs \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis CASL/Utils.hs Common/Lexer.hs Common/Token.hs Common/Anno_Parser.hs \
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis Common/GlobalAnnotations.hs Common/PrettyPrint.hs \
# flags also come in via ../uni/uni-package.conf
$@.hs -o $@
$(APPENDPRELUDESTRING) < $< > $@
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
$(RM) $@
$(HC_FLAGS) -O
# "HetCATS/hetcats.TAGS"
(cd utils/GenerateRules; \
GenerateRules.hs -o ../genRules && strip ../genRules)
-i../.. -o $(INLINEAXIOMS)
if [ -d ../programatica ] ; then \
./clean.sh; \
gen_atc_files = \
### also delete *.d.bak (dependency file backups)
ghci:
### ATerm.Lib test system
## two hardcoded dependencies for a correct generation of Version.hs
.SUFFIXES:
%: %.hs
$(HAPPY) $<
%.hs: %.y
$(HAPPY) -o $@ $<
$(INLINEAXIOMS) $< > $@
%.d : %.hs
%.d : %.lhs
## rule for Modal/ModalSystems.hs needed for ModalLogic Translation