# makefile for rec.annotate.lisp

default: all

HOME_MAKE_DIR = ${HAL_DIR}/source/rec/make/
include ${HOME_MAKE_DIR}make.defaults

JAVA_PACKAGE = rec.annotate.lisp
JAVA_PACKAGE_DIRECTORY = rec/annotate/lisp

# Fill this in with the directories that must be made _before_
# this directory (i.e., because of a code dependency).
# PREDIRS = dir1 dir2 dir3
# PREDIRS = 

# Fill this in with the subdirectories that you would like made
# when you do a make in this directory
# SUBDIRS = dir1 dir2 dir3
SUBDIRS = ltms 

CLASSDIR = $(WRITE_CLASS_FILES_TO)/$(JAVA_PACKAGE_DIRECTORY)

include files

include $(HOME_MAKE_DIR)make.rules

LISP_FILES = load-lisp.lsp 
HERE = ${HAL_DIR}/source/$(JAVA_PACKAGE_DIRECTORY)
BPS_FLAGS = -e "(defvar *BPS-path* (string '|$(HERE)|))" \
	    -L bps-init.lsp \
	    -L ltms/ltre.lsp

lisp: ltre assistance ${LISP_FILES:%.lsp=%.fasl}

ltre:
	$(LISP_COMPILER) $(LFLAGS) $(BPS_FLAGS) -e "(compile-ltre)" -kill

assistance:
	$(LISP_COMPILER) $(LFLAGS) $(BPS_FLAGS) -L assistance.lsp \
			 -e "(compile-assistance)" -kill

%.fasl: %.lsp
	@echo Compiling $< to $(WRITE_CLASS_FILES_TO)
	$(LISP_COMPILER) $(LFLAGS) -C $< -kill
	cp $@ $(WRITE_CLASS_FILES_TO)