c97626b103efe918c091047718a1279c2c3b9a20
[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: Makefile.am,v 1.14 2000/11/20 16:18:08 gram Exp $
6 #
7 # Ethereal - Network traffic analyzer
8 # By Gerald Combs <gerald@zing.org>
9 # Copyright 1998 Gerald Combs
10 #
11
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
16
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
21
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
26
27 # Any POSIX-compatible YACC should honor the -p flag
28 YFLAGS=-d -p dfilter_
29
30 # EPAN will eventually be a shared library. While I move source code around,
31 # however, it is an archive library.
32
33 ACLOCAL_AMFLAGS = `../aclocal-flags`
34
35 noinst_LIBRARIES = libethereal.a
36
37 INCLUDES = -I$(srcdir)/..
38
39 libethereal_a_SOURCES = \
40         bitswap.c               \
41         bitswap.h               \
42         conversation.c          \
43         conversation.h          \
44         dfilter-int.h           \
45         dfilter-grammar.y       \
46         dfilter-scanner.l       \
47         dfilter.c               \
48         dfilter.h               \
49         epan.c                  \
50         epan.h                  \
51         except.c                \
52         except.h                \
53         exceptions.h            \
54         filesystem.c            \
55         filesystem.h            \
56         ipv4.c                  \
57         ipv4.h                  \
58         packet.c                \
59         packet.h                \
60         pint.h                  \
61         plugins.c               \
62         plugins.h               \
63         proto.c                 \
64         proto.h                 \
65         resolv.c                \
66         resolv.h                \
67         strutil.c               \
68         strutil.h               \
69         tvbuff.c                \
70         tvbuff.h
71
72 EXTRA_libethereal_a_SOURCES =   \
73         dfilter-grammar.c       \
74         dfilter-grammar.h       \
75         dfilter-scanner.c       \
76         inet_aton.c             \
77         inet_pton.c             \
78         inet_ntop.c             \
79         inet_aton.h             \
80         inet_v6defs.h
81
82 EXTRA_DIST = \
83         config.h.win32          \
84         Makefile.nmake          \
85         tvbtest.c
86
87 CLEANFILES = \
88         libethereal.a   \
89         *~
90
91 #
92 # Add the object files for missing routines, if any.
93 #
94 libethereal_a_LIBADD = @INET_ATON_O@ @INET_PTON_O@ @INET_NTOP_O@
95 libethereal_a_DEPENDENCIES = @INET_ATON_O@ @INET_PTON_O@ @INET_NTOP_O@
96
97 dfilter-scanner.c : dfilter-scanner.l
98         $(LEX) -Pdfilter_ -odfilter-scanner.c $(srcdir)/dfilter-scanner.l
99
100 tvbtest: tvbtest.o tvbuff.o except.o strutil.o
101         $(LINK) -o tvbtest tvbtest.o tvbuff.o except.o strutil.o `glib-config --libs`