Makefile revision e94af996596c87e8d835094ea6a186e69bf9c489
e459c407a404c834e5f9759744d1a134d820d41bAllen Rabinovich# Author: (c) Klaus L�ttich, Christian Maeder, Uni Bremen 2002-2004
e459c407a404c834e5f9759744d1a134d820d41bAllen Rabinovich# This Makefile will compile the new hetcats system and provides also
e459c407a404c834e5f9759744d1a134d820d41bAllen Rabinovich# targets for test programs during implementation phases.
e459c407a404c834e5f9759744d1a134d820d41bAllen Rabinovich# !!! Note: This makefile is written for GNU make !!!
e459c407a404c834e5f9759744d1a134d820d41bAllen Rabinovich# (gmake on solaris ; make on linux)
DRIFT_ENV = \
empty:=
INSTALLDIR = \
# flags also come in via ../uni/uni-package.conf
$@.hs -o $@
$(APPENDPRELUDESTRING) < $< > $@
#include sources_hetcats.mk
$(wildcard utils/GenerateRules/*.hs) \
$(wildcard utils/InlineAxioms/*.hs) \
#.PRECIOUS: sources_hetcats.mk
$(RM) $@
$(HC_FLAGS) -O
(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