##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stdvars@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

## do not change this value
subdir=examples/cpp/treewalk

srcdir=@abs_top_srcdir@/examples/cpp/treewalk
objdir=@abs_this_builddir@/examples/cpp/treewalk

this : test
test : test1

all: treewalk test

treewalk_g_FILES = \
	$(srcdir)/treewalk.g \
	$(eol)

treewalk_g_cxx_FILES = \
	$(objdir)/LangParser.cpp \
	$(objdir)/LangWalker.cpp \
	$(objdir)/LangLexer.cpp \
	$(eol)

treewalk_g_hpp_FILES = \
	$(objdir)/LangParser.hpp \
	$(objdir)/LangParserTokenTypes.hpp \
	$(objdir)/LangWalker.hpp \
	$(objdir)/LangLexer.hpp \
	$(eol)

treewalk_g_txt_FILES = \
	$(objdir)/LangParserTokenTypes.txt \
	$(eol)

treewalk_g_gen_FILES = \
	$(treewalk_g_cxx_FILES) \
	$(treewalk_g_hpp_FILES) \
	$(treewalk_g_txt_FILES) \
	$(eol)

treewalk_g_obj_FILES = \
	$(objdir)/LangParser@OBJEXT@ \
	$(objdir)/LangWalker@OBJEXT@ \
	$(objdir)/LangLexer@OBJEXT@ \
	$(eol)

## Source files
treewalk_cxx_FILES = \
	$(treewalk_g_cxx_FILES) \
	$(srcdir)/Main.cpp \
	$(eol)

## Object files
treewalk_obj_FILES = \
	$(treewalk_g_obj_FILES) \
	$(objdir)/Main@OBJEXT@ \
	$(eol)

## Test commands
test1_cmd = $(objdir)/treewalk < $(srcdir)/test.in

## Tests to be executed
test1: treewalk
	@ v="$(verbose)"; if test $$v -gt 0 ; then  @ECHO@ "$(test1_cmd)" ;  else  @ECHO@ "exec test1 ..";  fi
	@ $(test1_cmd)

## How to make binaries
treewalk : $(treewalk_obj_FILES) @ANTLR_LIB@
	@CXX_LINK_CMD@ $@ $(treewalk_obj_FILES)

## How to compile ANTLR grammar files
$(objdir)/.treewalk.g : $(srcdir)/treewalk.g @ANTLR_JAR@
	@ANTLR_COMPILE_CMD@ $(srcdir)/treewalk.g
	$(TOUCH) `@CYGPATH_W@ $(objdir)/.treewalk.g`

$(treewalk_g_gen_FILES): $(objdir)/.treewalk.g


## GNU make - how to make object file
$(objdir)/%@OBJEXT@ : $(srcdir)/%.cpp
	@ CXXINCLUDE="$(srcdir)" @CXX_COMPILE_CMD@ $<

## GNU make - how to make object file
$(objdir)/%@OBJEXT@ : $(objdir)/%.cpp
	@ CXXINCLUDE="$(srcdir)" @CXX_COMPILE_CMD@ $<

## GNU make - how to make object file
%@OBJEXT@ : $(srcdir)/%.cpp
	@ CXXINCLUDE="$(srcdir)" @CXX_COMPILE_CMD@ $<

## GNU make - how to make object file
%@OBJEXT@ : $(objdir)/%.cpp
	@ CXXINCLUDE="$(srcdir)" @CXX_COMPILE_CMD@ $<

#####
## GNU make - how to make object file
$(objdir)/%@OBJEXT@ : $(srcdir)/%.c
	@ @C_COMPILE_CMD@ $<

## GNU make - how to make object file
$(objdir)/%@OBJEXT@ : $(objdir)/%.c
	@ @C_COMPILE_CMD@ $<

## GNU make - how to make object file
%@OBJEXT@ : $(srcdir)/%.c
	@ @C_COMPILE_CMD@ $<

## Housecleaning
clean:
	- @RMF@ *.o *.obj *.exe \
	$(treewalk_g_gen_FILES) \
	$(objdir)/.treewalk.g \
	treewalk

distclean: clean
	@RMF@ Makefile

## If cxx.sh script changed ..
$(treewalk_g_obj_FILES) : @abs_this_builddir@/scripts/cxx.sh
## If link.sh script changed ..
$(treewalk_g_obj_FILES) : @abs_this_builddir@/scripts/link.sh

$(objdir)/Main@OBJEXT@: \
	$(srcdir)/Main.cpp \
	$(objdir)/LangLexer.hpp \
	$(sourcetree)/lib/cpp/antlr/config.hpp \
	$(sourcetree)/lib/cpp/antlr/CommonToken.hpp \
	$(sourcetree)/lib/cpp/antlr/Token.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/InputBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/CircularQueue.hpp \
	$(sourcetree)/lib/cpp/antlr/BitSet.hpp \
	$(objdir)/LangParserTokenTypes.hpp \
	$(sourcetree)/lib/cpp/antlr/CharScanner.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStream.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp \
	$(sourcetree)/lib/cpp/antlr/MismatchedCharException.hpp \
	$(sourcetree)/lib/cpp/antlr/LexerSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/CharBuffer.hpp \
	$(srcdir)/MyAST.h \
	$(sourcetree)/lib/cpp/antlr/CommonAST.hpp \
	$(sourcetree)/lib/cpp/antlr/BaseAST.hpp \
	$(sourcetree)/lib/cpp/antlr/AST.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTRefCount.hpp \
	$(objdir)/LangParser.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/LLkParser.hpp \
	$(sourcetree)/lib/cpp/antlr/Parser.hpp \
	$(sourcetree)/lib/cpp/antlr/MismatchedTokenException.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTFactory.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTArray.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTPair.hpp \
	$(sourcetree)/lib/cpp/antlr/ParserSharedInputState.hpp \
	$(objdir)/LangWalker.hpp \
	$(sourcetree)/lib/cpp/antlr/TreeParser.hpp \
	$(sourcetree)/lib/cpp/antlr/TreeParserSharedInputState.hpp

$(objdir)/LangWalker@OBJEXT@: \
	$(objdir)/LangWalker.cpp \
	$(objdir)/LangWalker.hpp \
	$(sourcetree)/lib/cpp/antlr/config.hpp \
	$(objdir)/LangParserTokenTypes.hpp \
	$(sourcetree)/lib/cpp/antlr/TreeParser.hpp \
	$(sourcetree)/lib/cpp/antlr/AST.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/Token.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTFactory.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTArray.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTPair.hpp \
	$(sourcetree)/lib/cpp/antlr/BitSet.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(sourcetree)/lib/cpp/antlr/MismatchedTokenException.hpp \
	$(sourcetree)/lib/cpp/antlr/TreeParserSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(srcdir)/MyAST.h \
	$(sourcetree)/lib/cpp/antlr/CommonAST.hpp \
	$(sourcetree)/lib/cpp/antlr/BaseAST.hpp \
	$(sourcetree)/lib/cpp/antlr/NoViableAltException.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp

$(objdir)/LangParser@OBJEXT@: \
	$(objdir)/LangParser.cpp \
	$(objdir)/LangParser.hpp \
	$(sourcetree)/lib/cpp/antlr/config.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStream.hpp \
	$(sourcetree)/lib/cpp/antlr/Token.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/CircularQueue.hpp \
	$(objdir)/LangParserTokenTypes.hpp \
	$(sourcetree)/lib/cpp/antlr/LLkParser.hpp \
	$(sourcetree)/lib/cpp/antlr/Parser.hpp \
	$(sourcetree)/lib/cpp/antlr/BitSet.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(sourcetree)/lib/cpp/antlr/MismatchedTokenException.hpp \
	$(sourcetree)/lib/cpp/antlr/AST.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTFactory.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTArray.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTPair.hpp \
	$(sourcetree)/lib/cpp/antlr/ParserSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(srcdir)/MyAST.h \
	$(sourcetree)/lib/cpp/antlr/CommonAST.hpp \
	$(sourcetree)/lib/cpp/antlr/BaseAST.hpp \
	$(sourcetree)/lib/cpp/antlr/NoViableAltException.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp

$(objdir)/LangLexer@OBJEXT@: \
	$(objdir)/LangLexer.cpp \
	$(objdir)/LangLexer.hpp \
	$(sourcetree)/lib/cpp/antlr/config.hpp \
	$(sourcetree)/lib/cpp/antlr/CommonToken.hpp \
	$(sourcetree)/lib/cpp/antlr/Token.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/InputBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/CircularQueue.hpp \
	$(sourcetree)/lib/cpp/antlr/BitSet.hpp \
	$(objdir)/LangParserTokenTypes.hpp \
	$(sourcetree)/lib/cpp/antlr/CharScanner.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStream.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp \
	$(sourcetree)/lib/cpp/antlr/MismatchedCharException.hpp \
	$(sourcetree)/lib/cpp/antlr/LexerSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/CharBuffer.hpp \
	$(srcdir)/MyAST.h \
	$(sourcetree)/lib/cpp/antlr/CommonAST.hpp \
	$(sourcetree)/lib/cpp/antlr/BaseAST.hpp \
	$(sourcetree)/lib/cpp/antlr/AST.hpp \
	$(sourcetree)/lib/cpp/antlr/ASTRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStreamException.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStreamIOException.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStreamRecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/CharStreamException.hpp \
	$(sourcetree)/lib/cpp/antlr/CharStreamIOException.hpp \
	$(sourcetree)/lib/cpp/antlr/NoViableAltForCharException.hpp


##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stddeps@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

