Makefile.in revision 236192
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@
29236192Sdelphijdatarootdir = @datarootdir@
3017680Spst# Pathname of directory to install the binary
3175115Sfennersbindir = @sbindir@
3217680Spst# Pathname of directory to install the man page
3375115Sfennermandir = @mandir@
3417680Spst
3526180Sfenner# VPATH
3626180Sfennersrcdir = @srcdir@
3726180SfennerVPATH = @srcdir@
3826180Sfenner
3917680Spst#
4017680Spst# You shouldn't need to edit anything below here.
4117680Spst#
4217680Spst
4317680SpstCC = @CC@
4439297SfennerPROG = tcpdump
4517680SpstCCOPT = @V_CCOPT@
4617680SpstINCLS = -I. @V_INCLS@
47146773SsamDEFS = @DEFS@ @CPPFLAGS@ @V_DEFS@
4817680Spst
4917680Spst# Standard CFLAGS
50236192SdelphijCFLAGS = @CFLAGS@
51236192SdelphijFULL_CFLAGS = $(CCOPT) $(DEFS) $(INCLS) $(CFLAGS)
5217680Spst
5339297Sfenner# Standard LDFLAGS
5439297SfennerLDFLAGS = @LDFLAGS@
5539297Sfenner
5617680Spst# Standard LIBS
5717680SpstLIBS = @LIBS@
5817680Spst
5917680SpstINSTALL = @INSTALL@
6075115SfennerINSTALL_PROGRAM = @INSTALL_PROGRAM@
6175115SfennerINSTALL_DATA = @INSTALL_DATA@
62190207SrpauloRANLIB = @RANLIB@
6317680Spst
6417680Spst# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
6517680Spst# Also, gcc does not remove the .o before forking 'as', which can be a
6617680Spst# problem if you don't own the file but can write to the directory.
6717680Spst.c.o:
6817680Spst	@rm -f $@
69236192Sdelphij	$(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
7017680Spst
71190207SrpauloCSRC =	addrtoname.c af.c checksum.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \
72236192Sdelphij        nlpid.c l2vpn.c machdep.c parsenfsfh.c in_cksum.c \
73236192Sdelphij	print-802_11.c print-802_15_4.c print-ap1394.c print-ah.c \
74236192Sdelphij	print-arcnet.c print-aodv.c print-arp.c print-ascii.c print-atalk.c \
75236192Sdelphij	print-atm.c print-beep.c print-bfd.c print-bgp.c \
76236192Sdelphij	print-bootp.c print-bt.c print-carp.c print-cdp.c print-cfm.c \
77236192Sdelphij	print-chdlc.c print-cip.c print-cnfp.c print-dccp.c print-decnet.c \
78190207Srpaulo	print-domain.c print-dtp.c print-dvmrp.c print-enc.c print-egp.c \
79146773Ssam	print-eap.c print-eigrp.c\
80127668Sbms	print-esp.c print-ether.c print-fddi.c print-fr.c \
81127668Sbms	print-gre.c print-hsrp.c print-icmp.c print-igmp.c \
82214478Srpaulo	print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c print-ipnet.c \
83190207Srpaulo	print-ipx.c print-isoclns.c print-juniper.c print-krb.c \
84190207Srpaulo	print-l2tp.c print-lane.c print-ldp.c print-lldp.c print-llc.c \
85190207Srpaulo        print-lmp.c print-lspping.c print-lwapp.c \
86190207Srpaulo	print-lwres.c print-mobile.c print-mpcp.c print-mpls.c print-msdp.c \
87172683Smlaier	print-nfs.c print-ntp.c print-null.c print-olsr.c print-ospf.c \
88236192Sdelphij	print-pgm.c print-pim.c \
89236192Sdelphij	print-ppi.c print-ppp.c print-pppoe.c print-pptp.c \
90236192Sdelphij	print-radius.c print-raw.c print-rip.c print-rpki-rtr.c print-rrcp.c print-rsvp.c \
91190207Srpaulo	print-rx.c print-sctp.c print-sflow.c print-sip.c print-sl.c print-sll.c \
92162017Ssam	print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \
93146773Ssam	print-symantec.c print-syslog.c print-tcp.c print-telnet.c print-tftp.c \
94214478Srpaulo	print-timed.c print-token.c print-udld.c print-udp.c print-usb.c \
95214478Srpaulo	print-vjc.c print-vqp.c print-vrrp.c print-vtp.c print-forces.c \
96214478Srpaulo	print-wb.c print-zephyr.c signature.c setsignal.c tcpdump.c util.c
9775115Sfenner
98190207SrpauloLIBNETDISSECT_SRC=print-isakmp.c
99190207SrpauloLIBNETDISSECT_OBJ=$(LIBNETDISSECT_SRC:.c=.o)
100190207SrpauloLIBNETDISSECT=libnetdissect.a
101190207Srpaulo
10256893SfennerLOCALSRC = @LOCALSRC@
10317680SpstGENSRC = version.c
10456893SfennerLIBOBJS = @LIBOBJS@
10517680Spst
106190207SrpauloSRC =	$(CSRC) $(GENSRC) $(LOCALSRC) $(LIBNETDISSECT_SRC)
10717680Spst
10817680Spst# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
10917680Spst# hack the extra indirection
110190207SrpauloOBJ =	$(CSRC:.c=.o) $(GENSRC:.c=.o) $(LOCALSRC:.c=.o) $(LIBOBJS) $(LIBNETDISSECT_OBJ)
111190207SrpauloHDR = \
112190207Srpaulo	acconfig.h \
113190207Srpaulo	addrtoname.h \
114190207Srpaulo	af.h \
115190207Srpaulo	ah.h \
116190207Srpaulo	aodv.h \
117190207Srpaulo	appletalk.h \
118190207Srpaulo	arcnet.h \
119190207Srpaulo	atm.h \
120190207Srpaulo	atmuni31.h \
121190207Srpaulo	bootp.h \
122190207Srpaulo	bgp.h \
123190207Srpaulo	chdlc.h \
124190207Srpaulo	cpack.h \
125190207Srpaulo	dccp.h \
126190207Srpaulo	decnet.h \
127190207Srpaulo	decode_prefix.h \
128190207Srpaulo	enc.h \
129190207Srpaulo	esp.h \
130190207Srpaulo	ether.h \
131190207Srpaulo	ethertype.h \
132190207Srpaulo	extract.h \
133190207Srpaulo	fddi.h \
134214478Srpaulo	forces.h \
135190207Srpaulo	gmpls.h \
136190207Srpaulo	gmt2local.h \
137190207Srpaulo	icmp6.h \
138190207Srpaulo	ieee802_11.h \
139190207Srpaulo	ieee802_11_radio.h \
140190207Srpaulo	igrp.h \
141190207Srpaulo	interface.h \
142190207Srpaulo	interface.h \
143190207Srpaulo	ip.h \
144190207Srpaulo	ip6.h \
145190207Srpaulo	ipfc.h \
146214478Srpaulo	ipnet.h \
147190207Srpaulo	ipproto.h \
148190207Srpaulo	ipsec_doi.h \
149190207Srpaulo	ipx.h \
150190207Srpaulo	isakmp.h \
151190207Srpaulo	l2tp.h \
152190207Srpaulo	l2vpn.h \
153190207Srpaulo	lane.h \
154190207Srpaulo	llc.h \
155190207Srpaulo	machdep.h \
156190207Srpaulo	mib.h \
157190207Srpaulo	mpls.h \
158190207Srpaulo	nameser.h \
159190207Srpaulo	netbios.h \
160190207Srpaulo	netdissect.h \
161190207Srpaulo	nfs.h \
162190207Srpaulo	nfsfh.h \
163190207Srpaulo	nlpid.h \
164190207Srpaulo	ntp.h \
165190207Srpaulo	oakley.h \
166190207Srpaulo	ospf.h \
167190207Srpaulo	ospf6.h \
168190207Srpaulo	oui.h \
169190207Srpaulo	pcap-missing.h \
170190207Srpaulo	pmap_prot.h \
171236192Sdelphij	ppi.h \
172190207Srpaulo	ppp.h \
173190207Srpaulo	route6d.h \
174190207Srpaulo	rpc_auth.h \
175190207Srpaulo	rpc_msg.h \
176190207Srpaulo	rx.h \
177190207Srpaulo	sctpConstants.h \
178190207Srpaulo	sctpHeader.h \
17998524Sfenner	setsignal.h \
180214478Srpaulo	signature.h \
181190207Srpaulo	slcompress.h \
182190207Srpaulo	slip.h \
183190207Srpaulo	sll.h \
184190207Srpaulo	smb.h \
185190207Srpaulo	tcp.h \
186190207Srpaulo	tcpdump-stdinc.h \
187190207Srpaulo	telnet.h \
188190207Srpaulo	tftp.h \
189190207Srpaulo	timed.h \
190190207Srpaulo	token.h \
191190207Srpaulo	udp.h
19217680Spst
19317680SpstTAGHDR = \
19417680Spst	/usr/include/arpa/tftp.h \
19526180Sfenner	/usr/include/net/if_arp.h \
19617680Spst	/usr/include/net/slip.h \
19717680Spst	/usr/include/netinet/if_ether.h \
19817680Spst	/usr/include/netinet/in.h \
19917680Spst	/usr/include/netinet/ip_icmp.h \
20017680Spst	/usr/include/netinet/tcp.h \
20117680Spst	/usr/include/netinet/udp.h \
20217680Spst	/usr/include/protocols/routed.h
20317680Spst
20417680SpstTAGFILES = $(SRC) $(HDR) $(TAGHDR)
20517680Spst
20639297SfennerCLEANFILES = $(PROG) $(OBJ) $(GENSRC)
20717680Spst
208190207SrpauloEXTRA_DIST = \
209190207Srpaulo	CHANGES \
210190207Srpaulo	CREDITS \
211190207Srpaulo	INSTALL.txt \
212190207Srpaulo	LICENSE \
213190207Srpaulo	Makefile.in \
214214478Srpaulo	Makefile-devel-adds \
215190207Srpaulo	README \
216190207Srpaulo	Readme.Win32 \
217190207Srpaulo	VERSION \
218190207Srpaulo	aclocal.m4 \
219190207Srpaulo	atime.awk \
220190207Srpaulo	bpf_dump.c \
221190207Srpaulo	config.guess \
222190207Srpaulo	config.h.in \
223190207Srpaulo	config.sub \
224190207Srpaulo	configure \
225190207Srpaulo	configure.in \
226190207Srpaulo	install-sh \
227190207Srpaulo	lbl/os-osf4.h \
228190207Srpaulo	lbl/os-solaris2.h \
229190207Srpaulo	lbl/os-sunos4.h \
230190207Srpaulo	lbl/os-ultrix4.h \
231190207Srpaulo	makemib \
232190207Srpaulo	missing/addrinfo.h \
233190207Srpaulo	missing/dlnames.c \
234190207Srpaulo	missing/datalinks.c \
235190207Srpaulo	missing/getnameinfo.c \
236190207Srpaulo	missing/inet_aton.c \
237190207Srpaulo	missing/inet_ntop.c \
238190207Srpaulo	missing/inet_pton.c \
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 \
248236192Sdelphij	print-babel.c \
249190207Srpaulo	print-dhcp6.c \
250190207Srpaulo	print-frag6.c \
251190207Srpaulo	print-icmp6.c \
252190207Srpaulo	print-ip6.c \
253190207Srpaulo	print-ip6opts.c \
254190207Srpaulo	print-mobility.c \
255190207Srpaulo	print-netbios.c \
256190207Srpaulo	print-ospf6.c \
257190207Srpaulo	print-pflog.c \
258190207Srpaulo	print-ripng.c \
259190207Srpaulo	print-rt6.c \
260190207Srpaulo	print-smb.c \
261190207Srpaulo	send-ack.awk \
262190207Srpaulo	smbutil.c \
263190207Srpaulo	stime.awk \
264190207Srpaulo	strcasecmp.c \
265214478Srpaulo	tcpdump.1.in \
266236192Sdelphij	tests/02-sunrise-sunset-esp.pcap \
267236192Sdelphij	tests/08-sunrise-sunset-aes.pcap \
268236192Sdelphij	tests/08-sunrise-sunset-esp2.pcap \
269236192Sdelphij	tests/QinQpacket.out \
270236192Sdelphij	tests/QinQpacket.pcap \
271236192Sdelphij	tests/QinQpacketv.out \
272214478Srpaulo	tests/TESTLIST \
273214478Srpaulo	tests/TESTonce \
274214478Srpaulo	tests/TESTrun.sh \
275236192Sdelphij	tests/babel.pcap \
276236192Sdelphij	tests/babel1.out \
277236192Sdelphij	tests/babel1v.out \
278214478Srpaulo	tests/bgp-infinite-loop.pcap \
279214478Srpaulo	tests/bgp_vpn_attrset.out \
280214478Srpaulo	tests/bgp_vpn_attrset.pcap \
281214478Srpaulo	tests/chdlc-slarp-short.pcap \
282214478Srpaulo	tests/chdlc-slarp.pcap \
283214478Srpaulo	tests/dio.out \
284214478Srpaulo	tests/dio.pcap \
285214478Srpaulo	tests/e1000g.out \
286214478Srpaulo	tests/e1000g.pcap \
287214478Srpaulo	tests/eapon1.gdbinit \
288214478Srpaulo	tests/eapon1.out \
289236192Sdelphij	tests/eapon1.pcap \
290236192Sdelphij	tests/empty.uu \
291214478Srpaulo	tests/esp-secrets.txt \
292214478Srpaulo	tests/esp0.out \
293214478Srpaulo	tests/esp1.gdbinit \
294214478Srpaulo	tests/esp1.out \
295214478Srpaulo	tests/esp2.gdbinit \
296214478Srpaulo	tests/esp2.out \
297214478Srpaulo	tests/esp3.gdbinit \
298214478Srpaulo	tests/esp4.gdbinit \
299214478Srpaulo	tests/esp5.gdbinit \
300214478Srpaulo	tests/esp5.out \
301214478Srpaulo	tests/espudp1.out \
302236192Sdelphij	tests/espudp1.pcap \
303214478Srpaulo	tests/forces1.out \
304214478Srpaulo	tests/forces1.pcap \
305214478Srpaulo	tests/forces1vvv.out \
306214478Srpaulo	tests/forces1vvvv.out \
307214478Srpaulo	tests/forces2.out \
308214478Srpaulo	tests/forces2v.out \
309214478Srpaulo	tests/forces2vv.out \
310236192Sdelphij	tests/forces3vvv.out \
311214478Srpaulo	tests/ikev2four.out \
312236192Sdelphij	tests/ikev2four.pcap \
313214478Srpaulo	tests/ikev2fourv.out \
314214478Srpaulo	tests/ikev2fourv4.out \
315214478Srpaulo	tests/ikev2pI2-secrets.txt \
316214478Srpaulo	tests/ikev2pI2.out \
317236192Sdelphij	tests/ikev2pI2.pcap \
318236192Sdelphij	tests/isakmp-delete-segfault.pcap \
319236192Sdelphij	tests/isakmp-identification-segfault.pcap \
320236192Sdelphij	tests/isakmp-pointer-loop.pcap \
321214478Srpaulo	tests/isakmp1.out \
322214478Srpaulo	tests/isakmp2.out \
323214478Srpaulo	tests/isakmp3.out \
324214478Srpaulo	tests/isakmp4.out \
325236192Sdelphij	tests/isakmp4500.pcap \
326214478Srpaulo	tests/isis-infinite-loop.pcap \
327214478Srpaulo	tests/ldp-infinite-loop.pcap \
328214478Srpaulo	tests/lmp.out \
329236192Sdelphij	tests/lmp.pcap \
330214478Srpaulo	tests/lmp.sh \
331214478Srpaulo	tests/lspping-fec-ldp.pcap \
332214478Srpaulo	tests/lspping-fec-rsvp.pcap \
333214478Srpaulo	tests/mpls-ldp-hello.out \
334236192Sdelphij	tests/mpls-ldp-hello.pcap \
335214478Srpaulo	tests/mpls-traceroute.pcap \
336214478Srpaulo	tests/ospf-gmpls.out \
337236192Sdelphij	tests/ospf-gmpls.pcap \
338214478Srpaulo	tests/print-A.out \
339214478Srpaulo	tests/print-AA.out \
340214478Srpaulo	tests/print-capX.out \
341214478Srpaulo	tests/print-capXX.out \
342236192Sdelphij	tests/print-flags.pcap \
343214478Srpaulo	tests/print-flags.sh \
344214478Srpaulo	tests/print-x.out \
345214478Srpaulo	tests/print-xx.out \
346214478Srpaulo	tests/rsvp-infinite-loop.pcap \
347236192Sdelphij	tests/sflow_multiple_counter_30_pdus.out \
348236192Sdelphij	tests/sflow_multiple_counter_30_pdus.pcap \
349190207Srpaulo	vfprintf.c \
350190207Srpaulo	win32/Include/errno.h \
351190207Srpaulo	win32/Include/getopt.h \
352190207Srpaulo	win32/Include/w32_fzs.h \
353190207Srpaulo	win32/Src/getopt.c \
354190207Srpaulo	win32/prj/GNUmakefile \
355190207Srpaulo	win32/prj/WinDump.dsp \
356190207Srpaulo	win32/prj/WinDump.dsw
357190207Srpaulo
35839297Sfennerall: $(PROG)
35939297Sfenner
36039297Sfenner$(PROG): $(OBJ) @V_PCAPDEP@
36117680Spst	@rm -f $@
362236192Sdelphij	$(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
36317680Spst
364190207Srpaulo$(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
365190207Srpaulo	@rm -f $@
366190207Srpaulo	$(AR) cr $@ $(LIBNETDISSECT_OBJ) 
367190207Srpaulo	$(RANLIB) $@
368190207Srpaulo
369127668Sbmsdatalinks.o: $(srcdir)/missing/datalinks.c
370236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c
371127668Sbmsdlnames.o: $(srcdir)/missing/dlnames.c
372236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/dlnames.c
37356893Sfennergetnameinfo.o: $(srcdir)/missing/getnameinfo.c
374236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getnameinfo.c
37556893Sfennergetaddrinfo.o: $(srcdir)/missing/getaddrinfo.c
376236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getaddrinfo.c
37756893Sfennerinet_pton.o: $(srcdir)/missing/inet_pton.c
378236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/inet_pton.c
37956893Sfennerinet_ntop.o: $(srcdir)/missing/inet_ntop.c
380236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/inet_ntop.c
38156893Sfennerinet_aton.o: $(srcdir)/missing/inet_aton.c
382236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/inet_aton.c
38375115Sfennersnprintf.o: $(srcdir)/missing/snprintf.c
384236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
38575115Sfennerstrlcat.o: $(srcdir)/missing/strlcat.c
386236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strlcat.c
38775115Sfennerstrlcpy.o: $(srcdir)/missing/strlcpy.c
388236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strlcpy.c
389127668Sbmsstrsep.o: $(srcdir)/missing/strsep.c
390236192Sdelphij	$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strsep.c
39156893Sfenner
39217680Spstversion.o: version.c
393236192Sdelphij	$(CC) $(FULL_CFLAGS) -c version.c
39456893Sfenner
39526180Sfennerversion.c: $(srcdir)/VERSION
39617680Spst	@rm -f $@
397214478Srpaulo	if grep GIT ${srcdir}/VERSION >/dev/null; then \
398190207Srpaulo		read ver <${srcdir}/VERSION; \
399190207Srpaulo		echo $$ver | tr -d '\012'; \
400190207Srpaulo		date +_%Y_%m_%d; \
401190207Srpaulo	else \
402190207Srpaulo		cat ${srcdir}/VERSION; \
403214478Srpaulo	fi | sed -e 's/.*/const char version[] = "&";/' > $@
40417680Spst
405190207Srpauloinstall: all
40675115Sfenner	[ -d $(DESTDIR)$(sbindir) ] || \
40775115Sfenner	    (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir))
40875115Sfenner	$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
409190207Srpaulo	$(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG).`cat ${srcdir}/VERSION`
41075115Sfenner	[ -d $(DESTDIR)$(mandir)/man1 ] || \
41175115Sfenner	    (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1)
412214478Srpaulo	$(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1
41317680Spst
41475115Sfenneruninstall:
41575115Sfenner	rm -f $(DESTDIR)$(sbindir)/$(PROG)
41675115Sfenner	rm -f $(DESTDIR)$(mandir)/man1/$(PROG).1
41717680Spst
41875115Sfennerlint: $(GENSRC)
41917680Spst	lint -hbxn $(SRC) | \
42017680Spst	    grep -v 'struct/union .* never defined' | \
42117680Spst	    grep -v 'possible pointer alignment problem'
42217680Spst
42317680Spstclean:
424214478Srpaulo	rm -f $(CLEANFILES) $(PROG)-`cat VERSION`.tar.gz
42517680Spst
42617680Spstdistclean:
42717680Spst	rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
428214478Srpaulo	    config.h gnuc.h os-proto.h stamp-h stamp-h.in $(PROG).1
429236192Sdelphij	rm -rf autom4te.cache
43017680Spst
431214478Srpaulocheck: tcpdump
432214478Srpaulo	(cd tests && ./TESTrun.sh)
433214478Srpaulo
43439297Sfennertags: $(TAGFILES)
43517680Spst	ctags -wtd $(TAGFILES)
43617680Spst
437190207SrpauloTAGS: $(TAGFILES)
438190207Srpaulo	etags $(TAGFILES)
439190207Srpaulo
440172683Smlaierreleasetar:
44139297Sfenner	@cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \
442190207Srpaulo	   mkdir $$name; \
443190207Srpaulo	   tar cf - $(CSRC) $(HDR) $(LIBNETDISSECT_SRC) $(EXTRA_DIST) | (cd $$name; tar xf -); \
444190207Srpaulo	   tar -c -z -f $$name.tar.gz $$name; \
445190207Srpaulo	   rm -rf $$name
44617680Spst
44775115Sfennerdepend: $(GENSRC)
44875115Sfenner	${srcdir}/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)
449