Move the contents of airpdcap to epan/crypt. Try to fix the current
[obnox/wireshark/wip.git] / epan / Makefile.am
1 # Makefile.am
2 # Automake file for the EPAN library
3 # (Ethereal Protocol ANalyzer Library)
4 #
5 # $Id$
6 #
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
9 # Copyright 1998 Gerald Combs
10
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
15
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
25
26 if HAVE_LIBLUA
27 wslua_lib = wslua/libwslua.la
28 wslua_dir = wslua
29 wslua_dist_dir = 
30 else            # HAVE_LIBLUA
31 wslua_lib =
32 wslua_dir =
33 wslua_dist_dir = wslua
34 endif           # HAVE_LIBLUA
35
36
37 SUBDIRS = crypt ftypes dfilter dissectors $(wslua_dir)
38
39 DIST_SUBDIRS = $(SUBDIRS) $(wslua_dist_dir)
40
41 # EPAN will eventually be a shared library. While I move source code around,
42 # however, it is an archive library.
43
44 ACLOCAL_AMFLAGS = `../aclocal-flags`
45
46 lib_LTLIBRARIES = libwireshark.la
47 libwireshark_la_LDFLAGS = -version-info 0:1:0
48
49 include Makefile.common
50
51 INCLUDES = -I$(srcdir)/.. -I$(srcdir)/$(LEMON) @LUA_INCLUDES@ \
52         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS)
53
54 libwireshark_la_SOURCES = \
55         $(LIBWIRESHARK_SRC)     \
56         $(LIBWIRESHARK_INCLUDES)
57
58 EXTRA_libwireshark_la_SOURCES = \
59         g_ascii_strtoull.c      \
60         g_ascii_strtoull.h      \
61         inet_aton.c             \
62         inet_pton.c             \
63         inet_ntop.c             \
64         inet_aton.h             \
65         inet_v6defs.h
66
67 EXTRA_DIST = \
68         dtd_grammar.lemon \
69         dtd_parse.l \
70         dtd_preparse.l \
71         enterprise-numbers  \
72         libwireshark.def        \
73         Makefile.common \
74         Makefile.nmake  \
75         make-sminmpec.pl \
76         radius_dict.l   \
77         tvbtest.c       \
78         exntest.c       \
79         doxygen.cfg.in
80
81 CLEANFILES = \
82         libwireshark.a          \
83         libwireshark.la         \
84         *~
85
86 DISTCLEANFILES = \
87         dtd_grammar.out         \
88         dtd_grammar.c           \
89         dtd_grammar.h           \
90         dtd_parse.c             \
91         dtd_preparse.c          \
92         radius_dict.c
93         
94
95 MAINTAINERCLEANFILES = \
96         Makefile.in             \
97         sminmpec.c
98
99
100 #
101 # Add the object files for missing routines, if any.
102 #
103 libwireshark_la_LIBADD = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la crypt/libairpdcap.a $(wslua_lib) @ADNS_LIBS@ @LIBGNUTLS_LIBS@ @LIBICONV@ @KRB5_LIBS@ @SNMP_LIBS@ @SSL_LIBS@ -lm
104 libwireshark_la_DEPENDENCIES = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la crypt/libairpdcap.a $(wslua_lib)
105
106 tvbtest: tvbtest.o tvbuff.o except.o strutil.o emem.o
107         $(LINK) $^ $(GLIB_LIBS) -lz
108
109 exntest: exntest.o except.o
110         $(LINK) $^ $(GLIB_LIBS)
111
112 radius_dict.c: radius_dict.l
113         $(LEX) $^
114         
115 dtd_parse.c : dtd_parse.l
116         $(LEX) -odtd_parse.c $(srcdir)/dtd_parse.l
117
118 dtd_preparse.c : dtd_preparse.l
119         $(LEX) -odtd_preparse.c $(srcdir)/dtd_preparse.l
120
121 dtd_grammar.h: dtd_grammar.c
122
123 LEMON=../tools/lemon
124
125 dtd_grammar.c: dtd_grammar.lemon $(LEMON)/lemon$(EXEEXT)
126         $(LEMON)/lemon$(EXEEXT) t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/dtd_grammar.lemon
127         
128 tvbtest.o exntest.o: exceptions.h
129
130 sminmpec.c: enterprise-numbers make-sminmpec.pl
131         $(PERL) $(srcdir)/make-sminmpec.pl $(srcdir)/enterprise-numbers sminmpec.c
132
133 if HAVE_PLUGINS
134
135 if ENABLE_STATIC
136
137 plugin_src = \
138         ../plugins/artnet/packet-artnet.c \
139         ../plugins/asn1/packet-asn1.c \
140         ../plugins/docsis/packet-bpkmattr.c \
141         ../plugins/docsis/packet-bpkmreq.c \
142         ../plugins/docsis/packet-bpkmrsp.c \
143         ../plugins/docsis/packet-docsis.c \
144         ../plugins/docsis/packet-dsaack.c \
145         ../plugins/docsis/packet-dsareq.c \
146         ../plugins/docsis/packet-dsarsp.c \
147         ../plugins/docsis/packet-dscack.c \
148         ../plugins/docsis/packet-dscreq.c \
149         ../plugins/docsis/packet-dscrsp.c \
150         ../plugins/docsis/packet-dsdreq.c \
151         ../plugins/docsis/packet-dsdrsp.c \
152         ../plugins/docsis/packet-intrngreq.c \
153         ../plugins/docsis/packet-macmgmt.c \
154         ../plugins/docsis/packet-map.c \
155         ../plugins/docsis/packet-regack.c \
156         ../plugins/docsis/packet-regreq.c \
157         ../plugins/docsis/packet-regrsp.c \
158         ../plugins/docsis/packet-rngreq.c \
159         ../plugins/docsis/packet-rngrsp.c \
160         ../plugins/docsis/packet-tlv.c \
161         ../plugins/docsis/packet-type29ucd.c \
162         ../plugins/docsis/packet-uccreq.c \
163         ../plugins/docsis/packet-uccrsp.c \
164         ../plugins/docsis/packet-ucd.c \
165         ../plugins/enttec/packet-enttec.c \
166         ../plugins/giop/packet-cosnaming.c \
167         ../plugins/giop/packet-coseventcomm.c \
168         ../plugins/gryphon/packet-gryphon.c \
169         ../plugins/irda/packet-irda.c \
170         ../plugins/lwres/packet-lwres.c \
171         ../plugins/megaco/packet-megaco.c \
172         ../plugins/mgcp/packet-mgcp.c \
173         ../plugins/pcli/packet-pcli.c \
174         ../plugins/rdm/packet-rdm.c \
175         ../plugins/rtnet/packet-rtnet.c \
176         ../plugins/v5ua/packet-v5ua.c
177
178 else            # ENABLE_STATIC
179
180 plugin_src =
181
182 endif           # ENABLE_STATIC
183
184 else            # HAVE_PLUGINS
185 plugin_src =
186
187 endif           # HAVE_PLUGINS
188
189 doxygen:
190 if HAVE_DOXYGEN
191         $(DOXYGEN) doxygen.cfg
192 endif           # HAVE_DOXYGEN
193