# /*
# The OGEL Programming Language Compiler
# Copyright (c) 2003 {cwo4,gf141,mmc91,mpk43}@columbia.edu
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
# */

#########################################################
# This is a very simple Makefile to generate all the
# executable code required for the OGEL compiler
#
# This assumes that the CLASSPATH already is set to
# include the ANTLR classfiles 
#   (tested with ANTRL ver. 2.7.3, Sun Java ver. 1.4.2)
#

all:
	java antlr.Tool grammar.g
	java antlr.Tool semanticWalker.g
	java antlr.Tool OGELwriter.g  
	javac *.java 

clean:
	rm -f *.class OGELLexer.java OGELParser.java OGELSemanticWalker.java \
	OGELSemanticWalkerTokenTypes.* OGELTokenTypes.* OGELWriterWalker.* \
	OGELTreeParserTokenTypes.* OGELWriterWalkerTokenTypes.*  

