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
|
|
|
|
2015-11-27 02:28:17 +00:00
|
|
|
include $(top_srcdir)/Makefile.am.inc
|
|
|
|
|
2016-02-19 08:20:35 +00:00
|
|
|
AM_CPPFLAGS = $(INCLUDEDIRS) -I$(top_srcdir)/epan -I$(lemon_srcdir) \
|
|
|
|
$(WS_CPPFLAGS) $(GLIB_CFLAGS)
|
2008-07-02 01:44:30 +00:00
|
|
|
|
2015-12-05 17:12:50 +00:00
|
|
|
noinst_LTLIBRARIES = libdfilter_generated.la libdfilter.la
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
# C source files that are part of the display filter source; this includes only
|
|
|
|
# .c files, not YACC or Lex or... files (as Makefile.nmake maps this list
|
|
|
|
# into a list of object files by replacing ".c" with ".obj") or files
|
|
|
|
# generated from YACC or Lex files (as Automake doesn't want them in
|
|
|
|
# _SOURCES variables).
|
|
|
|
NONGENERATED_C_FILES = \
|
|
|
|
dfilter.c \
|
|
|
|
dfilter-macro.c \
|
|
|
|
dfunctions.c \
|
|
|
|
dfvm.c \
|
|
|
|
drange.c \
|
|
|
|
gencode.c \
|
|
|
|
semcheck.c \
|
|
|
|
sttype-function.c \
|
|
|
|
sttype-integer.c \
|
|
|
|
sttype-pointer.c \
|
|
|
|
sttype-range.c \
|
|
|
|
sttype-set.c \
|
|
|
|
sttype-string.c \
|
|
|
|
sttype-test.c \
|
|
|
|
syntax-tree.c
|
|
|
|
|
|
|
|
# Header files that are not generated from other files
|
|
|
|
NONGENERATED_HEADER_FILES = \
|
|
|
|
dfilter.h \
|
|
|
|
dfilter-macro.h \
|
|
|
|
dfilter-int.h \
|
|
|
|
dfunctions.h \
|
|
|
|
dfvm.h \
|
|
|
|
drange.h \
|
|
|
|
gencode.h \
|
|
|
|
semcheck.h \
|
|
|
|
sttype-function.h \
|
|
|
|
sttype-range.h \
|
|
|
|
sttype-set.h \
|
|
|
|
sttype-test.h \
|
|
|
|
syntax-tree.h
|
|
|
|
|
|
|
|
# Files that generate compileable files
|
|
|
|
GENERATOR_FILES = \
|
|
|
|
grammar.lemon \
|
|
|
|
scanner.l
|
|
|
|
|
|
|
|
# The C source files they generate and that we want in the distribution
|
|
|
|
GENERATED_C_FILES = \
|
|
|
|
scanner.c
|
|
|
|
|
|
|
|
# The C source files they generate and that we don't want in the distribution
|
|
|
|
NODIST_GENERATED_C_FILES = \
|
|
|
|
grammar.c
|
|
|
|
|
|
|
|
# The header files that they generate and that we want in the distribution
|
|
|
|
GENERATED_HEADER_FILES = \
|
|
|
|
scanner_lex.h
|
|
|
|
|
|
|
|
# The header files that they generate and that we don't want in the distribution
|
|
|
|
NODIST_GENERATED_HEADER_FILES = \
|
|
|
|
grammar.h
|
2005-08-02 15:25:41 +00:00
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
# All the generated files we want in the distribution.
|
|
|
|
GENERATED_FILES = \
|
|
|
|
$(GENERATED_C_FILES) \
|
|
|
|
$(GENERATED_HEADER_FILES)
|
2005-07-10 08:04:27 +00:00
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
# All the generated files we don't want in the distribution.
|
|
|
|
NODIST_GENERATED_FILES = \
|
|
|
|
$(NODIST_GENERATED_C_FILES) \
|
|
|
|
$(NODIST_GENERATED_HEADER_FILES)
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2015-12-05 17:12:50 +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.
|
2016-06-21 04:06:23 +00:00
|
|
|
libdfilter_la_SOURCES = \
|
|
|
|
$(NONGENERATED_C_FILES) \
|
|
|
|
$(NONGENERATED_HEADER_FILES)
|
|
|
|
|
|
|
|
libdfilter_la_LIBADD = \
|
|
|
|
libdfilter_generated.la
|
|
|
|
|
|
|
|
libdfilter_la_DEPENDENCIES = \
|
|
|
|
libdfilter_generated.la
|
2015-12-05 17:12:50 +00:00
|
|
|
|
|
|
|
libdfilter_generated_la_SOURCES = \
|
|
|
|
$(GENERATED_C_FILES) \
|
2008-07-02 01:44:30 +00:00
|
|
|
$(GENERATED_HEADER_FILES)
|
2016-02-19 08:20:35 +00:00
|
|
|
|
2015-11-27 02:28:17 +00:00
|
|
|
libdfilter_generated_la_CFLAGS = $(GENERATED_CFLAGS)
|
2007-04-20 14:30:48 +00:00
|
|
|
|
2015-12-05 17:12:50 +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
|
|
|
|
2001-02-01 20:21:25 +00:00
|
|
|
EXTRA_DIST = \
|
2016-03-06 17:41:38 +00:00
|
|
|
.editorconfig \
|
2008-07-02 01:44:30 +00:00
|
|
|
$(GENERATOR_FILES) \
|
2016-02-22 06:21:53 +00:00
|
|
|
CMakeLists.txt
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2016-06-21 04:06:23 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
libdfilter.a \
|
|
|
|
libdfilter.la \
|
|
|
|
libdfilter_generated.a \
|
|
|
|
libdfilter_generated.la \
|
|
|
|
*~
|
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
|
|
|
grammar.out \
|
|
|
|
$(NODIST_GENERATED_FILES)
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
$(GENERATED_FILES) \
|
|
|
|
$(NODIST_GENERATED_FILES) \
|
|
|
|
Makefile.in
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
grammar.h
|
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
scanner_lex.h : scanner.c
|
2001-02-01 20:21:25 +00:00
|
|
|
|
2013-02-12 17:25:28 +00:00
|
|
|
grammar.h : grammar.c
|
2015-11-27 02:28:17 +00:00
|
|
|
grammar.c : $(LEMON) $(lemon_srcdir)/lempar.c $(srcdir)/grammar.lemon
|
|
|
|
$(AM_V_LEMON)$(LEMON) T=$(lemon_srcdir)/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 \
|
2016-05-11 16:06:55 +00:00
|
|
|
-sourcedir=$(srcdir) $(NONGENERATED_C_FILES)
|