##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stdvars@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

## do not change this value

subdir=examples/cpp/unicode

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

this : unicode
test : # test1


all: unicode

unicode_g_FILES = \
	$(srcdir)/unicode.g \
	$(eol)

unicode_g_cxx_FILES = \
	$(objdir)/L.cpp \
	$(eol)

unicode_g_hpp_FILES = \
	$(objdir)/L.hpp \
	$(objdir)/LTokenTypes.hpp \
	$(eol)

unicode_g_txt_FILES = \
	$(objdir)/LTokenTypes.txt \
	$(eol)

unicode_g_gen_FILES = \
	$(unicode_g_cxx_FILES) \
	$(unicode_g_hpp_FILES) \
	$(unicode_g_txt_FILES) \
	$(eol)

unicode_g_obj_FILES = \
	$(objdir)/L@OBJEXT@ \
	$(eol)

## Source files
unicode_cxx_FILES = \
	$(unicode_g_cxx_FILES) \
	$(srcdir)/MismatchedUnicodeCharException.cpp \
	$(srcdir)/main.cpp \
	$(eol)

## Object files
unicode_obj_FILES = \
	$(unicode_g_obj_FILES) \
	$(objdir)/MismatchedUnicodeCharException@OBJEXT@ \
	$(objdir)/main@OBJEXT@ \
	$(eol)

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

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

## How to make binaries
unicode : $(unicode_obj_FILES) @ANTLR_LIB@
	@CXX_LINK_CMD@ $@ $(unicode_obj_FILES)

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

$(unicode_g_gen_FILES): $(objdir)/.unicode.g

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

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

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

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

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

distclean: clean
	@RMF@ Makefile

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

$(objdir)/MismatchedUnicodeCharException@OBJEXT@: \
	$(srcdir)/MismatchedUnicodeCharException.cpp \
	$(sourcetree)/lib/cpp/antlr/config.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(sourcetree)/lib/cpp/antlr/BitSet.hpp \
	$(sourcetree)/lib/cpp/antlr/String.hpp \
	$(srcdir)/MismatchedUnicodeCharException.hpp \
	$(srcdir)/UnicodeCharScanner.hpp \
	$(sourcetree)/lib/cpp/antlr/CommonToken.hpp \
	$(sourcetree)/lib/cpp/antlr/Token.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenRefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStream.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp \
	$(sourcetree)/lib/cpp/antlr/InputBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/CircularQueue.hpp \
	$(sourcetree)/lib/cpp/antlr/LexerSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/CharBuffer.hpp

$(objdir)/main@OBJEXT@: \
	$(srcdir)/main.cpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(sourcetree)/lib/cpp/antlr/config.hpp \
	$(objdir)/L.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)/LTokenTypes.hpp \
	$(srcdir)/UnicodeCharBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/CharStreamIOException.hpp \
	$(sourcetree)/lib/cpp/antlr/CharStreamException.hpp \
	$(srcdir)/UnicodeCharScanner.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStream.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp \
	$(sourcetree)/lib/cpp/antlr/LexerSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/CharBuffer.hpp \
	$(srcdir)/MismatchedUnicodeCharException.hpp \
	$(sourcetree)/lib/cpp/antlr/String.hpp

$(objdir)/L@OBJEXT@: \
	$(objdir)/L.cpp \
	$(objdir)/L.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)/LTokenTypes.hpp \
	$(srcdir)/UnicodeCharBuffer.hpp \
	$(sourcetree)/lib/cpp/antlr/CharStreamIOException.hpp \
	$(sourcetree)/lib/cpp/antlr/CharStreamException.hpp \
	$(sourcetree)/lib/cpp/antlr/ANTLRException.hpp \
	$(srcdir)/UnicodeCharScanner.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStream.hpp \
	$(sourcetree)/lib/cpp/antlr/RecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/SemanticException.hpp \
	$(sourcetree)/lib/cpp/antlr/LexerSharedInputState.hpp \
	$(sourcetree)/lib/cpp/antlr/RefCount.hpp \
	$(sourcetree)/lib/cpp/antlr/CharBuffer.hpp \
	$(srcdir)/MismatchedUnicodeCharException.hpp \
	$(sourcetree)/lib/cpp/antlr/String.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStreamException.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStreamIOException.hpp \
	$(sourcetree)/lib/cpp/antlr/TokenStreamRecognitionException.hpp \
	$(sourcetree)/lib/cpp/antlr/NoViableAltForCharException.hpp \
	$(sourcetree)/lib/cpp/antlr/CharScanner.hpp \
	$(sourcetree)/lib/cpp/antlr/MismatchedCharException.hpp


##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@stddeps@
##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

