Get rid of the fd member of a wth structure; the FILE_T's in that
[obnox/wireshark/wip.git] / wiretap / Makefile.am
1 # Makefile.am
2 # Automake file for Wiretap
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
24 include ../Makefile.am.inc
25
26 ACLOCAL_AMFLAGS = `../aclocal-flags`
27
28 include Makefile.common
29
30 noinst_LTLIBRARIES = libwiretap_generated.la
31 lib_LTLIBRARIES = libwiretap.la
32 libwiretap_la_LDFLAGS = -version-info 0:1:0 -export-symbols wtap.sym @LDFLAGS_SHAREDLIB@
33
34 if HAVE_WARNINGS_AS_ERRORS
35 AM_NON_GENERATED_CFLAGS = -Werror
36 endif
37
38 INCLUDES = -I$(srcdir)/..
39
40 CLEANFILES = \
41         libwiretap.a            \
42         libwiretap.la           \
43         libwiretap_generated.a  \
44         libwiretap_generated.la \
45         wtap.sym                \
46         *~
47
48 MAINTAINERCLEANFILES = \
49         $(GENERATED_FILES)      \
50         Makefile.in
51
52 #Since code generated by lex may trigger gcc warnings, we are now generating two
53 #libraries.  A single library is generated with the lex code without the barrier
54 #"stop on warning". An other library is generated from the remaining source
55 #files with the "stop on warning" barrier.
56 libwiretap_la_SOURCES = \
57         $(NONGENERATED_C_FILES) \
58         $(NONGENERATED_HEADER_FILES)
59 libwiretap_la_CFLAGS = $(AM_NON_GENERATED_CFLAGS)
60
61 libwiretap_generated_la_SOURCES = \
62         $(GENERATED_C_FILES)
63
64 EXTRA_DIST = \
65         README.developer        \
66         Makefile.common         \
67         Makefile.nmake          \
68         libwiretap.vcproj       \
69         wtap.def                \
70         $(GENERATOR_FILES)      \
71         $(GENERATED_FILES)
72
73 libwiretap_la_LIBADD = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la $(GLIB_LIBS)
74 libwiretap_la_DEPENDENCIES = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la wtap.sym
75
76 RUNLEX = $(top_srcdir)/tools/runlex.sh
77
78 ascend_scanner_lex.h : ascend_scanner.c
79
80 k12text_lex.h : k12text.c
81
82 ascend.c ascend.h: ascend.y
83         @if [ -z "$(YACC)" ]; then \
84                 echo "Neither bison nor byacc has been found"; \
85                 exit 1; \
86         fi
87         $(YACC) -d -p ascend -o ascend.c $(srcdir)/ascend.y
88
89 checkapi:
90 ## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
91 ##      $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
92         $(PERL) ../tools/checkAPIs.pl -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)