Makefile revision 32a973e501a8c0d8d43e02c160419a50d9d02c76
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
INSTALLDIR = \
# 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 \
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