From a8798e999bb1a5f45835ed5d09867f33fc0c93cc Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 26 Jun 2003 18:23:01 +0000 Subject: # Added debugging flags for the flex scanner. --- configure.ac | 4 +++- src/Makefile.am | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f5f9575..8c7a427 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -dnl $Id: configure.ac,v 2.57 2003-06-25 18:23:11 rjkaes Exp $ +dnl $Id: configure.ac,v 2.58 2003-06-26 18:23:01 rjkaes Exp $ dnl Devlopers, please strive to achieve this order: dnl @@ -265,6 +265,7 @@ if test x"$debug_enabled" = x"yes" ; then fi CFLAGS="-Wall -g -DYYDEBUG $CFLAGS" YFLAGS="-v -d" + LEX_FLAGS="--warn" else dnl No debugging information, include the optimizations CFLAGS="-O2 -DNDEBUG $CFLAGS" @@ -341,6 +342,7 @@ AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) AC_SUBST(YFLAGS) AC_SUBST(CPPFLAGS) +AC_SUBST(LEX_FLAGS) AC_SUBST(LIBS) AC_SUBST(ADDITIONAL_OBJECTS) AC_SUBST(TINYPROXY_CONFIG_DIR) diff --git a/src/Makefile.am b/src/Makefile.am index 804a4c0..4a9c42f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.16 2003-03-13 21:23:01 rjkaes Exp $ +# $Id: Makefile.am,v 1.17 2003-06-26 18:23:01 rjkaes Exp $ # # Copyright (C) 2000 Robert James Kaes (rjkaes@flarenet.com) # @@ -48,7 +48,7 @@ tinyproxy_DEPENDENCIES = @ADDITIONAL_OBJECTS@ tinyproxy_LDADD = @ADDITIONAL_OBJECTS@ scanner.c: scanner.l grammar.h - $(LEX) $(AM_LFLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@ + $(LEX) $(LEX_FLAGS) $(LFLAGS) -i $< && mv $(LEX_OUTPUT_ROOT).c $@ clean: rm -f *.da -- cgit v1.2.3