2 # Copyright (C) 1997-2015 by Dimitri van Heesch.
4 # Permission to use, copy, modify, and distribute this software and its
5 # documentation under the terms of the GNU General Public License is hereby
6 # granted. No representations are made about the suitability of this software
7 # for any purpose. It is provided "as is" without express or implied warranty.
8 # See the GNU General Public License for more details.
10 # Documents produced by doxygen are derivative works derived from the
11 # input used in their production; they are not affected by this license.
15 # Files generated by javacc
17 GEN_FILES=CharStream.cc CharStream.h ErrorHandler.h ParseException.cc ParseException.h \
18 Token.cc Token.h TokenManager.h TokenMgrError.cc TokenMgrError.h VhdlParser.cc VhdlParser.h \
19 VhdlParserConstants.h VhdlParserTokenManager.cc VhdlParserTokenManager.h \
22 # Generate parser (default target)
24 # when generating the parser with debug options it will look like:
25 # make JAVACC_FLAGS=-debug_parser
27 # make JAVACC_FLAGS="-debug_parser -debug_lookahead"
29 # Available debug options:
31 # -debug_token_manager
34 # For other javacc settings / options consult the documentation of javacc.
38 @javacc $(JAVACC_FLAGS) vhdlparser.jj
39 @cp JavaCC.h.in JavaCC.h
42 # reset the generated files back to their versions from git.
47 @git checkout $(GEN_FILES)
51 @echo " regenerate (default)"
52 @echo " reset_gen_files"