Makefile.in revision 214478
139297Sfenner#  Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
217680Spst# 	The Regents of the University of California.  All rights reserved.
317680Spst#
417680Spst#  Redistribution and use in source and binary forms, with or without
517680Spst#  modification, are permitted provided that: (1) source code distributions
617680Spst#  retain the above copyright notice and this paragraph in its entirety, (2)
717680Spst#  distributions including binary code include the above copyright notice and
817680Spst#  this paragraph in its entirety in the documentation or other materials
917680Spst#  provided with the distribution, and (3) all advertising materials mentioning
1017680Spst#  features or use of this software display the following acknowledgement:
1117680Spst#  ``This product includes software developed by the University of California,
1217680Spst#  Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
1317680Spst#  the University nor the names of its contributors may be used to endorse
1417680Spst#  or promote products derived from this software without specific prior
1517680Spst#  written permission.
1617680Spst#  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
1717680Spst#  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
1817680Spst#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1917680Spst#
20214478Srpaulo# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.325 2008-11-21 23:17:26 guy Exp $ (LBL)
2117680Spst
2217680Spst#
2317680Spst# Various configurable paths (remember to edit Makefile.in, not Makefile)
2417680Spst#
2517680Spst
2617680Spst# Top level hierarchy
2717680Spstprefix = @prefix@
2817680Spstexec_prefix = @exec_prefix@
2917680Spst# Pathname of directory to install the binary
3075115Sfennersbindir = @sbindir@
3117680Spst# Pathname of directory to install the man page
3275115Sfennermandir = @mandir@
3317680Spst
3426180Sfenner# VPATH
3526180Sfennersrcdir = @srcdir@
3626180SfennerVPATH = @srcdir@
3726180Sfenner
3817680Spst#
3917680Spst# You shouldn't need to edit anything below here.
4017680Spst#
4117680Spst
4217680SpstCC = @CC@
4339297SfennerPROG = tcpdump
4417680SpstCCOPT = @V_CCOPT@
4517680SpstINCLS = -I. @V_INCLS@
46146773SsamDEFS = @DEFS@ @CPPFLAGS@ @V_DEFS@
4717680Spst
4817680Spst# Standard CFLAGS
4917680SpstCFLAGS = $(CCOPT) $(DEFS) $(INCLS)
5017680Spst
5139297Sfenner# Standard LDFLAGS
5239297SfennerLDFLAGS = @LDFLAGS@
5339297Sfenner
5417680Spst# Standard LIBS
5517680SpstLIBS = @LIBS@
5617680Spst
5717680SpstINSTALL = @INSTALL@
5875115SfennerINSTALL_PROGRAM = @INSTALL_PROGRAM@
5975115SfennerINSTALL_DATA = @INSTALL_DATA@
60190207SrpauloRANLIB = @RANLIB@
6117680Spst
6217680Spst# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
6317680Spst# Also, gcc does not remove the .o before forking 'as', which can be a
6417680Spst# problem if you don't own the file but can write to the directory.
6517680Spst.c.o:
6617680Spst	@rm -f $@
6726180Sfenner	$(CC) $(CFLAGS) -c $(srcdir)/$*.c
6817680Spst
69190207SrpauloCSRC =	addrtoname.c af.c checksum.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \
70146773Ssam        nlpid.c l2vpn.c machdep.c parsenfsfh.c \
71127668Sbms	print-802_11.c print-ap1394.c print-ah.c print-arcnet.c \
72127668Sbms	print-aodv.c print-arp.c print-ascii.c print-atalk.c print-atm.c \
73190207Srpaulo	print-beep.c print-bfd.c print-bgp.c print-bootp.c print-bt.c \
74190207Srpaulo	print-cdp.c print-cfm.c print-chdlc.c print-cip.c print-cnfp.c \
75190207Srpaulo	print-dccp.c print-decnet.c \
76190207Srpaulo	print-domain.c print-dtp.c print-dvmrp.c print-enc.c print-egp.c \
77146773Ssam	print-eap.c print-eigrp.c\
78127668Sbms	print-esp.c print-ether.c print-fddi.c print-fr.c \
79127668Sbms	print-gre.c print-hsrp.c print-icmp.c print-igmp.c \
80214478Srpaulo	print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c print-ipnet.c \
81190207Srpaulo	print-ipx.c print-isoclns.c print-juniper.c print-krb.c \
82190207Srpaulo	print-l2tp.c print-lane.c print-ldp.c print-lldp.c print-llc.c \
83190207Srpaulo        print-lmp.c print-lspping.c print-lwapp.c \
84190207Srpaulo	print-lwres.c print-mobile.c print-mpcp.c print-mpls.c print-msdp.c \
85172683Smlaier	print-nfs.c print-ntp.c print-null.c print-olsr.c print-ospf.c \
86190207Srpaulo	print-pgm.c print-pim.c print-ppp.c print-pppoe.c print-pptp.c \
87190207Srpaulo	print-radius.c print-raw.c print-rip.c print-rrcp.c print-rsvp.c \
88190207Srpaulo	print-rx.c print-sctp.c print-sflow.c print-sip.c print-sl.c print-sll.c \
89162017Ssam	print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \
90146773Ssam	print-symantec.c print-syslog.c print-tcp.c print-telnet.c print-tftp.c \
91214478Srpaulo	print-timed.c print-token.c print-udld.c print-udp.c print-usb.c \
92214478Srpaulo	print-vjc.c print-vqp.c print-vrrp.c print-vtp.c print-forces.c \
93214478Srpaulo	print-wb.c print-zephyr.c signature.c setsignal.c tcpdump.c util.c
9475115Sfenner
95190207SrpauloLIBNETDISSECT_SRC=print-isakmp.c
96190207SrpauloLIBNETDISSECT_OBJ=$(LIBNETDISSECT_SRC:.c=.o)
97190207SrpauloLIBNETDISSECT=libnetdissect.a
98190207Srpaulo
9956893SfennerLOCALSRC = @LOCALSRC@
10017680SpstGENSRC = version.c
10156893SfennerLIBOBJS = @LIBOBJS@
10217680Spst
103190207SrpauloSRC =	$(CSRC) $(GENSRC) $(LOCALSRC) $(LIBNETDISSECT_SRC)
10417680Spst
10517680Spst# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
10617680Spst# hack the extra indirection
107190207SrpauloOBJ =	$(CSRC:.c=.o) $(GENSRC:.c=.o) $(LOCALSRC:.c=.o) $(LIBOBJS) $(LIBNETDISSECT_OBJ)
108190207SrpauloHDR = \
109190207Srpaulo	acconfig.h \
110190207Srpaulo	addrtoname.h \
111190207Srpaulo	af.h \
112190207Srpaulo	ah.h \
113190207Srpaulo	aodv.h \
114190207Srpaulo	appletalk.h \
115190207Srpaulo	arcnet.h \
116190207Srpaulo	atm.h \
117190207Srpaulo	atmuni31.h \
118190207Srpaulo	bootp.h \
119190207Srpaulo	bgp.h \
120190207Srpaulo	chdlc.h \
121190207Srpaulo	cpack.h \
122190207Srpaulo	dccp.h \
123190207Srpaulo	decnet.h \
124190207Srpaulo	decode_prefix.h \
125190207Srpaulo	enc.h \
126190207Srpaulo	esp.h \
127190207Srpaulo	ether.h \
128190207Srpaulo	ethertype.h \
129190207Srpaulo	extract.h \
130190207Srpaulo	fddi.h \
131214478Srpaulo	forces.h \
132190207Srpaulo	gmpls.h \
133190207Srpaulo	gmt2local.h \
134190207Srpaulo	icmp6.h \
135190207Srpaulo	ieee802_11.h \
136190207Srpaulo	ieee802_11_radio.h \
137190207Srpaulo	igrp.h \
138190207Srpaulo	interface.h \
139190207Srpaulo	interface.h \
140190207Srpaulo	ip.h \
141190207Srpaulo	ip6.h \
142190207Srpaulo	ipfc.h \
143214478Srpaulo	ipnet.h \
144190207Srpaulo	ipproto.h \
145190207Srpaulo	ipsec_doi.h \
146190207Srpaulo	ipx.h \
147190207Srpaulo	isakmp.h \
148190207Srpaulo	l2tp.h \
149190207Srpaulo	l2vpn.h \
150190207Srpaulo	lane.h \
151190207Srpaulo	llc.h \
152190207Srpaulo	machdep.h \
153190207Srpaulo	mib.h \
154190207Srpaulo	mpls.h \
155190207Srpaulo	nameser.h \
156190207Srpaulo	netbios.h \
157190207Srpaulo	netdissect.h \
158190207Srpaulo	nfs.h \
159190207Srpaulo	nfsfh.h \
160190207Srpaulo	nlpid.h \
161190207Srpaulo	ntp.h \
162190207Srpaulo	oakley.h \
163190207Srpaulo	ospf.h \
164190207Srpaulo	ospf6.h \
165190207Srpaulo	oui.h \
166190207Srpaulo	pcap-missing.h \
167190207Srpaulo	pmap_prot.h \
168190207Srpaulo	ppp.h \
169190207Srpaulo	route6d.h \
170190207Srpaulo	rpc_auth.h \
171190207Srpaulo	rpc_msg.h \
172190207Srpaulo	rx.h \
173190207Srpaulo	sctpConstants.h \
174190207Srpaulo	sctpHeader.h \
17598524Sfenner	setsignal.h \
176214478Srpaulo	signature.h \
177190207Srpaulo	slcompress.h \
178190207Srpaulo	slip.h \
179190207Srpaulo	sll.h \
180190207Srpaulo	smb.h \
181190207Srpaulo	tcp.h \
182190207Srpaulo	tcpdump-stdinc.h \
183190207Srpaulo	telnet.h \
184190207Srpaulo	tftp.h \
185190207Srpaulo	timed.h \
186190207Srpaulo	token.h \
187190207Srpaulo	udp.h
18817680Spst
18917680SpstTAGHDR = \
19017680Spst	/usr/include/arpa/tftp.h \
19126180Sfenner	/usr/include/net/if_arp.h \
19217680Spst	/usr/include/net/slip.h \
19317680Spst	/usr/include/netinet/if_ether.h \
19417680Spst	/usr/include/netinet/in.h \
19517680Spst	/usr/include/netinet/ip_icmp.h \
19617680Spst	/usr/include/netinet/tcp.h \
19717680Spst	/usr/include/netinet/udp.h \
19817680Spst	/usr/include/protocols/routed.h
19917680Spst
20017680SpstTAGFILES = $(SRC) $(HDR) $(TAGHDR)
20117680Spst
20239297SfennerCLEANFILES = $(PROG) $(OBJ) $(GENSRC)
20317680Spst
204190207SrpauloEXTRA_DIST = \
205190207Srpaulo	CHANGES \
206190207Srpaulo	CREDITS \
207190207Srpaulo	INSTALL.txt \
208190207Srpaulo	LICENSE \
209190207Srpaulo	Makefile.in \
210214478Srpaulo	Makefile-devel-adds \
211190207Srpaulo	README \
212190207Srpaulo	Readme.Win32 \
213190207Srpaulo	VERSION \
214190207Srpaulo	aclocal.m4 \
215190207Srpaulo	atime.awk \
216190207Srpaulo	bpf_dump.c \
217190207Srpaulo	config.guess \
218190207Srpaulo	config.h.in \
219190207Srpaulo	config.sub \
220190207Srpaulo	configure \
221190207Srpaulo	configure.in \
222190207Srpaulo	install-sh \
223190207Srpaulo	lbl/os-osf4.h \
224190207Srpaulo	lbl/os-solaris2.h \
225190207Srpaulo	lbl/os-sunos4.h \
226190207Srpaulo	lbl/os-ultrix4.h \
227190207Srpaulo	makemib \
228190207Srpaulo	missing/addrinfo.h \
229190207Srpaulo	missing/addrsize.h \
230190207Srpaulo	missing/bittypes.h \
231190207Srpaulo	missing/dlnames.c \
232190207Srpaulo	missing/datalinks.c \
233190207Srpaulo	missing/getnameinfo.c \
234190207Srpaulo	missing/inet_aton.c \
235190207Srpaulo	missing/inet_ntop.c \
236190207Srpaulo	missing/inet_pton.c \
237190207Srpaulo	missing/resolv6.h \
238190207Srpaulo	missing/resolv_ext.h \
239190207Srpaulo	missing/snprintf.c \
240190207Srpaulo	missing/sockstorage.h \
241190207Srpaulo	missing/strdup.c \
242190207Srpaulo	missing/strlcat.c \
243190207Srpaulo	missing/strlcpy.c \
244190207Srpaulo	missing/strsep.c \
245190207Srpaulo	mkdep \
246190207Srpaulo	packetdat.awk \
247190207Srpaulo	pcap_dump_ftell.c \
248190207Srpaulo	print-dhcp6.c \
249190207Srpaulo	print-frag6.c \
250190207Srpaulo	print-icmp6.c \
251190207Srpaulo	print-ip6.c \
252190207Srpaulo	print-ip6opts.c \
253190207Srpaulo	print-mobility.c \
254190207Srpaulo	print-netbios.c \
255190207Srpaulo	print-ospf6.c \
256190207Srpaulo	print-pflog.c \
257190207Srpaulo	print-ripng.c \
258190207Srpaulo	print-rt6.c \
259190207Srpaulo	print-smb.c \
260190207Srpaulo	send-ack.awk \
261190207Srpaulo	smbutil.c \
262190207Srpaulo	stime.awk \
263190207Srpaulo	strcasecmp.c \
264214478Srpaulo	tcpdump.1.in \
265214478Srpaulo	tests/02-sunrise-sunset-esp.puu \
266214478Srpaulo	tests/08-sunrise-sunset-aes.puu \
267214478Srpaulo	tests/08-sunrise-sunset-esp2.puu \
268214478Srpaulo	tests/TESTLIST \
269214478Srpaulo	tests/TESTonce \
270214478Srpaulo	tests/TESTrun.sh \
271214478Srpaulo	tests/bgp-infinite-loop.pcap \
272214478Srpaulo	tests/bgp_vpn_attrset.out \
273214478Srpaulo	tests/bgp_vpn_attrset.pcap \
274214478Srpaulo	tests/chdlc-slarp-short.pcap \
275214478Srpaulo	tests/chdlc-slarp.pcap \
276214478Srpaulo	tests/dio.out \
277214478Srpaulo	tests/dio.pcap \
278214478Srpaulo	tests/e1000g.out \
279214478Srpaulo	tests/e1000g.pcap \
280214478Srpaulo	tests/eapon1.gdbinit \
281214478Srpaulo	tests/eapon1.out \
282214478Srpaulo	tests/eapon1.puu \
283214478Srpaulo	tests/eapon2.puu \
284214478Srpaulo	tests/esp-secrets.txt \
285214478Srpaulo	tests/esp0.out \
286214478Srpaulo	tests/esp1.gdbinit \
287214478Srpaulo	tests/esp1.out \
288214478Srpaulo	tests/esp2.gdbinit \
289214478Srpaulo	tests/esp2.out \
290214478Srpaulo	tests/esp3.gdbinit \
291214478Srpaulo	tests/esp4.gdbinit \
292214478Srpaulo	tests/esp5.gdbinit \
293214478Srpaulo	tests/esp5.out \
294214478Srpaulo	tests/espudp1.out \
295214478Srpaulo	tests/espudp1.puu \
296214478Srpaulo	tests/forces1.out \
297214478Srpaulo	tests/forces1.pcap \
298214478Srpaulo	tests/forces1vvv.out \
299214478Srpaulo	tests/forces1vvvv.out \
300214478Srpaulo	tests/forces2.out \
301214478Srpaulo	tests/forces2.pcap \
302214478Srpaulo	tests/forces2v.out \
303214478Srpaulo	tests/forces2vv.out \
304214478Srpaulo	tests/ikev2.puu \
305214478Srpaulo	tests/ikev2four.out \
306214478Srpaulo	tests/ikev2four.puu \
307214478Srpaulo	tests/ikev2fourv.out \
308214478Srpaulo	tests/ikev2fourv4.out \
309214478Srpaulo	tests/ikev2pI2-secrets.txt \
310214478Srpaulo	tests/ikev2pI2.out \
311214478Srpaulo	tests/ikev2pI2.puu \
312214478Srpaulo	tests/isakmp-delete-segfault.puu \
313214478Srpaulo	tests/isakmp-identification-segfault.puu \
314214478Srpaulo	tests/isakmp-pointer-loop.puu \
315214478Srpaulo	tests/isakmp1.out \
316214478Srpaulo	tests/isakmp2.out \
317214478Srpaulo	tests/isakmp3.out \
318214478Srpaulo	tests/isakmp4.out \
319214478Srpaulo	tests/isakmp4500.puu \
320214478Srpaulo	tests/isis-infinite-loop.pcap \
321214478Srpaulo	tests/ldp-infinite-loop.pcap \
322214478Srpaulo	tests/lmp.out \
323214478Srpaulo	tests/lmp.puu \
324214478Srpaulo	tests/lmp.sh \
325214478Srpaulo	tests/lspping-fec-ldp.pcap \
326214478Srpaulo	tests/lspping-fec-rsvp.pcap \
327214478Srpaulo	tests/mpls-ldp-hello.out \
328214478Srpaulo	tests/mpls-ldp-hello.puu \
329214478Srpaulo	tests/mpls-traceroute.pcap \
330214478Srpaulo	tests/ospf-gmpls.out \
331214478Srpaulo	tests/ospf-gmpls.puu \
332214478Srpaulo	tests/print-A.out \
333214478Srpaulo	tests/print-AA.out \
334214478Srpaulo	tests/print-capX.out \
335214478Srpaulo	tests/print-capXX.out \
336214478Srpaulo	tests/print-flags.puu \
337214478Srpaulo	tests/print-flags.sh \
338214478Srpaulo	tests/print-x.out \
339214478Srpaulo	tests/print-xx.out \
340214478Srpaulo	tests/rsvp-infinite-loop.pcap \
341190207Srpaulo	vfprintf.c \
342190207Srpaulo	win32/Include/Arpa/tftp.h \
343190207Srpaulo	win32/Include/errno.h \
344190207Srpaulo	win32/Include/getopt.h \
345190207Srpaulo	win32/Include/inetprivate.h \
346190207Srpaulo	win32/Include/telnet.h \
347190207Srpaulo	win32/Include/w32_fzs.h \
348190207Srpaulo	win32/Include/Netinet/in_systm.h \
349190207Srpaulo	win32/Include/Netinet/ip.h \
350190207Srpaulo	win32/Src/getopt.c \
351190207Srpaulo	win32/prj/GNUmakefile \
352190207Srpaulo	win32/prj/WinDump.dsp \
353190207Srpaulo	win32/prj/WinDump.dsw
354190207Srpaulo
35539297Sfennerall: $(PROG)
35639297Sfenner
35739297Sfenner$(PROG): $(OBJ) @V_PCAPDEP@
35817680Spst	@rm -f $@
35939297Sfenner	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
36017680Spst
361190207Srpaulo$(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
362190207Srpaulo	@rm -f $@
363190207Srpaulo	$(AR) cr $@ $(LIBNETDISSECT_OBJ) 
364190207Srpaulo	$(RANLIB) $@
365190207Srpaulo
366127668Sbmsdatalinks.o: $(srcdir)/missing/datalinks.c
367127668Sbms	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c
368127668Sbmsdlnames.o: $(srcdir)/missing/dlnames.c
369127668Sbms	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/dlnames.c
37056893Sfennergetnameinfo.o: $(srcdir)/missing/getnameinfo.c
37156893Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/getnameinfo.c
37256893Sfennergetaddrinfo.o: $(srcdir)/missing/getaddrinfo.c
37356893Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/getaddrinfo.c
37456893Sfennerinet_pton.o: $(srcdir)/missing/inet_pton.c
37556893Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_pton.c
37656893Sfennerinet_ntop.o: $(srcdir)/missing/inet_ntop.c
37756893Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_ntop.c
37856893Sfennerinet_aton.o: $(srcdir)/missing/inet_aton.c
37956893Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_aton.c
38075115Sfennersnprintf.o: $(srcdir)/missing/snprintf.c
38175115Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
38275115Sfennerstrlcat.o: $(srcdir)/missing/strlcat.c
38375115Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strlcat.c
38475115Sfennerstrlcpy.o: $(srcdir)/missing/strlcpy.c
38575115Sfenner	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strlcpy.c
386127668Sbmsstrsep.o: $(srcdir)/missing/strsep.c
387127668Sbms	$(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strsep.c
38856893Sfenner
38917680Spstversion.o: version.c
39056893Sfenner	$(CC) $(CFLAGS) -c version.c
39156893Sfenner
39226180Sfennerversion.c: $(srcdir)/VERSION
39317680Spst	@rm -f $@
394214478Srpaulo	if grep GIT ${srcdir}/VERSION >/dev/null; then \
395190207Srpaulo		read ver <${srcdir}/VERSION; \
396190207Srpaulo		echo $$ver | tr -d '\012'; \
397190207Srpaulo		date +_%Y_%m_%d; \
398190207Srpaulo	else \
399190207Srpaulo		cat ${srcdir}/VERSION; \
400214478Srpaulo	fi | sed -e 's/.*/const char version[] = "&";/' > $@
40117680Spst
402190207Srpauloinstall: all
40375115Sfenner	[ -d $(DESTDIR)$(sbindir) ] || \
40475115Sfenner	    (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir))
40575115Sfenner	$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
406190207Srpaulo	$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG).`cat ${srcdir}/VERSION`
40775115Sfenner	[ -d $(DESTDIR)$(mandir)/man1 ] || \
40875115Sfenner	    (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1)
409214478Srpaulo	$(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1
41017680Spst
41175115Sfenneruninstall:
41275115Sfenner	rm -f $(DESTDIR)$(sbindir)/$(PROG)
41375115Sfenner	rm -f $(DESTDIR)$(mandir)/man1/$(PROG).1
41417680Spst
41575115Sfennerlint: $(GENSRC)
41617680Spst	lint -hbxn $(SRC) | \
41717680Spst	    grep -v 'struct/union .* never defined' | \
41817680Spst	    grep -v 'possible pointer alignment problem'
41917680Spst
42017680Spstclean:
421214478Srpaulo	rm -f $(CLEANFILES) $(PROG)-`cat VERSION`.tar.gz
42217680Spst
42317680Spstdistclean:
42417680Spst	rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
425214478Srpaulo	    config.h gnuc.h os-proto.h stamp-h stamp-h.in $(PROG).1
42617680Spst
427214478Srpaulocheck: tcpdump
428214478Srpaulo	uudecode --help || (echo "No uudecode program found, not running tests"; echo "apt-get/rpm install sharutils?"; exit 1)
429214478Srpaulo	(cd tests && ./TESTrun.sh)
430214478Srpaulo
43139297Sfennertags: $(TAGFILES)
43217680Spst	ctags -wtd $(TAGFILES)
43317680Spst
434190207SrpauloTAGS: $(TAGFILES)
435190207Srpaulo	etags $(TAGFILES)
436190207Srpaulo
437172683Smlaierreleasetar:
43839297Sfenner	@cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \
439190207Srpaulo	   mkdir $$name; \
440190207Srpaulo	   tar cf - $(CSRC) $(HDR) $(LIBNETDISSECT_SRC) $(EXTRA_DIST) | (cd $$name; tar xf -); \
441190207Srpaulo	   tar -c -z -f $$name.tar.gz $$name; \
442190207Srpaulo	   rm -rf $$name
44317680Spst
44475115Sfennerdepend: $(GENSRC)
44575115Sfenner	${srcdir}/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)
446