#
#	  Copyright 1999,2000 by the Purdue Research Foundation for CERIAS (the
#	  Center for Education and Research in Information Assurance and
#	  Security).  All rights reserved.  This work may be used for
#	  non-profit educational and research purposes only.  Any copies made
#	  of this file or portions of its contents must include this copyright
#	  statement.  For information on reuse, licensing, or copying, contact
#	  <cerias-info@cerias.purdue.edu>.
#
#	  This software is experimental in nature and is provided without any
#	  express or implied warranties, including, without limitation, the
#	  implied warranties of merchantability and fitness for any particular
#	  purpose.
#
#         $Id: Makefile,v 1.4 2000/01/31 03:56:38 flack Exp $
#
#  Makes the verbose-tracing patch for ANTLR 2.6.1
#  Chapman Flack, flack@cs.purdue.edu
#

JAVA_BIN = $(JAVA_HOME)/bin

JAVA = $(JAVA_BIN)/java

JAVAC = $(JAVA_BIN)/javac

CLASSES = antlr/LLkParser.class

.SUFFIXES : .class .java .g

.java.class :
	$(JAVAC) -classpath .:$(ANTLR_CLASSES)  $<

all : $(CLASSES)

antlr/LLkParser.java.orig : $(ANTLR_HOME)/antlr/LLkParser.java
	rm  -f  $@
	cp  $?  $@

antlr/LLkParser.java : antlr/LLkParser.java.orig
	rm -f antlr/LLkParser.java
	cp antlr/LLkParser.java.orig antlr/LLkParser.java
	patch -p0 <verbose.pat
