From 5be4499ad19b66e1626f6c6eb1849803e08126d6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 4 Aug 2007 02:13:52 +0000 Subject: Add a script as a front-end for Flex, to work around various problems, such as the fact that Flex strips all but the last component of the "-o" argument, and that it doesn't generate a header file to declare routines the generated lexical analyzer defines. Use that script when building lexical analyzers, and, for each lexical analyzer, include the generated header file in the generated analyzer. svn path=/trunk/; revision=22446 --- wiretap/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wiretap/Makefile.am') diff --git a/wiretap/Makefile.am b/wiretap/Makefile.am index 982526e86b..ecfc04692f 100644 --- a/wiretap/Makefile.am +++ b/wiretap/Makefile.am @@ -66,6 +66,7 @@ EXTRA_DIST = \ config.h.win32 \ Makefile.common \ Makefile.nmake \ + runlex.sh \ wtap.def \ file_util.c \ $(GENERATOR_SOURCES) \ @@ -74,6 +75,12 @@ EXTRA_DIST = \ 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"; \ -- cgit v1.2.1