# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.l.c:
- @if [ ! -x "$(LEX)" ]; then \
- echo "Neither lex nor flex was found"; \
- exit 1; \
- fi
- $(LEX) -o$@ $<
+ $(RUNLEX) "$(LEX)" -o$@ $<
.SUFFIXES: .l
.l.c:
- $(LEX) -o$@ $<
+ $(SH) $(RUNLEX) "$(LEX)" -o$@ $<
exntest: exntest.o except.o
$(LINK) $^ $(GLIB_LIBS)
-dtd_grammar.h: dtd_grammar.c
+RUNLEX=$(top_srcdir)/tools/runlex.sh
+
+diam_dict_lex.h: diam_dict.c
+
+dtd_parse_lex.h: dtd_parse.c
+
+dtd_preparse_lex.h: dtd_preparse.c
+
+radius_dict_lex.h: radius_dict.c
+
+uat_load_lex.h: uat_load.c
LEMON=../tools/lemon
+dtd_grammar.h: dtd_grammar.c
+
dtd_grammar.c: dtd_grammar.lemon $(LEMON)/lemon$(EXEEXT)
$(LEMON)/lemon$(EXEEXT) t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/dtd_grammar.lemon
#
LIBWIRESHARK_NODISTCLEAN_GENERATED_SRC = \
diam_dict.c \
+ diam_dict_lex.h \
dtd_parse.c \
+ dtd_parse_lex.h \
dtd_preparse.c \
+ dtd_preparse_lex.h \
radius_dict.c \
- uat_load.c
+ radius_dict_lex.h \
+ uat_load.c \
+ uat_load_lex.h
LIBWIRESHARK_GENERATED_SRC = \
$(LIBWIRESHARK_DISTCLEAN_GENERATED_SRC) \
sminmpec.c: enterprise-numbers make-sminmpec.pl
$(PERL) make-sminmpec.pl enterprise-numbers sminmpec.c
-dtd_grammar.h: dtd_grammar.c
-
-radius_dict.obj : radius_dict.c
-
+RUNLEX=..\tools\runlex.sh
+
+diam_dict_lex.h: diam_dict.c
diam_dict.obj : diam_dict.c
+dtd_parse_lex.h: dtd_parse.c
dtd_parse.obj : dtd_parse.c
dtd_preparse.obj : dtd_preparse.c
+dtd_preparse_lex.h: dtd_preparse.c
+radius_dict_lex.h: radius_dict.c
+radius_dict.obj : radius_dict.c
+
+uat_load_lex.h: uat_load.c
uat_load.obj : uat_load.c
LEMON=..\tools\lemon
+dtd_grammar.h: dtd_grammar.c
dtd_grammar.c: dtd_grammar.lemon $(LEMON)\lemon.exe
$(LEMON)\lemon t=$(LEMON)\lempar.c dtd_grammar.lemon
MAINTAINERCLEANFILES = \
Makefile.in \
- scanner.c
+ scanner.c \
+ scanner_lex.h
INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/.. -I$(srcdir)/$(LEMON)
libdfilter_generated_la_SOURCES = \
grammar.c \
grammar.h \
- scanner.c
+ scanner.c \
+ scanner_lex.h
libdfilter_la_LIBADD = libdfilter_generated.la
libdfilter_la_DEPENDENCIES = libdfilter_generated.la
scanner.l \
Makefile.nmake
-scanner.o : scanner.c grammar.h
+RUNLEX=$(top_srcdir)/tools/runlex.sh
+
+scanner_lex.h : scanner.c
LEMON=../../tools/lemon
# the same for now.
#
distclean: clean
- rm -f scanner.c grammar.c grammar.h grammar.out
+ rm -f scanner.c scanner_lex.h grammar.c grammar.h grammar.out
maintainer-clean: distclean
+RUNLEX=..\..\tools\runlex.sh
+
+scanner_lex.h : scanner.c
scanner.obj : scanner.c grammar.h
grammar.h : grammar.c
#include "syntax-tree.h"
#include "grammar.h"
#include "dfunctions.h"
+#include "scanner_lex.h"
/*
* GLib 1.2[.x] doesn't define G_MAXINT32 or G_MININT32; if they're not
#include <stdarg.h>
#include "emem.h"
#include "diam_dict.h"
+#include "diam_dict_lex.h"
typedef struct entity_t {
char* name;
#include "dtd.h"
#include "dtd_grammar.h"
#include "dtd_parse.h"
+#include "dtd_parse_lex.h"
struct _proto_xmlpi_attr {
gchar* name;
#include <errno.h>
#include <stdio.h>
#include "dtd.h"
+#include "dtd_preparse_lex.h"
#define ECHO g_string_append(current,yytext);
#include <errno.h>
#include <epan/packet.h>
#include <epan/dissectors/packet-radius.h>
+#include "radius_dict_lex.h"
#define ECHO
#define MAX_INCLUDE_DEPTH 10
#include <epan/emem.h>
#include "uat-int.h"
+#include "uat_load_lex.h"
static uat_t* uat;
static guint colnum;
MAINTAINERCLEANFILES = \
Makefile.in \
mate_parser.c \
+ mate_parser_lex.h \
plugin.c
EXTRA_DIST = \
moduleinfo.nmake \
plugin.rc.in
+RUNLEX = $(top_srcdir)/tools/runlex.sh
+
+mate_parser_lex.h : mate_parser.c
+
LEMON = ../../tools/lemon
mate_grammar.h : mate_grammar.c
DISSECTOR_INCLUDES = \
mate.h \
mate_grammar.h \
+ mate_parser_lex.h \
mate_util.h
# Dissector helpers. They're included in the source files in this
# the same for now.
#
distclean: clean
- rm -f mate_parser.c mate_grammar.c mate_grammar.h mate_grammar.out
+ rm -f mate_parser.c mate_parser_lex.h mate_grammar.c \
+ mate_grammar.h mate_grammar.out
maintainer-clean: distclean
+RUNLEX = ..\..\tools\runlex.sh
+
+mate_parser_lex.h : mate_parser.c
mate_parser.obj : mate_parser.c
mate_grammar.h : mate_grammar.c
#include "mate.h"
#include "mate_grammar.h"
+#include "mate_parser_lex.h"
void MateParser(void*,int, gchar*, mate_config* matecfg);
void *MateParserAlloc(void *(*)(gulong));
msnchat \
netscreen2dump.py \
pkt-from-core.py \
+ runlex.sh \
unix2dos.pl \
win32-setup.sh \
wireshark_be.py \
config.h.win32 \
Makefile.common \
Makefile.nmake \
+ runlex.sh \
wtap.def \
file_util.c \
$(GENERATOR_SOURCES) \
libwiretap_la_LIBADD = libwiretap_generated.la
libwiretap_la_DEPENDENCIES = libwiretap_generated.la
+RUNLEX = $(top_srcdir)/runlex.sh
+
+ascend-scanner_lex.h : ascend-scanner.c
+
+k12text_lex.h : k12text.c
+
ascend-grammar.c : ascend-grammar.y
@if [ -z "$(YACC)" ]; then \
echo "Neither bison nor byacc has been found"; \
# The header files that they generate.
GENERATED_HEADER_FILES = \
- ascend-grammar.h
+ ascend-grammar.h \
+ ascend-scanner_lex.h \
+ k12text_lex.h
# All the generated files.
GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
$(OBJECTS): config.h
-ascend-grammar.c ascend-grammar.h : ascend-grammar.y
- $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
+RUNLEX = ..\runlex.sh
+ascend-scanner_lex.h : ascend-scanner.c
ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
+k12text_lex.h : k12text.c
k12text.obj : k12text.c
+ascend-grammar.c ascend-grammar.h : ascend-grammar.y
+ $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
+
config.h : config.h.win32 ..\config.nmake
sed -e s/@VERSION@/$(WTAP_VERSION)/ \
-e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
#include "ascend-grammar.h"
#include "ascend-int.h"
#include "file_wrappers.h"
+#include "ascend-scanner_lex.h""
FILE_T yy_fh;
extern char *ascend_ra_ptr;
#define YY_INPUT(buf,result,max_size) { int c = file_getc(yy_fh); \
result = (c==EOF) ? YY_NULL : (buf[0] = c, 1); }
-#define YY_NEVER_INTERACTIVE 1
-
int at_eof;
int mul, scratch;
#include "file_wrappers.h"
#include "buffer.h"
#include "k12.h"
+#include "k12text_lex.h"
static guint h;
static guint m;