Uwe Girlich's patch to handle OSes (e.g., SINIX) that lack
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Ethereal
3 #
4 # $Id: Makefile.am,v 1.77 1999/10/01 21:41:38 guy Exp $
5 #
6 # Ethereal - Network traffic analyzer
7 # By Gerald Combs <gerald@zing.org>
8 # Copyright 1998 Gerald Combs
9 #
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 bin_PROGRAMS = ethereal
26
27 man_MANS = ethereal.1
28
29 sysconf_DATA = manuf
30
31 # Any POSIX-compatible YACC should honor the -p flag
32 YFLAGS=-d -p dfilter_
33
34 ethereal_SOURCES = \
35         alignment.h    \
36         capture.c      \
37         capture.h      \
38         colors.c       \
39         colors.h       \
40         column.c       \
41         column.h       \
42         dfilter-int.h  \
43         dfilter-grammar.y \
44         dfilter-scanner.l \
45         dfilter.c      \
46         dfilter.h      \
47         display.c      \
48         display.h      \
49         ethertype.c    \
50         etypes.h       \
51         file.c         \
52         file.h         \
53         follow.c       \
54         follow.h       \
55         globals.h      \
56         packet-aarp.c  \
57         packet-arp.c   \
58         packet-ascend.c\
59         packet-atalk.c \
60         packet-atm.c   \
61         packet-bootp.c \
62         packet-cdp.c   \
63         packet-clip.c  \
64         packet-data.c  \
65         packet-dns.c   \
66         packet-dns.h   \
67         packet-eth.c   \
68         packet-fddi.c  \
69         packet-ftp.c   \
70         packet-giop.c  \
71         packet-gre.c   \
72         packet-http.c  \
73         packet-icmpv6.c\
74         packet-icp.c   \
75         packet-ip.c    \
76         packet-ip.h    \
77         packet-ipp.c   \
78         packet-ipsec.c \
79         packet-ipv6.c  \
80         packet-ipv6.h  \
81         packet-ipx.c   \
82         packet-ipx.h   \
83         packet-isakmp.c\
84         packet-lapb.c  \
85         packet-llc.c   \
86         packet-lpd.c   \
87         packet-nbipx.c \
88         packet-nbns.c  \
89         packet-ncp.c   \
90         packet-ncp.h   \
91         packet-netbios.c \
92         packet-netbios.h \
93         packet-nntp.c  \
94         packet-null.c  \
95         packet-osi.c   \
96         packet-ospf.c  \
97         packet-ospf.h  \
98         packet-pop.c   \
99         packet-ppp.c   \
100         packet-pppoe.c \
101         packet-pptp.c  \
102         packet-radius.c\
103         packet-raw.c   \
104         packet-rip.c   \
105         packet-rip.h   \
106         packet-rsvp.c  \
107         packet-rsvp.h  \
108         packet-rtsp.c  \
109         packet-sdp.c   \
110         packet-smb.c   \
111         packet-tcp.c   \
112         packet-telnet.c\
113         packet-tftp.c  \
114         packet-tr.c    \
115         packet-trmac.c \
116         packet-udp.c   \
117         packet-vines.c \
118         packet-vines.h \
119         packet-x25.c   \
120         packet.c       \
121         packet.h       \
122         prefs.c        \
123         prefs.h        \
124         print.c        \
125         print.h        \
126         proto.c        \
127         proto.h        \
128         ps.c           \
129         ps.h           \
130         resolv.c       \
131         resolv.h       \
132         smb.h          \
133         summary.c      \
134         summary.h      \
135         timestamp.h    \
136         util.c         \
137         util.h         \
138         xdlc.c         \
139         xdlc.h
140
141 EXTRA_ethereal_SOURCES = \
142         dfilter-grammar.c \
143         dfilter-grammar.h \
144         dfilter-scanner.c \
145         packet-snmp.c   \
146         snprintf.c      \
147         snprintf.h      \
148         snprintf-imp.h  \
149         strerror.c      \
150         strerror.h      \
151         strncasecmp.c   \
152         mkstemp.c
153
154 ethereal_DEPENDENCIES = @SNMP_O@ @SNPRINTF_O@ @STRERROR_O@ \
155 @STRNCASECMP_O@ @MKSTEMP_O@ wiretap/libwiretap.a gtk/libui.a
156 ethereal_LDADD = @SNMP_O@ @SNPRINTF_O@ @STRERROR_O@ \
157 @STRNCASECMP_O@ @MKSTEMP_O@ wiretap/libwiretap.a gtk/libui.a @SNMP_A@
158
159 ps.c: print.ps rdps
160         ./rdps $(srcdir)/print.ps ps.c
161
162 rdps: rdps.c
163         $(CC) -o rdps $(srcdir)/rdps.c
164
165 randpkt.o: randpkt.c
166         $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
167
168 randpkt: randpkt.o wiretap/libwiretap.a
169         $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
170
171 DISTCLEANFILES =        \
172         rdps            \
173         ps.c            \
174         *~
175
176 EXTRA_DIST = \
177         config.h.win32          \
178         doc/Makefile.in         \
179         doc/Makefile.am         \
180         doc/dfilter2pod.in      \
181         doc/ethereal.pod.template \
182         doc/randpkt.txt         \
183         ethereal.spec.in         \
184         image/icon-excl.xpm     \
185         image/icon-ethereal.xpm \
186         Makefile.nmake          \
187         manuf                   \
188         print.ps                \
189         README.irix             \
190         README.linux            \
191         README.tru64            \
192         README.win32            \
193         randpkt.c               \
194         rdps.c
195
196 SUBDIRS = wiretap gtk @ethereal_SUBDIRS@
197
198 ethereal.1: ethereal doc/ethereal.pod.template
199         (cd doc ; \
200         $(MAKE) ../ethereal.1 )
201
202 dfilter-scanner.c : dfilter-scanner.l
203         $(LEX) -Pdfilter_ -t $(srcdir)/dfilter-scanner.l > dfilter-scanner.c