da3561ecce617bc600f393e99ca55368d7f32818
[metze/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 # Ethereal - Network traffic analyzer
8 # By Gerald Combs <gerald@ethereal.com>
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 SUBDIRS = ftypes dfilter dissectors
26
27 # EPAN will eventually be a shared library. While I move source code around,
28 # however, it is an archive library.
29
30 ACLOCAL_AMFLAGS = `../aclocal-flags`
31
32 lib_LTLIBRARIES = libethereal.la
33 libethereal_la_LDFLAGS = -version-info 0:1:0
34
35 include Makefile.common
36
37 INCLUDES = -I$(srcdir)/.. -I$(srcdir)/$(LEMON)
38
39 libethereal_la_SOURCES = \
40         $(LIBETHEREAL_SRC)      \
41         $(LIBETHEREAL_INCLUDES)
42
43 EXTRA_libethereal_la_SOURCES =  \
44         g_ascii_strtoull.c      \
45         g_ascii_strtoull.h      \
46         inet_aton.c             \
47         inet_pton.c             \
48         inet_ntop.c             \
49         inet_aton.h             \
50         inet_v6defs.h
51
52 EXTRA_DIST = \
53         dtd_grammar.lemon \
54         dtd_parse.l \
55         dtd_preparse.l \
56         enterprise-numbers  \
57         libethereal.def \
58         Makefile.common \
59         Makefile.nmake  \
60         make-sminmpec.pl \
61         radius_dict.l   \
62         tvbtest.c       \
63         exntest.c       \
64         doxygen.cfg.in
65
66 CLEANFILES = \
67         libethereal.a           \
68         libethereal.la          \
69         *~
70
71 DISTCLEANFILES = \
72         dtd_grammar.out         \
73         dtd_grammar.c           \
74         dtd_grammar.h           \
75         dtd_parse.c             \
76         dtd_preparse.c          \
77         radius_dict.c
78         
79
80 MAINTAINERCLEANFILES = \
81         Makefile.in             \
82         sminmpec.c
83
84 #
85 # Add the object files for missing routines, if any.
86 #
87 libethereal_la_LIBADD = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la @ADNS_LIBS@ @LIBGNUTLS_LIBS@ @KRB5_LIBS@ @SNMP_LIBS@ @SSL_LIBS@ -lm
88 libethereal_la_DEPENDENCIES = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la
89
90 tvbtest: tvbtest.o tvbuff.o except.o strutil.o
91         $(LINK) $^ $(GLIB_LIBS) -lz
92
93 exntest: exntest.o except.o
94         $(LINK) $^ $(GLIB_LIBS)
95
96 radius_dict.c: radius_dict.l
97         $(LEX) $^
98         
99 dtd_parse.c : dtd_parse.l
100         $(LEX) -odtd_parse.c $(srcdir)/dtd_parse.l
101
102 dtd_preparse.c : dtd_preparse.l
103         $(LEX) -odtd_preparse.c $(srcdir)/dtd_preparse.l
104
105 dtd_grammar.h: dtd_grammar.c
106
107 LEMON=../tools/lemon
108
109 dtd_grammar.c: dtd_grammar.lemon $(LEMON)/lemon
110         $(LEMON)/lemon t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/dtd_grammar.lemon
111         
112 tvbtest.o exntest.o: exceptions.h
113
114 sminmpec.c: enterprise-numbers make-sminmpec.pl
115         $(PERL) $(srcdir)/make-sminmpec.pl $(srcdir)/enterprise-numbers sminmpec.c
116
117 if HAVE_PLUGINS
118
119 if ENABLE_STATIC
120
121 plugin_src = \
122         ../plugins/acn/packet-acn.c \
123         ../plugins/artnet/packet-artnet.c \
124         ../plugins/asn1/packet-asn1.c \
125         ../plugins/docsis/packet-bpkmattr.c \
126         ../plugins/docsis/packet-bpkmreq.c \
127         ../plugins/docsis/packet-bpkmrsp.c \
128         ../plugins/docsis/packet-docsis.c \
129         ../plugins/docsis/packet-dsaack.c \
130         ../plugins/docsis/packet-dsareq.c \
131         ../plugins/docsis/packet-dsarsp.c \
132         ../plugins/docsis/packet-dscack.c \
133         ../plugins/docsis/packet-dscreq.c \
134         ../plugins/docsis/packet-dscrsp.c \
135         ../plugins/docsis/packet-dsdreq.c \
136         ../plugins/docsis/packet-dsdrsp.c \
137         ../plugins/docsis/packet-intrngreq.c \
138         ../plugins/docsis/packet-macmgmt.c \
139         ../plugins/docsis/packet-map.c \
140         ../plugins/docsis/packet-regack.c \
141         ../plugins/docsis/packet-regreq.c \
142         ../plugins/docsis/packet-regrsp.c \
143         ../plugins/docsis/packet-rngreq.c \
144         ../plugins/docsis/packet-rngrsp.c \
145         ../plugins/docsis/packet-tlv.c \
146         ../plugins/docsis/packet-type29ucd.c \
147         ../plugins/docsis/packet-uccreq.c \
148         ../plugins/docsis/packet-uccrsp.c \
149         ../plugins/docsis/packet-ucd.c \
150         ../plugins/enttec/packet-enttec.c \
151         ../plugins/giop/packet-cosnaming.c \
152         ../plugins/giop/packet-coseventcomm.c \
153         ../plugins/gryphon/packet-gryphon.c \
154         ../plugins/irda/packet-irda.c \
155         ../plugins/lwres/packet-lwres.c \
156         ../plugins/megaco/packet-megaco.c \
157         ../plugins/mgcp/packet-mgcp.c \
158         ../plugins/pcli/packet-pcli.c \
159         ../plugins/rdm/packet-rdm.c \
160         ../plugins/rtnet/packet-rtnet.c \
161         ../plugins/v5ua/packet-v5ua.c
162
163 else            # ENABLE_STATIC
164
165 plugin_src =
166
167 endif           # ENABLE_STATIC
168
169 else            # HAVE_PLUGINS
170 plugin_src =
171
172 endif           # HAVE_PLUGINS
173
174 doxygen:
175 if HAVE_DOXYGEN
176         $(DOXYGEN) doxygen.cfg
177 endif           # HAVE_DOXYGEN
178