#
# 
#                   Sun Public License Notice
#  
#   The contents of this file are subject to the Sun Public License
#   Version 1.0 (the "License"). You may not use this file except in
#   compliance with the License. A copy of the License is available at
#   http://www.sun.com/
#  
#   $Id: Makefile,v 1.2.6.1 2006/03/21 04:16:20 sk156684 Exp $
#

# This file basically only rebuilds the ANTLR generated stuff.
G_FILES := antlr.g tokdef.g

SUB_DIRS := preprocessor actions collections debug
ALL_SUB_DIRS := $(SUB_DIRS)

# What's generated from antlr.g
antlr_g_FILES := \
   ANTLRParser.java \
   ANTLRTokenTypes.java \
   ANTLRTokenTypes.txt \
   ANTLRLexer.java

# What's generated from tokdef.g
tokdef_g_FILES := \
   ANTLRTokdefParser.java \
   ANTLRTokdefLexer.java \
   ANTLRTokdefParserTokenTypes.java \
   ANTLRTokdefParserTokenTypes.txt

ifndef TOPDIR
	TOPDIR  = $(shell pwd)/..
endif

# Leave these above any other rules...
include $(TOPDIR)/scripts/Config.make
include $(TOPDIR)/scripts/Rules.make

# Check out all the generated stuff here..
p4_genfiles: ;
	p4 edit $(antlr_g_FILES) $(tokdef_g_FILES)
