# FILE. . . . . /home/hak/ilt/dotnet/src/Ilog/Language/Jacc/test/term/Makefile
# EDIT BY . . . Hassan Ait-Kaci
# ON MACHINE. . Latitude407.Ilog.Biz
# STARTED ON. . Tue May 31 12:19:29 2005

# Last modified on Tue May 31 14:53:10 2005 by hak

ROOTDIR		= D:/ilt/dotnet/src/Ilog/Language
ROOT		= Ilog.Language
JACC		= ${ROOTDIR}/Jacc/Jacc
GRAMMAR		= Term
LIBS		= -lib:"${ROOTDIR}/IO/lib" \
		  -lib:"${ROOTDIR}/Util/lib" \
		  -lib:"${ROOTDIR}/Parsing/lib"
REFS		= -r:"${ROOT}.IO.dll" \
		  -r:"${ROOT}.Util.dll" \
		  -r:"${ROOT}.Parsing.dll"
COMPILE		= csc -nologo -o -t:exe ${LIBS} ${REFS}
DEBUG		= csc -nologo -debug -t:exe -out:${GRAMMAR}.exe ${LIBS} ${REFS}
RM		= \rm -rf
SAY		= echo "***"

main: parser compile

parser:
	@${JACC} ${GRAMMAR}

compile: tidy
	@${SAY} Compiling ${GRAMMAR} source files
	@${COMPILE} -out:${GRAMMAR} ${GRAMMAR}*.cs
	@${SAY} Wrote executable ${GRAMMAR}

debug: tidy
	@./debug
	@cp ${ROOTDIR}/*/lib/*.dll .
	@${SAY} Compiling debuggable *.cs
	@${DEBUG} ${GRAMMAR}*.cs

clean: tidy
	@${SAY} Removing regeneratable files in ${ROOTDIR}/Jacc/test/term/
	@${RM} ${ROOTDIR}/Jacc/test/term/Term \
               ${ROOTDIR}/Jacc/test/term/TermParser.cs \
               ${ROOTDIR}/Jacc/test/term/*.exe \
               ${ROOTDIR}/Jacc/test/term/*.dll \
               ${ROOTDIR}/Jacc/test/term/*.log

tidy:
	@${RM} ,* @*@
