2013-02-04 18:27:05 +00:00
|
|
|
# Makefile.am
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# 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
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
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
|
|
|
|
2008-07-02 01:44:30 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
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 \
|
2013-02-09 23:35:30 +00:00
|
|
|
$(NODIST_GENERATED_FILES)
|
2005-08-02 15:25:41 +00:00
|
|
|
|
2005-07-10 08:04:27 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
2013-02-05 06:09:17 +00:00
|
|
|
$(GENERATED_FILES) \
|
2013-02-09 23:35:30 +00:00
|
|
|
$(NODIST_GENERATED_FILES) \
|
2013-02-05 06:09:17 +00:00
|
|
|
Makefile.in
|
2005-07-10 08:04:27 +00:00
|
|
|
|
2013-03-12 06:53:39 +00:00
|
|
|
AM_CPPFLAGS = -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.
|
2008-07-02 01:44:30 +00:00
|
|
|
libdfilter_la_SOURCES = $(NONGENERATED_C_FILES) $(NONGENERATED_HEADER_FILES)
|
2007-04-20 14:30:48 +00:00
|
|
|
libdfilter_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
|
|
|
|
|
|
|
|
libdfilter_generated_la_SOURCES = \
|
2008-07-02 01:44:30 +00:00
|
|
|
$(GENERATED_C_FILES) \
|
|
|
|
$(GENERATED_HEADER_FILES)
|
2007-04-20 14:30:48 +00:00
|
|
|
|
2013-02-05 06:09:17 +00:00
|
|
|
nodist_libdfilter_generated_la_SOURCES = \
|
2013-02-09 23:35:30 +00:00
|
|
|
$(NODIST_GENERATED_C_FILES) \
|
|
|
|
$(NODIST_GENERATED_HEADER_FILES)
|
2013-02-05 06:09:17 +00:00
|
|
|
|
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 = \
|
2008-07-02 01:44:30 +00:00
|
|
|
$(GENERATOR_FILES) \
|
|
|
|
Makefile.common \
|
2012-09-20 03:04:48 +00:00
|
|
|
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
|
2013-02-01 20:16:31 +00:00
|
|
|
scanner.lo: grammar.h
|
2001-02-01 20:21:25 +00:00
|
|
|
|
|
|
|
LEMON=../../tools/lemon
|
|
|
|
|
2013-02-12 17:25:28 +00:00
|
|
|
grammar.h : grammar.c
|
|
|
|
grammar.c : $(LEMON)/lemon$(EXEEXT) $(srcdir)/$(LEMON)/lempar.c $(srcdir)/grammar.lemon
|
2015-01-11 19:53:11 +00:00
|
|
|
$(AM_V_LEMON)$(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)
|
2012-01-21 12:22:01 +00:00
|
|
|
|
|
|
|
checkapi:
|
2014-04-23 08:50:27 +00:00
|
|
|
$(PERL) $(top_srcdir)/tools/checkAPIs.pl -g termoutput -build \
|
|
|
|
-sourcedir=$(srcdir) \
|
|
|
|
$(GENERATOR_FILES) \
|
|
|
|
$(NONGENERATED_C_FILES)
|