2001-02-01 20:21:25 +00:00
|
|
|
# Makefile.am
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2001-02-01 20:21:25 +00:00
|
|
|
#
|
2006-05-21 05:12:17 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
2007-01-18 11:28:47 +00:00
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
2001-02-01 20:21:25 +00:00
|
|
|
# Copyright 2001 Gerald Combs
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2007-01-18 11:28:47 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2007-04-20 14:30:48 +00:00
|
|
|
#
|
2007-08-01 20:35:05 +00:00
|
|
|
|
|
|
|
include ../../Makefile.am.inc
|
|
|
|
|
2007-04-20 14:30:48 +00:00
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
|
|
|
AM_NON_GENERATED_CFLAGS = -Werror
|
|
|
|
endif
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2007-04-20 14:30:48 +00:00
|
|
|
noinst_LTLIBRARIES = libdfilter_generated.la libdfilter.la
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
libdfilter.a \
|
2004-03-24 21:27:44 +00:00
|
|
|
libdfilter.la \
|
2007-04-20 14:30:48 +00:00
|
|
|
libdfilter_generated.a \
|
|
|
|
libdfilter_generated.la \
|
2001-02-01 20:21:25 +00:00
|
|
|
*~
|
|
|
|
|
2005-08-02 15:25:41 +00:00
|
|
|
DISTCLEANFILES = \
|
|
|
|
grammar.out \
|
|
|
|
grammar.c \
|
|
|
|
grammar.h
|
|
|
|
|
2005-07-10 08:04:27 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
Makefile.in \
|
2007-08-04 02:13:52 +00:00
|
|
|
scanner.c \
|
|
|
|
scanner_lex.h
|
2005-07-10 08:04:27 +00:00
|
|
|
|
2001-03-05 22:53:41 +00:00
|
|
|
INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/.. -I$(srcdir)/$(LEMON)
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2007-04-20 14:30:48 +00:00
|
|
|
#Since code generated by lex may trigger gcc warnings, we are now generating two
|
|
|
|
#libraries. A single library is generated with the lex code without the barrier
|
|
|
|
#"stop on warning". An other library is generated from the remaining source
|
|
|
|
#files with the "stop on warning" barrier.
|
2004-03-13 10:15:36 +00:00
|
|
|
libdfilter_la_SOURCES = \
|
2001-02-01 20:21:25 +00:00
|
|
|
dfilter.c \
|
|
|
|
dfilter.h \
|
|
|
|
dfilter-int.h \
|
2007-04-20 14:30:48 +00:00
|
|
|
dfilter-macro.h \
|
|
|
|
dfilter-macro.c \
|
|
|
|
dfunctions.c \
|
|
|
|
dfunctions.h \
|
2001-02-01 20:21:25 +00:00
|
|
|
dfvm.c \
|
|
|
|
dfvm.h \
|
2001-02-27 19:23:30 +00:00
|
|
|
drange.c \
|
|
|
|
drange.h \
|
2001-02-01 20:21:25 +00:00
|
|
|
gencode.c \
|
|
|
|
gencode.h \
|
|
|
|
glib-util.c \
|
|
|
|
glib-util.h \
|
|
|
|
semcheck.c \
|
|
|
|
semcheck.h \
|
2006-05-02 14:26:17 +00:00
|
|
|
sttype-function.c \
|
|
|
|
sttype-function.h \
|
2001-02-27 19:23:30 +00:00
|
|
|
sttype-integer.c \
|
2001-02-01 20:21:25 +00:00
|
|
|
sttype-pointer.c \
|
|
|
|
sttype-range.c \
|
|
|
|
sttype-range.h \
|
|
|
|
sttype-string.c \
|
|
|
|
sttype-test.c \
|
|
|
|
sttype-test.h \
|
|
|
|
syntax-tree.c \
|
|
|
|
syntax-tree.h
|
2007-04-20 14:30:48 +00:00
|
|
|
libdfilter_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
|
|
|
|
|
|
|
|
libdfilter_generated_la_SOURCES = \
|
|
|
|
grammar.c \
|
|
|
|
grammar.h \
|
2007-08-04 02:13:52 +00:00
|
|
|
scanner.c \
|
|
|
|
scanner_lex.h
|
2007-04-20 14:30:48 +00:00
|
|
|
|
|
|
|
libdfilter_la_LIBADD = libdfilter_generated.la
|
|
|
|
libdfilter_la_DEPENDENCIES = libdfilter_generated.la
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
grammar.lemon \
|
2001-02-02 04:03:43 +00:00
|
|
|
scanner.l \
|
|
|
|
Makefile.nmake
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
RUNLEX=$(top_srcdir)/tools/runlex.sh
|
|
|
|
|
|
|
|
scanner_lex.h : scanner.c
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
LEMON=../../tools/lemon
|
|
|
|
|
2005-08-01 21:09:34 +00:00
|
|
|
grammar.h : grammar.c
|
2008-03-23 08:58:52 +00:00
|
|
|
grammar.c : $(LEMON)/lemon$(EXEEXT) $(srcdir)/$(LEMON)/lempar.c $(srcdir)/grammar.lemon
|
2006-11-03 18:39:03 +00:00
|
|
|
$(LEMON)/lemon$(EXEEXT) t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/grammar.lemon || \
|
2001-02-01 20:21:25 +00:00
|
|
|
(rm -f grammar.c grammar.h ; false)
|