# Added debugging flags for the flex scanner.

This commit is contained in:
Robert James Kaes 2003-06-26 18:23:01 +00:00
parent 1cb032a934
commit a8798e999b
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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