1999-09-09 03:55:49 +00:00
|
|
|
# Makefile.am
|
|
|
|
# Automake file for Wiretap
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
1999-09-09 03:55:49 +00:00
|
|
|
#
|
2006-05-21 05:12:17 +00:00
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
1999-09-09 03:55:49 +00:00
|
|
|
# Copyright 1998 Gerald Combs
|
2003-07-29 19:42:01 +00:00
|
|
|
#
|
1999-09-09 03:55:49 +00:00
|
|
|
# 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.
|
2003-07-29 19:42:01 +00:00
|
|
|
#
|
1999-09-09 03:55:49 +00:00
|
|
|
# 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.
|
2003-07-29 19:42:01 +00:00
|
|
|
#
|
1999-09-09 03:55:49 +00:00
|
|
|
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
2007-08-01 20:35:05 +00:00
|
|
|
include ../Makefile.am.inc
|
|
|
|
|
Add a script, "aclocal-flags", which figures out where
1) aclocal expects autoconf/automake macros to be hidden;
2) GTK+ hid its autoconf/automake macros;
and, if both places exist but aren't the same directory, returns a "-I"
flag to tell aclocal to look in GTK+'s directory.
Then have "autogen.sh", and Makefiles in directories with "acinclude.m4"
files, use that script and pass what flag it supplies, if any, to
aclocal.
This should, I hope, avoid problems such as those FreeBSD systems where
GTK+ was installed from a port or package (and thus stuck its macros in
"/usr/X11R6/share/aclocal") but aclocal doesn't look there.
(It doesn't solve the problem of somebody downloading and installing,
say, libtool from source - which means it probably shows up under
"/usr/local", with its macros in "/usr/local/share/aclocal" - on a
system that comes with aclocal (meaning it probably just looks in
"/usr/share/aclocal", but that may be best fixed by, whenever you
download a source tarball for something that's part of your OS,
configuring it to install in the standard system directories and
*overwriting* your OS's version.)
svn path=/trunk/; revision=2165
2000-07-26 08:03:57 +00:00
|
|
|
ACLOCAL_AMFLAGS = `../aclocal-flags`
|
|
|
|
|
2004-07-26 20:46:54 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2007-05-17 18:02:22 +00:00
|
|
|
noinst_LTLIBRARIES = libwiretap_generated.la
|
2004-03-13 10:15:36 +00:00
|
|
|
lib_LTLIBRARIES = libwiretap.la
|
2007-01-12 21:04:33 +00:00
|
|
|
libwiretap_la_LDFLAGS = -version-info 0:1:0 @LDFLAGS_SHAREDLIB@
|
1999-05-01 05:19:25 +00:00
|
|
|
|
2007-05-17 18:02:22 +00:00
|
|
|
if HAVE_WARNINGS_AS_ERRORS
|
|
|
|
AM_NON_GENERATED_CFLAGS = -Werror
|
|
|
|
endif
|
|
|
|
|
2008-05-20 21:51:01 +00:00
|
|
|
INCLUDES = -I$(srcdir)/..
|
|
|
|
|
1999-03-01 18:57:07 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
libwiretap.a \
|
2004-03-24 21:27:44 +00:00
|
|
|
libwiretap.la \
|
2007-05-17 18:02:22 +00:00
|
|
|
libwiretap_generated.a \
|
|
|
|
libwiretap_generated.la \
|
1999-07-07 22:52:57 +00:00
|
|
|
*~
|
1998-11-12 00:06:47 +00:00
|
|
|
|
2005-07-10 08:04:27 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
$(GENERATED_FILES) \
|
2007-12-07 23:38:59 +00:00
|
|
|
Makefile.in
|
2004-03-06 21:46:27 +00:00
|
|
|
|
2007-05-17 18:02:22 +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
|
|
|
libwiretap_la_SOURCES = \
|
2004-07-27 00:36:31 +00:00
|
|
|
$(NONGENERATED_C_FILES) \
|
|
|
|
$(NONGENERATED_HEADER_FILES)
|
2007-05-17 18:02:22 +00:00
|
|
|
libwiretap_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
|
|
|
|
|
|
|
|
libwiretap_generated_la_SOURCES = \
|
|
|
|
$(GENERATED_C_FILES)
|
1999-07-15 15:33:52 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2003-04-02 20:21:45 +00:00
|
|
|
README.developer \
|
2004-07-26 20:46:54 +00:00
|
|
|
Makefile.common \
|
2001-04-18 21:34:22 +00:00
|
|
|
Makefile.nmake \
|
2004-07-26 20:46:54 +00:00
|
|
|
wtap.def \
|
2007-12-17 23:35:02 +00:00
|
|
|
$(GENERATOR_FILES) \
|
2004-07-26 20:46:54 +00:00
|
|
|
$(GENERATED_FILES)
|
1999-09-11 04:50:44 +00:00
|
|
|
|
2008-09-16 19:24:25 +00:00
|
|
|
libwiretap_la_LIBADD = libwiretap_generated.la $(GLIB_LIBS) ${top_builddir}/wsutil/libwsutil.la
|
2007-05-17 18:02:22 +00:00
|
|
|
|
2007-12-07 23:38:59 +00:00
|
|
|
RUNLEX = $(top_srcdir)/tools/runlex.sh
|
2007-08-04 02:13:52 +00:00
|
|
|
|
|
|
|
ascend-scanner_lex.h : ascend-scanner.c
|
|
|
|
|
|
|
|
k12text_lex.h : k12text.c
|
|
|
|
|
2007-09-24 06:58:23 +00:00
|
|
|
ascend-grammar.c ascend-grammar.h: ascend-grammar.y
|
2007-05-17 18:02:22 +00:00
|
|
|
@if [ -z "$(YACC)" ]; then \
|
|
|
|
echo "Neither bison nor byacc has been found"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
$(YACC) -d -p ascend -o ascend-grammar.c $(srcdir)/ascend-grammar.y
|
2008-07-02 01:44:30 +00:00
|
|
|
|
|
|
|
checkapi:
|
|
|
|
$(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
|