head	1.51;
access;
symbols
	RELENG_8_4:1.51.0.2
	RELENG_9_1_0_RELEASE:1.49.2.2.2.2
	RELENG_9_1:1.49.2.2.0.2
	RELENG_9_1_BP:1.49.2.2
	RELENG_8_3_0_RELEASE:1.45.2.1.8.1
	RELENG_8_3:1.45.2.1.0.8
	RELENG_8_3_BP:1.45.2.1
	RELENG_9_0_0_RELEASE:1.49.2.1.2.1
	RELENG_9_0:1.49.2.1.0.2
	RELENG_9_0_BP:1.49.2.1
	RELENG_9:1.49.0.2
	RELENG_9_BP:1.49
	RELENG_7_4_0_RELEASE:1.39.2.1.10.1
	RELENG_8_2_0_RELEASE:1.45.2.1.6.1
	RELENG_7_4:1.39.2.1.0.10
	RELENG_7_4_BP:1.39.2.1
	RELENG_8_2:1.45.2.1.0.6
	RELENG_8_2_BP:1.45.2.1
	RELENG_8_1_0_RELEASE:1.45.2.1.4.1
	RELENG_8_1:1.45.2.1.0.4
	RELENG_8_1_BP:1.45.2.1
	RELENG_7_3_0_RELEASE:1.39.2.1.8.1
	RELENG_7_3:1.39.2.1.0.8
	RELENG_7_3_BP:1.39.2.1
	RELENG_8_0_0_RELEASE:1.45.2.1.2.1
	RELENG_8_0:1.45.2.1.0.2
	RELENG_8_0_BP:1.45.2.1
	RELENG_8:1.45.0.2
	RELENG_8_BP:1.45
	RELENG_7_2_0_RELEASE:1.39.2.1.6.1
	RELENG_7_2:1.39.2.1.0.6
	RELENG_7_2_BP:1.39.2.1
	RELENG_7_1_0_RELEASE:1.39.2.1.4.1
	RELENG_6_4_0_RELEASE:1.36.2.1.6.1
	RELENG_7_1:1.39.2.1.0.4
	RELENG_7_1_BP:1.39.2.1
	RELENG_6_4:1.36.2.1.0.6
	RELENG_6_4_BP:1.36.2.1
	RELENG_7_0_0_RELEASE:1.39.2.1
	RELENG_6_3_0_RELEASE:1.36.2.1
	RELENG_7_0:1.39.2.1.0.2
	RELENG_7_0_BP:1.39.2.1
	RELENG_6_3:1.36.2.1.0.4
	RELENG_6_3_BP:1.36.2.1
	RELENG_7:1.39.0.2
	RELENG_7_BP:1.39
	RELENG_6_2_0_RELEASE:1.36.2.1
	RELENG_6_2:1.36.2.1.0.2
	RELENG_6_2_BP:1.36.2.1
	RELENG_5_5_0_RELEASE:1.33.2.1
	RELENG_5_5:1.33.2.1.0.6
	RELENG_5_5_BP:1.33.2.1
	RELENG_6_1_0_RELEASE:1.36
	RELENG_6_1:1.36.0.6
	RELENG_6_1_BP:1.36
	RELENG_6_0_0_RELEASE:1.36
	RELENG_6_0:1.36.0.4
	RELENG_6_0_BP:1.36
	RELENG_6:1.36.0.2
	RELENG_6_BP:1.36
	RELENG_5_4_0_RELEASE:1.33.2.1
	RELENG_5_4:1.33.2.1.0.4
	RELENG_5_4_BP:1.33.2.1
	RELENG_4_11_0_RELEASE:1.24.2.4
	RELENG_4_11:1.24.2.4.0.10
	RELENG_4_11_BP:1.24.2.4
	RELENG_5_3_0_RELEASE:1.33.2.1
	RELENG_5_3:1.33.2.1.0.2
	RELENG_5_3_BP:1.33.2.1
	RELENG_5:1.33.0.2
	RELENG_5_BP:1.33
	RELENG_4_10_0_RELEASE:1.24.2.4
	RELENG_4_10:1.24.2.4.0.8
	RELENG_4_10_BP:1.24.2.4
	RELENG_5_2_1_RELEASE:1.32
	RELENG_5_2_0_RELEASE:1.32
	RELENG_5_2:1.32.0.2
	RELENG_5_2_BP:1.32
	RELENG_4_9_0_RELEASE:1.24.2.4
	RELENG_4_9:1.24.2.4.0.6
	RELENG_4_9_BP:1.24.2.4
	RELENG_5_1_0_RELEASE:1.31
	RELENG_5_1:1.31.0.4
	RELENG_5_1_BP:1.31
	RELENG_4_8_0_RELEASE:1.24.2.4
	RELENG_4_8:1.24.2.4.0.4
	RELENG_4_8_BP:1.24.2.4
	RELENG_5_0_0_RELEASE:1.31
	RELENG_5_0:1.31.0.2
	RELENG_5_0_BP:1.31
	RELENG_4_7_0_RELEASE:1.24.2.4
	RELENG_4_7:1.24.2.4.0.2
	RELENG_4_7_BP:1.24.2.4
	RELENG_4_6_2_RELEASE:1.24.2.3
	RELENG_4_6_1_RELEASE:1.24.2.3
	RELENG_4_6_0_RELEASE:1.24.2.3
	RELENG_4_6:1.24.2.3.0.6
	RELENG_4_6_BP:1.24.2.3
	RELENG_4_5_0_RELEASE:1.24.2.3
	RELENG_4_5:1.24.2.3.0.4
	RELENG_4_5_BP:1.24.2.3
	RELENG_4_4_0_RELEASE:1.24.2.3
	RELENG_4_4:1.24.2.3.0.2
	RELENG_4_4_BP:1.24.2.3
	RELENG_4_3_0_RELEASE:1.24.2.1
	RELENG_4_3:1.24.2.1.0.2
	RELENG_4_3_BP:1.24.2.1
	RELENG_4_2_0_RELEASE:1.24
	RELENG_4_1_1_RELEASE:1.24
	PRE_SMPNG:1.25
	RELENG_4_1_0_RELEASE:1.24
	RELENG_3_5_0_RELEASE:1.22.2.1
	RELENG_4_0_0_RELEASE:1.24
	RELENG_4:1.24.0.2
	RELENG_4_BP:1.24
	RELENG_3_4_0_RELEASE:1.22.2.1
	RELENG_3_3_0_RELEASE:1.22.2.1
	RELENG_3_2_PAO:1.22.0.4
	RELENG_3_2_PAO_BP:1.22
	RELENG_3_2_0_RELEASE:1.22
	RELENG_3_1_0_RELEASE:1.22
	RELENG_3:1.22.0.2
	RELENG_3_BP:1.22
	RELENG_2_2_8_RELEASE:1.12.2.2
	RELENG_3_0_0_RELEASE:1.21
	RELENG_2_2_7_RELEASE:1.12.2.2
	RELENG_2_2_6_RELEASE:1.12.2.2
	RELENG_2_2_5_RELEASE:1.12
	RELENG_2_2_2_RELEASE:1.12
	RELENG_2_2_1_RELEASE:1.12
	RELENG_2_2_0_RELEASE:1.12
	RELENG_2_1_7_RELEASE:1.3.4.1
	RELENG_2_1_6_1_RELEASE:1.3.4.1
	RELENG_2_1_6_RELEASE:1.3.4.1
	RELENG_2_2:1.12.0.2
	RELENG_2_2_BP:1.12
	RELENG_2_1_5_RELEASE:1.3.4.1
	RELENG_2_1_0_RELEASE:1.3.4.1
	RELENG_2_1_0:1.3.0.4
	RELENG_2_1_0_BP:1.3
	RELENG_2_0_5_RELEASE:1.3
	RELENG_2_0_5:1.3.0.2
	RELENG_2_0_5_BP:1.3
	RELENG_2_0_5_ALPHA:1.3
	libpcap:1.1.1.1;
locks; strict;
comment	@# @;


1.51
date	2012.11.17.01.49.58;	author svnexp;	state Exp;
branches
	1.51.2.1;
next	1.50;

1.50
date	2012.05.14.05.12.56;	author delphij;	state Exp;
branches;
next	1.49;

1.49
date	2011.08.28.09.26.48;	author kib;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	2010.10.29.20.54.04;	author rpaulo;	state Exp;
branches;
next	1.47;

1.47
date	2010.10.29.18.45.10;	author rpaulo;	state Exp;
branches;
next	1.46;

1.46
date	2010.01.02.09.58.07;	author ed;	state Exp;
branches;
next	1.45;

1.45
date	2009.07.19.17.25.24;	author kensmith;	state Exp;
branches
	1.45.2.1;
next	1.44;

1.44
date	2009.03.22.01.24.32;	author rpaulo;	state Exp;
branches;
next	1.43;

1.43
date	2009.03.22.01.06.39;	author rpaulo;	state Exp;
branches;
next	1.42;

1.42
date	2009.03.21.22.59.02;	author rpaulo;	state Exp;
branches;
next	1.41;

1.41
date	2008.08.28.11.48.49;	author pjd;	state Exp;
branches;
next	1.40;

1.40
date	2007.10.16.02.10.44;	author mlaier;	state Exp;
branches;
next	1.39;

1.39
date	2007.05.21.02.49.06;	author deischen;	state Exp;
branches
	1.39.2.1;
next	1.38;

1.38
date	2006.04.13.07.25.02;	author ru;	state Exp;
branches;
next	1.37;

1.37
date	2006.03.17.18.54.27;	author ru;	state Exp;
branches;
next	1.36;

1.36
date	2005.06.03.09.41.26;	author ume;	state Exp;
branches
	1.36.2.1;
next	1.35;

1.35
date	2004.12.21.10.49.26;	author ru;	state Exp;
branches;
next	1.34;

1.34
date	2004.10.01.15.38.07;	author kensmith;	state Exp;
branches;
next	1.33;

1.33
date	2004.03.31.09.15.09;	author bms;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2003.11.04.06.12.21;	author green;	state Exp;
branches;
next	1.31;

1.31
date	2002.09.28.00.25.30;	author peter;	state Exp;
branches;
next	1.30;

1.30
date	2002.05.12.16.00.54;	author ru;	state Exp;
branches;
next	1.29;

1.29
date	2001.07.31.23.27.06;	author fenner;	state Exp;
branches;
next	1.28;

1.28
date	2001.04.03.10.08.51;	author bde;	state Exp;
branches;
next	1.27;

1.27
date	2001.04.03.04.34.50;	author fenner;	state Exp;
branches;
next	1.26;

1.26
date	2001.03.27.17.27.14;	author ru;	state Exp;
branches;
next	1.25;

1.25
date	2000.04.15.20.45.51;	author steve;	state Exp;
branches;
next	1.24;

1.24
date	2000.01.30.00.44.23;	author fenner;	state Exp;
branches
	1.24.2.1;
next	1.23;

1.23
date	99.08.28.00.05.21;	author peter;	state Exp;
branches;
next	1.22;

1.22
date	98.12.27.15.04.33;	author bde;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	98.09.15.19.34.01;	author fenner;	state Exp;
branches;
next	1.20;

1.20
date	98.08.18.10.29.37;	author ache;	state Exp;
branches;
next	1.19;

1.19
date	98.05.08.06.43.07;	author bde;	state Exp;
branches;
next	1.18;

1.18
date	97.10.10.11.55.42;	author peter;	state Exp;
branches;
next	1.17;

1.17
date	97.10.05.09.39.25;	author jkh;	state Exp;
branches;
next	1.16;

1.16
date	97.05.27.00.08.01;	author fenner;	state Exp;
branches;
next	1.15;

1.15
date	97.02.22.15.07.50;	author peter;	state Exp;
branches;
next	1.14;

1.14
date	97.01.14.06.09.58;	author jkh;	state Exp;
branches;
next	1.13;

1.13
date	97.01.05.18.25.53;	author wollman;	state Exp;
branches;
next	1.12;

1.12
date	96.08.30.01.59.46;	author peter;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	96.08.21.16.50.08;	author pst;	state Exp;
branches;
next	1.10;

1.10
date	96.08.20.05.43.51;	author pst;	state Exp;
branches;
next	1.9;

1.9
date	96.08.19.21.00.45;	author pst;	state Exp;
branches;
next	1.8;

1.8
date	96.08.19.14.23.50;	author peter;	state Exp;
branches;
next	1.7;

1.7
date	96.06.02.17.09.03;	author phk;	state Exp;
branches;
next	1.6;

1.6
date	96.05.30.23.01.04;	author phk;	state Exp;
branches;
next	1.5;

1.5
date	96.05.07.23.19.02;	author wosch;	state Exp;
branches;
next	1.4;

1.4
date	95.08.06.12.37.41;	author bde;	state Exp;
branches;
next	1.3;

1.3
date	95.02.23.18.47.06;	author ache;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	95.02.21.10.46.25;	author olah;	state Exp;
branches;
next	1.1;

1.1
date	95.01.20.04.13.06;	author jkh;	state Exp;
branches
	1.1.1.1;
next	;

1.51.2.1
date	2012.11.17.01.49.58;	author svnexp;	state dead;
branches;
next	1.51.2.2;

1.51.2.2
date	2013.03.28.13.03.19;	author svnexp;	state Exp;
branches;
next	;

1.49.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.49.2.1.2.1;
next	1.49.2.2;

1.49.2.2
date	2012.05.28.07.34.52;	author delphij;	state Exp;
branches
	1.49.2.2.2.1;
next	1.49.2.3;

1.49.2.3
date	2012.11.17.11.36.25;	author svnexp;	state Exp;
branches;
next	;

1.49.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.49.2.1.2.2;

1.49.2.1.2.2
date	2012.11.17.08.36.25;	author svnexp;	state Exp;
branches;
next	;

1.49.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.49.2.2.2.2;

1.49.2.2.2.2
date	2012.11.17.08.47.15;	author svnexp;	state Exp;
branches;
next	;

1.45.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.45.2.1.2.1
	1.45.2.1.4.1
	1.45.2.1.6.1
	1.45.2.1.8.1;
next	1.45.2.2;

1.45.2.2
date	2012.11.17.10.36.09;	author svnexp;	state Exp;
branches;
next	;

1.45.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.45.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.45.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.45.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.45.2.1.8.2;

1.45.2.1.8.2
date	2012.11.17.08.24.50;	author svnexp;	state Exp;
branches;
next	;

1.39.2.1
date	2007.10.19.03.04.02;	author mlaier;	state Exp;
branches
	1.39.2.1.4.1
	1.39.2.1.6.1
	1.39.2.1.8.1
	1.39.2.1.10.1;
next	1.39.2.2;

1.39.2.2
date	2012.11.17.08.02.58;	author svnexp;	state Exp;
branches;
next	;

1.39.2.1.4.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.39.2.1.6.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.39.2.1.8.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.39.2.1.10.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.39.2.1.10.2;

1.39.2.1.10.2
date	2012.11.17.08.16.49;	author svnexp;	state Exp;
branches;
next	;

1.36.2.1
date	2006.09.29.07.02.21;	author matteo;	state Exp;
branches
	1.36.2.1.6.1;
next	1.36.2.2;

1.36.2.2
date	2012.11.17.07.40.30;	author svnexp;	state Exp;
branches;
next	;

1.36.2.1.6.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.33.2.1
date	2004.10.01.16.32.05;	author kensmith;	state Exp;
branches;
next	;

1.24.2.1
date	2001.03.05.06.25.11;	author kris;	state Exp;
branches;
next	1.24.2.2;

1.24.2.2
date	2001.04.25.10.04.37;	author ru;	state Exp;
branches;
next	1.24.2.3;

1.24.2.3
date	2001.08.01.00.23.13;	author fenner;	state Exp;
branches;
next	1.24.2.4;

1.24.2.4
date	2002.07.22.14.21.50;	author ru;	state Exp;
branches;
next	1.24.2.5;

1.24.2.5
date	2012.11.17.07.23.59;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1
date	99.08.29.14.57.24;	author peter;	state Exp;
branches;
next	;

1.12.2.1
date	97.10.26.22.48.31;	author jkh;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	98.02.18.02.46.31;	author jkh;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	99.09.05.11.17.04;	author peter;	state Exp;
branches;
next	;

1.3.4.1
date	95.08.31.21.50.13;	author davidg;	state Exp;
branches;
next	1.3.4.2;

1.3.4.2
date	99.09.05.11.18.38;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	95.01.20.04.13.07;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.51
log
@Switching exporter and resync
@
text
@# Makefile for libpcap
# $FreeBSD: head/lib/libpcap/Makefile 235426 2012-05-14 05:12:56Z delphij $

SHLIBDIR?= /lib

.include <bsd.own.mk>

LIB=	pcap
SRCS=	grammar.y tokdefs.h version.h pcap-bpf.c \
	pcap.c pcap-common.c inet.c fad-getad.c gencode.c optimize.c nametoaddr.c \
	etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
	scanner.l sf-pcap.c sf-pcap-ng.c version.c

# Old compatibility headers
INCS=	pcap.h pcap-int.h pcap-namedb.h pcap-bpf.h

PCAPINCS=	pcap/pcap.h pcap/namedb.h pcap/bpf.h
PCAPINCSDIR=	${INCLUDEDIR}/pcap
INCSGROUPS=	INCS PCAPINCS

MAN=	pcap.3 \
	pcap_activate.3 \
	pcap_breakloop.3 \
	pcap_can_set_rfmon.3 \
	pcap_close.3 \
	pcap_compile.3 \
	pcap_create.3 \
	pcap_datalink.3 \
	pcap_datalink_name_to_val.3 \
	pcap_datalink_val_to_name.3 \
	pcap_dump.3 \
	pcap_dump_close.3 \
	pcap_dump_file.3 \
	pcap_dump_flush.3 \
	pcap_dump_ftell.3 \
	pcap_dump_open.3 \
	pcap_file.3 \
	pcap_fileno.3 \
	pcap_findalldevs.3 \
	pcap_freecode.3 \
	pcap_get_selectable_fd.3 \
	pcap_geterr.3 \
	pcap_inject.3 \
	pcap_is_swapped.3 \
	pcap_lib_version.3 \
	pcap_list_datalinks.3 \
	pcap_list_tstamp_types.3 \
	pcap_lookupdev.3 \
	pcap_lookupnet.3 \
	pcap_loop.3 \
	pcap_major_version.3 \
	pcap_next_ex.3 \
	pcap_offline_filter.3 \
	pcap_open_dead.3 \
	pcap_open_live.3 \
	pcap_open_offline.3 \
	pcap_set_buffer_size.3 \
	pcap_set_datalink.3 \
	pcap_set_promisc.3 \
	pcap_set_rfmon.3 \
	pcap_set_snaplen.3 \
	pcap_set_timeout.3 \
	pcap_set_tstamp_type.3 \
	pcap_setdirection.3 \
	pcap_setfilter.3 \
	pcap_setnonblock.3 \
	pcap_snapshot.3 \
	pcap_stats.3 \
	pcap_statustostr.3 \
	pcap_strerror.3 \
	pcap-savefile.5 \
	pcap_tstamp_type_name_to_val.3 \
	pcap_tstamp_type_val_to_name.3 \
	pcap-filter.7 \
	pcap-linktype.7
MLINKS=	pcap_datalink_val_to_name.3 pcap_datalink_val_to_description.3 \
	pcap_dump_open.3 pcap_dump_fopen.3 \
	pcap_findalldevs.3 pcap_freealldevs.3 \
	pcap_geterr.3 pcap_perror.3 \
	pcap_inject.3 pcap_sendpacket.3 \
	pcap_list_datalinks.3 pcap_free_datalinks.3 \
	pcap_list_tstamp_types.3 pcap_free_tstamp_types.3 \
	pcap_loop.3 pcap_dispatch.3 \
	pcap_major_version.3 pcap_minor_version.3 \
	pcap_next_ex.3 pcap_next.3 \
	pcap_open_offline.3 pcap_fopen_offline.3 \
	pcap_setnonblock.3 pcap_getnonblock.3

# Our man pages are a special copy from the distdir. See below.
CLEANFILES+=${MAN}
CLEANFILES+=tokdefs.h version.h version.c

YFLAGS+=-p pcapyy
LFLAGS+=-Ppcapyy
CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcapyylval -I${.CURDIR} -I.
CFLAGS+=-D_U_="__attribute__((unused))"
CFLAGS+=-DHAVE_SNPRINTF -DHAVE_VSNPRINTF
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
.endif
.if ${MK_PF} != "no"
CFLAGS+=-DHAVE_NET_PFVAR_H
.endif

WARNS?=	0

SHLIB_MAJOR=	8

#
# Magic to grab sources out of src/contrib
#
PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
CFLAGS+=-I${PCAP_DISTDIR}
.PATH:	${PCAP_DISTDIR}
.PATH:	${PCAP_DISTDIR}/bpf/net

version.c: ${PCAP_DISTDIR}/VERSION
	@@rm -f $@@
	sed 's/.*/char pcap_version[] = "&";/' ${PCAP_DISTDIR}/VERSION > $@@

version.h: ${PCAP_DISTDIR}/VERSION
	@@rm -f $@@
	sed 's/.*/char pcap_version_string[] = "libpcap version &";/' ${PCAP_DISTDIR}/VERSION > $@@

tokdefs.h: grammar.h
	ln -sf grammar.h tokdefs.h


#
# Magic to convert the man pages to something non Solarish
#
.for _page in ${MAN}
${_page}:
	if [ -f ${PCAP_DISTDIR}/${_page:S/3$/3pcap/} ]; then		\
		F=${_page:S/3$/3pcap/}; 				\
	elif [ -f ${PCAP_DISTDIR}/${_page:S/5$/manfile/} ]; then	\
		F=${_page:S/5$/manfile/};				\
	else								\
		F=${_page:S/7$/manmisc/};				\
	fi;								\
	sed -e 's/3PCAP/3/g' ${PCAP_DISTDIR}/$$F > ${_page}
.endfor

.include <bsd.lib.mk>
@


1.51.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:19 +0000
@
text
@d1 144
@


1.51.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 137
# Makefile for libpcap
# $FreeBSD: releng/8.4/lib/libpcap/Makefile 195767 2009-07-19 17:25:24Z kensmith $

SHLIBDIR?= /lib

.include <bsd.own.mk>

LIB=	pcap
SRCS=	grammar.y tokdefs.h version.h pcap-bpf.c \
	pcap.c inet.c fad-getad.c gencode.c optimize.c nametoaddr.c \
	etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
	scanner.l version.c

# Old compatibility headers
INCS=	pcap.h pcap-int.h pcap-namedb.h pcap-bpf.h

PCAPINCS=	pcap/pcap.h pcap/namedb.h pcap/bpf.h
PCAPINCSDIR=	${INCLUDEDIR}/pcap
INCSGROUPS=	INCS PCAPINCS

MAN=	pcap.3 \
	pcap_activate.3 \
	pcap_breakloop.3 \
	pcap_can_set_rfmon.3 \
	pcap_close.3 \
	pcap_compile.3 \
	pcap_create.3 \
	pcap_datalink.3 \
	pcap_datalink_name_to_val.3 \
	pcap_datalink_val_to_name.3 \
	pcap_dump.3 \
	pcap_dump_close.3 \
	pcap_dump_file.3 \
	pcap_dump_flush.3 \
	pcap_dump_ftell.3 \
	pcap_dump_open.3 \
	pcap_file.3 \
	pcap_fileno.3 \
	pcap_findalldevs.3 \
	pcap_free_datalinks.3 \
	pcap_freealldevs.3 \
	pcap_freecode.3 \
	pcap_get_selectable_fd.3 \
	pcap_geterr.3 \
	pcap_inject.3 \
	pcap_is_swapped.3 \
	pcap_lib_version.3 \
	pcap_list_datalinks.3 \
	pcap_lookupdev.3 \
	pcap_lookupnet.3 \
	pcap_loop.3 \
	pcap_major_version.3 \
	pcap_next_ex.3 \
	pcap_offline_filter.3 \
	pcap_open_dead.3 \
	pcap_open_live.3 \
	pcap_open_offline.3 \
	pcap_set_buffer_size.3 \
	pcap_set_datalink.3 \
	pcap_set_promisc.3 \
	pcap_set_rfmon.3 \
	pcap_set_snaplen.3 \
	pcap_set_timeout.3 \
	pcap_setdirection.3 \
	pcap_setfilter.3 \
	pcap_setnonblock.3 \
	pcap_snapshot.3 \
	pcap_stats.3 \
	pcap_statustostr.3 \
	pcap_strerror.3 \
	pcap-savefile.5 \
	pcap-filter.7 \
	pcap-linktype.7
MLINKS=	pcap_datalink_val_to_name.3 pcap_datalink_val_to_description.3 \
	pcap_dump_open.3 pcap_dump_fopen.3 \
	pcap_geterr.3 pcap_perror.3 \
	pcap_inject.3 pcap_sendpacket.3 \
	pcap_loop.3 pcap_dispatch.3 \
	pcap_major_version.3 pcap_minor_version.3 \
	pcap_next_ex.3 pcap_next.3 \
	pcap_open_offline.3 pcap_fopen_offline.3 \
	pcap_setnonblock.3 pcap_getnonblock.3

# Our man pages are a special copy from the distdir. See below.
CLEANFILES+=${MAN}
CLEANFILES+=tokdefs.h version.h version.c

YFLAGS+=-p pcapyy
LFLAGS+=-Ppcapyy
CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcapyylval -I${.CURDIR} -I.
CFLAGS+=-D_U_="__attribute__((unused))"
CFLAGS+=-DHAVE_SNPRINTF -DHAVE_VSNPRINTF
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
.endif
.if ${MK_PF} != "no"
CFLAGS+=-DHAVE_NET_PFVAR_H
.endif

SHLIB_MAJOR=7

#
# Magic to grab sources out of src/contrib
#
PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
CFLAGS+=-I${PCAP_DISTDIR}
.PATH:	${PCAP_DISTDIR}
.PATH:	${PCAP_DISTDIR}/bpf/net

version.c: ${PCAP_DISTDIR}/VERSION
	@@rm -f $@@
	sed 's/.*/char pcap_version[] = "&";/' ${PCAP_DISTDIR}/VERSION > $@@

version.h: ${PCAP_DISTDIR}/VERSION
	@@rm -f $@@
	sed 's/.*/char pcap_version_string[] = "libpcap version &";/' ${PCAP_DISTDIR}/VERSION > $@@

tokdefs.h: grammar.h
	ln -sf grammar.h tokdefs.h


#
# Magic to convert the man pages to something non Solarish
#
.for _page in ${MAN}
${_page}:
	if [ -f ${PCAP_DISTDIR}/${_page:S/3$/3pcap/} ]; then		\
		F=${_page:S/3$/3pcap/}; 				\
	elif [ -f ${PCAP_DISTDIR}/${_page:S/5$/manfile/} ]; then	\
		F=${_page:S/5$/manfile/};				\
	else								\
		F=${_page:S/7$/manmisc/};				\
	fi;								\
	sed -e 's/3PCAP/3/g' ${PCAP_DISTDIR}/$$F > ${_page}
.endfor

.include <bsd.lib.mk>
@


1.50
log
@SVN rev 235426 on 2012-05-14 05:12:56Z by delphij

Merge from vendor branch: update libpcap to 1.2.1.

MFC after:	2 weeks
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.49
log
@SVN rev 225227 on 2011-08-28 09:26:48Z by kib

Bump shared libraries version numbers in preparation for 9.0.
This time, only libraries which ABI has been changed compared to
stable/8, are bumped.

ABI analysis done by:	Gleb Kurtsou
Approved by:	re (kensmith)
@
text
@a39 2
	pcap_free_datalinks.3 \
	pcap_freealldevs.3 \
d47 1
d63 1
d72 2
d78 1
d81 2
@


1.49.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.49.2.2
log
@SVN rev 236167 on 2012-05-28 07:34:52Z by delphij

MFC: libpcap 1.2.1.
@
text
@d40 2
a48 1
	pcap_list_tstamp_types.3 \
a63 1
	pcap_set_tstamp_type.3 \
a71 2
	pcap_tstamp_type_name_to_val.3 \
	pcap_tstamp_type_val_to_name.3 \
a75 1
	pcap_findalldevs.3 pcap_freealldevs.3 \
a77 2
	pcap_list_datalinks.3 pcap_free_datalinks.3 \
	pcap_list_tstamp_types.3 pcap_free_tstamp_types.3 \
@


1.49.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/lib/libpcap/Makefile 236167 2012-05-28 07:34:52Z delphij $
@


1.49.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.49.2.2.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/lib/libpcap/Makefile 236167 2012-05-28 07:34:52Z delphij $
@


1.49.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.49.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/lib/libpcap/Makefile 225227 2011-08-28 09:26:48Z kib $
@


1.48
log
@SVN rev 214529 on 2010-10-29 20:54:04Z by rpaulo

add pcap-common.c.

Submitted by:	dim
@
text
@d102 1
a102 1
SHLIB_MAJOR=7
@


1.47
log
@SVN rev 214519 on 2010-10-29 18:45:10Z by rpaulo

Update for libpcap-1.1.1.
@
text
@d10 1
a10 1
	pcap.c inet.c fad-getad.c gencode.c optimize.c nametoaddr.c \
@


1.46
log
@SVN rev 201381 on 2010-01-02 09:58:07Z by ed

Build lib/ with WARNS=6 by default.

Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
lower it when needed.

I'm setting WARNS?=0 for secure/. It seems secure/ includes the
Makefile.inc provided by lib/. I'm not going to touch that directory.
Most of the code there is contributed anyway.
@
text
@d12 1
a12 1
	scanner.l version.c
@


1.45
log
@SVN rev 195767 on 2009-07-19 17:25:24Z by kensmith

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE.  Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by:    kib
Approved by:    re (rwatson)
@
text
@d100 2
@


1.45.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.45.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/lib/libpcap/Makefile 195767 2009-07-19 17:25:24Z kensmith $
@


1.45.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.45.2.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/lib/libpcap/Makefile 195767 2009-07-19 17:25:24Z kensmith $
@


1.45.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.45.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.45.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.44
log
@SVN rev 190236 on 2009-03-22 01:24:32Z by rpaulo

Fix typo in comment.
@
text
@d100 1
a100 1
SHLIB_MAJOR=6
@


1.43
log
@SVN rev 190235 on 2009-03-22 01:06:39Z by rpaulo

Install the new headers.
@
text
@d84 1
a84 1
# Our man pages are a special copy from the distdir. See bellow.
@


1.42
log
@SVN rev 190226 on 2009-03-21 22:59:02Z by rpaulo

Support files for new libpcap 1.0.0.
Includes a shlib bump.
@
text
@d13 2
d16 5
@


1.41
log
@SVN rev 182368 on 2008-08-28 11:48:49Z by pjd

Add links to all libpcap functions.
@
text
@d14 66
a79 50
MAN=	pcap.3
MLINKS=	pcap.3 pcap_open_live.3 \
	pcap.3 pcap_open_dead.3 \
	pcap.3 pcap_open_offline.3 \
	pcap.3 pcap_fopen_offline.3 \
	pcap.3 pcap_dump_open.3 \
	pcap.3 pcap_dump_fopen.3 \
	pcap.3 pcap_setnonblock.3 \
	pcap.3 pcap_getnonblock.3 \
	pcap.3 pcap_findalldevs.3 \
	pcap.3 pcap_freealldevs.3 \
	pcap.3 pcap_lookupdev.3 \
	pcap.3 pcap_lookupnet.3 \
	pcap.3 pcap_dispatch.3 \
	pcap.3 pcap_loop.3 \
	pcap.3 pcap_dump.3 \
	pcap.3 pcap_compile.3 \
	pcap.3 pcap_setfilter.3 \
	pcap.3 pcap_freecode.3 \
	pcap.3 pcap_setdirection.3 \
	pcap.3 pcap_next.3 \
	pcap.3 pcap_next_ex.3 \
	pcap.3 pcap_breakloop.3 \
	pcap.3 pcap_inject.3 \
	pcap.3 pcap_sendpacket.3 \
	pcap.3 pcap_datalink.3 \
	pcap.3 pcap_list_datalinks.3 \
	pcap.3 pcap_set_datalink.3 \
	pcap.3 pcap_datalink_name_to_val.3 \
	pcap.3 pcap_datalink_val_to_name.3 \
	pcap.3 pcap_datalink_val_to_description.3 \
	pcap.3 pcap_snapshot.3 \
	pcap.3 pcap_is_swapped.3 \
	pcap.3 pcap_major_version.3 \
	pcap.3 pcap_minor_version.3 \
	pcap.3 pcap_stats.3 \
	pcap.3 pcap_file.3 \
	pcap.3 pcap_fileno.3 \
	pcap.3 pcap_get_selectable_fd.3 \
	pcap.3 pcap_perror.3 \
	pcap.3 pcap_geterr.3 \
	pcap.3 pcap_strerror.3 \
	pcap.3 pcap_lib_version.3 \
	pcap.3 pcap_close.3 \
	pcap.3 pcap_dump_flush.3 \
	pcap.3 pcap_dump_ftell.3 \
	pcap.3 pcap_dump_file.3 \
	pcap.3 pcap_dump_close.3

CLEANFILES=tokdefs.h version.h version.c
d93 1
a93 1
SHLIB_MAJOR=5
d114 16
@


1.40
log
@Update for libpcap 0.9.8 import
@
text
@d15 48
@


1.39
log
@Bump library versions in preparation for 7.0.

Ok'd by:	kan
@
text
@d13 1
a13 1
INCS=	pcap.h pcap-int.h pcap-namedb.h
d25 3
@


1.39.2.1
log
@MFC:
  Import of tcpdump 3.9.8 and libpcap 0.9.8

Approved by:	re (kensmith)
@
text
@d13 1
a13 1
INCS=	pcap.h pcap-int.h pcap-namedb.h pcap-bpf.h
a24 3
.if ${MK_PF} != "no"
CFLAGS+=-DHAVE_NET_PFVAR_H
.endif
@


1.39.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/lib/libpcap/Makefile 172786 2007-10-19 03:04:02Z mlaier $
@


1.39.2.1.10.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.39.2.1.10.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/lib/libpcap/Makefile 172786 2007-10-19 03:04:02Z mlaier $
@


1.39.2.1.8.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.39.2.1.6.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.39.2.1.4.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.38
log
@Place shared libpcap library under /lib, currently needed by
/sbin/ipf and /sbin/pflogd.

OK'ed by:	mlaier
@
text
@d26 1
a26 1
SHLIB_MAJOR=4
@


1.37
log
@Reimplementation of world/kernel build options.  For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
@
text
@d4 2
@


1.36
log
@bump SHLIB_MAJOR as libpcap refers getnetbyname(3).

Noticed by:	ru
@
text
@d4 2
d20 1
a20 1
.if !defined(NO_INET6)
@


1.36.2.1
log
@MFC rev. 1.38
Place shared libpcap library under /lib, currently needed by
/sbin/ipf and /sbin/pflogd.

Reviewed by:	ru@@
Approved by:	re@@ (kensmith@@)
@
text
@a3 2
SHLIBDIR?= /lib

@


1.36.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/lib/libpcap/Makefile 162769 2006-09-29 07:02:21Z matteo $
@


1.36.2.1.6.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.35
log
@NOINET6 -> NO_INET6
@
text
@d22 1
a22 1
SHLIB_MAJOR=3
@


1.34
log
@Bump the library version numbers for the following libraries:

	/lib/{libm,libreadline}
	/usr/lib/{libhistory,libopie,libpcap}

in preparation for doing the same thing to RELENG_5.  HUGE amounts of
help for determining what to bump provided by kris.

Discussed on:	freebsd-current
Approved by:	re (not required for commit but something like this should be)
@
text
@d18 1
a18 1
.if !defined(NOINET6)
@


1.33
log
@Merge of libpcap 0.8.3 from tcpdump.org.
@
text
@d22 1
a22 1
SHLIB_MAJOR=2
@


1.33.2.1
log
@MFC: Bump of library version numbers for:

	/lib/{libm,libreadline}
	/usr/lib/{libhistory,libopie,libpcap}

Versions of effected files being MFC-ed from commit done to HEAD:

	Revision  Changes    Path
	1.367     +15 -0     src/UPDATING
	1.10      +1 -1      src/gnu/lib/libreadline/Makefile.inc
	1.19      +1 -1      src/lib/libopie/Makefile
	1.34      +1 -1      src/lib/libpcap/Makefile
	1.52      +1 -0      src/lib/msun/Makefile

Approved by:	re (scottl)
@
text
@d22 1
a22 1
SHLIB_MAJOR=3
@


1.32
log
@* Modify libpcap to work a bit better with our 802.11 code.  This means
  tcpdump -y ieee802_11 will work in the basic senses, including the
  code compilation for filters (where you may specify "link[]" to refer
  to parts of the 802.11 header, as well as treat it like a normal
  Ethernet header).  Previously, it was just too far off to do anything
  useful for us.
* While I'm here, fix some compile problems that will result from lex
  and yacc namespace polution when linking with -lpcap.  The namespace
  is now "pcapyy*" instead of "yy*", and it tests fine with world and
  some external applications that may or may not use "yy*".
@
text
@d4 3
a6 3
LIB=    pcap
SRCS=	grammar.y tokdefs.h pcap-bpf.c \
	pcap.c inet.c gencode.c optimize.c nametoaddr.c \
d11 1
a11 1
CLEANFILES=tokdefs.h version.c
d16 2
d35 4
@


1.31
log
@Zap now-unused SHLIB_MINOR
@
text
@d13 3
a15 1
CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcap_lval -I${.CURDIR} -I.
@


1.30
log
@Added new bsd.incs.mk which handles installing of header files
via INCS.  Implemented INCSLINKS (equivalent to SYMLINKS) to
handle symlinking include files.  Allow for multiple groups of
include files to be installed, with the powerful INCSGROUPS knob.
Documentation to follow.

Added standard `includes' and `incsinstall' targets, use them
in Makefile.inc1.  Headers from the following makefiles were
not installed before (during `includes' in Makefile.inc1):

	kerberos5/lib/libtelnet/Makefile
	lib/libbz2/Makefile
	lib/libdevinfo/Makefile
	lib/libform/Makefile
	lib/libisc/Makefile
	lib/libmenu/Makefile
	lib/libmilter/Makefile
	lib/libpanel/Makefile

Replaced all `beforeinstall' targets for installing includes
with the INCS stuff.

Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS,
and for compatibility with NetBSD.  Similarly for INCOWN, INCGRP,
and INCMODE.

Consistently use INCLUDEDIR instead of /usr/include.

gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes
were only lightly tested due to the missing contrib/libstdc++-v3.
I fully tested the pre-WIP_GCC31 version of this patch with the
contrib/libstdc++.295 stuff.

These changes have been tested on i386 with the -DNO_WERROR "make
world" and "make release".
@
text
@a18 1
SHLIB_MINOR=5
@


1.29
log
@Update our bpf.h with tcpdump.org's new DLT_ types.
Use our bpf.h instead of tcpdump.org's to build libpcap.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.28 2001/04/03 10:08:51 bde Exp $
d9 1
a31 6

beforeinstall:
.for i in pcap.h pcap-int.h pcap-namedb.h
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${PCAP_DISTDIR}/$i \
		${DESTDIR}/usr/include
.endfor
@


1.28
log
@Fixed world breakage in previous commit (config.h was inaccessible
except in the unusual case where ${.OBJDIR} == ${.CURDIR}).

Fixed nearby style bugs (the DEFS variable had rotted to be just
an obfuscation).
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.27 2001/04/03 04:34:50 fenner Exp $
d24 1
a24 1
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf
@


1.27
log
@Update for libpcap 0.6.2
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.26 2001/03/27 17:27:14 ru Exp $
d12 1
a12 1
DEFS=	-DHAVE_CONFIG_H
d14 1
a14 1
DEFS+=	-DINET6
a15 2

CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS}
@


1.26
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.25 2000/04/15 20:45:51 steve Exp $
d6 3
a8 3
        pcap.c inet.c gencode.c optimize.c nametoaddr.c \
	etherent.c savefile.c bpf_filter.c bpf_image.c \
        scanner.l version.c
d12 1
a12 3
DEFS=	-DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 \
	-DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \
	-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1
d20 1
a20 1
SHLIB_MINOR=4
d26 1
a26 1
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl
@


1.25
log
@Don't try to compile in INET6 support when NOINET6 is defined.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.24 2000/01/30 00:44:23 fenner Exp $
d9 1
a9 1
MAN3=	pcap.3
@


1.24
log
@Upgrade to libpcap 0.5
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.23 1999/08/28 00:05:21 peter Exp $
d14 4
a17 1
	-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1 -DINET6
@


1.24.2.1
log
@MFC: r1.25: NOINET6 support
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.24 2000/01/30 00:44:23 fenner Exp $
d14 1
a14 4
	-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1
.if !defined(NOINET6)
DEFS+=	-DINET6
.endif
@


1.24.2.2
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.24.2.1 2001/03/05 06:25:11 kris Exp $
d9 1
a9 1
MAN=	pcap.3
@


1.24.2.3
log
@MFC: libpcap 0.6
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/libpcap/Makefile,v 1.24.2.2 2001/04/25 10:04:37 ru Exp $
d6 3
a8 3
	pcap.c inet.c gencode.c optimize.c nametoaddr.c \
	etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c \
	scanner.l version.c
d12 3
a14 1
CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcap_lval -I${.CURDIR} -I.
d16 1
a16 1
CFLAGS+=-DINET6
d19 2
d22 1
a22 1
SHLIB_MINOR=5
d28 1
a28 1
CFLAGS+=-I${PCAP_DISTDIR}
@


1.24.2.4
log
@MFC: bsd.incs.mk support and assorted header fixes:

Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/.

Install sys/netatm/*/*.h to /usr/include/netatm/*/.

Don't install compatibility symlinks for <machine/soundcard.h>
and <machine/joystick.h>.

Don't install IPFILTER headers.  Userland utilities fetch them
directly, and they were not visible in the SHARED=symlinks case.

Resurrect SHARED=symlinks in Makefile.inc1.

PR:		docs/29534, bin/28002
@
text
@d2 1
a2 1
# $FreeBSD$
a8 1
INCS=	pcap.h pcap-int.h pcap-namedb.h
d31 6
@


1.24.2.5
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/lib/libpcap/Makefile 100501 2002-07-22 14:21:52Z ru $
@


1.23
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d14 1
a14 1
	-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1 
d19 1
a19 1
SHLIB_MINOR=3
@


1.22
log
@Fixed CLEANFILES.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.21 1998/09/15 19:34:01 fenner Exp $
@


1.22.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.21
log
@Bump minor version number and add version.c to update to version 0.4

PR:		bin/7877
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.20 1998/08/18 10:29:37 ache Exp $
d10 1
a10 1
CLEANFILES+= tokdefs.h
@


1.20
log
@do not include private copy of bpf.h - it leads to dangerous mismatch
of kernel/user bpf interface - include updated /sys/net/bpf.h instead
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.19 1998/05/08 06:43:07 bde Exp $
d8 1
a8 1
        scanner.l
d19 1
a19 1
SHLIB_MINOR=2
d28 4
@


1.19
log
@Simplified by using new yacc rules.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.18 1997/10/10 11:55:42 peter Exp $
d25 1
a25 1
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf
@


1.18
log
@Also install pcap-int.h so things can call pcap_compile on arbitary
expressions (eg: in pppd)
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.17 1997/10/05 09:39:25 jkh Exp $
d5 1
a5 1
SRCS=	grammar.c tokdefs.h pcap-bpf.c \
d8 1
a8 1
        scanner.c
d10 1
a10 1
CLEANFILES+= tokdefs.h grammar.c scanner.c y.tab.c y.tab.h
d35 2
a36 5
.ORDER: grammar.c tokdefs.h
tokdefs.h grammar.c: grammar.y
	${YACC} ${YACCFLAGS} -d ${PCAP_DISTDIR}/grammar.y
	mv y.tab.c grammar.c
	mv y.tab.h tokdefs.h
@


1.17
log
@Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@@nnd.itfs.nsk.su>
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.16 1997/05/27 00:08:01 fenner Exp $
d30 1
a30 1
.for i in pcap.h pcap-namedb.h
@


1.16
log
@Bump minor version number.
Add -I${PCAP_DISTDIR}/bpf to CFLAGS since our <net/bpf.h> is out of date.
Remove -Wall and -Dlint.
DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \
	-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1

CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS}

SHLIB_MAJOR=2
SHLIB_MINOR=2

#
# Magic to grab sources out of src/contrib
#
PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf
.PATH:	${PCAP_DISTDIR}
.PATH:	${PCAP_DISTDIR}/bpf/net

beforeinstall:
.for i in pcap.h pcap-namedb.h
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${PCAP_DISTDIR}/$i \
		${DESTDIR}/usr/include
.endfor

tokdefs.h grammar.c: grammar.y
	${YACC} ${YACCFLAGS} -d ${PCAP_DISTDIR}/grammar.y
	mv y.tab.c grammar.c
	mv y.tab.h tok/home/ncvs/CVSROOT/commitcheck
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.15 1997/02/22 15:07:50 peter Exp $
d35 1
@


1.15
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
# $Id$
d16 1
a16 1
CFLAGS+=-Wall -I. -I${.CURDIR} -Dyylval=pcap_lval -Dlint ${DEFS}
d19 1
a19 1
SHLIB_MINOR=1
d25 1
a25 1
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl
@


1.14
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.13
log
@Fix Makefile so that dependencies are actually right this time.
It is almost always the wrong thing to put .y and .l files directly
into the SRCS.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.12 1996/08/30 01:59:46 peter Exp $
@


1.12
log
@cmp -s || install -c ==> install -C, use .for loop for includes
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.11 1996/08/21 16:50:08 pst Exp $
d5 1
a5 1
SRCS=	pcap-bpf.c \
d8 1
a8 1
        grammar.y scanner.l
d10 1
a10 1
CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c
d35 4
a38 4
scanner.o: tokdefs.h

tokdefs.h: grammar.c
	mv -f y.tab.h tokdefs.h
@


1.12.2.1
log
@MFC: parallelize
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.12 1996/08/30 01:59:46 peter Exp $
a36 1
.ORDER: grammar.c tokdefs.h
@


1.12.2.2
log
@MFC: better yacc handling.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.12.2.1 1997/10/26 22:48:31 jkh Exp $
d5 1
a5 1
SRCS=	grammar.c tokdefs.h pcap-bpf.c \
d8 1
a8 1
        scanner.c
d10 1
a10 1
CLEANFILES+= tokdefs.h grammar.c scanner.c y.tab.c y.tab.h
d16 1
a16 1
CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS}
d19 1
a19 1
SHLIB_MINOR=2
d25 1
a25 1
CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf
d30 1
a30 1
.for i in pcap.h pcap-int.h pcap-namedb.h
d35 2
d38 2
a39 4
tokdefs.h grammar.c: grammar.y
	${YACC} ${YACCFLAGS} -d ${PCAP_DISTDIR}/grammar.y
	mv y.tab.c grammar.c
	mv y.tab.h tokdefs.h
@


1.12.2.3
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.11
log
@Uniquely name the distribution directory variable so that it can be overridden
for multiple packages at the same time.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.10 1996/08/20 05:43:51 pst Exp $
d30 4
a33 7
	-cmp -s ${PCAP_DISTDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h || \
	  ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${PCAP_DISTDIR}/pcap.h ${DESTDIR}/usr/include; )
	-cmp -s ${PCAP_DISTDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \
	  ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
	    ${PCAP_DISTDIR}/pcap-namedb.h ${DESTDIR}/usr/include; )

@


1.10
log
@Bump shared library number to 2.1
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.9 1996/08/19 21:00:45 pst Exp $
d24 4
a27 4
DISTDIR?=${.CURDIR}/../../contrib/libpcap
CFLAGS+=-I${DISTDIR} -I${DISTDIR}/lbl
.PATH:	${DISTDIR}
.PATH:	${DISTDIR}/bpf/net
d30 1
a30 1
	-cmp -s ${DISTDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h || \
d32 2
a33 2
	    ${DISTDIR}/pcap.h ${DESTDIR}/usr/include; )
	-cmp -s ${DISTDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \
d35 1
a35 1
	    ${DISTDIR}/pcap-namedb.h ${DESTDIR}/usr/include; )
@


1.9
log
@Grab libpcap sources out of contrib_libpcap module
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.7 1996/06/02 17:09:03 phk Exp $
a9 1

d18 3
d25 1
a27 1
CFLAGS+=-I${DISTDIR} -I${DISTDIR}/lbl
@


1.8
log
@Define ETHER_SERVICE, since we have one.  ie: use getetherxxx() instead
of parsing /etc/ethers manually. This allows it to read NIS.
@
text
@d5 3
a7 5

SRCS=	\
        pcap-bpf.c \
        pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c savefile.c \
        bpf_filter.c bpf_image.c \
d9 1
d12 14
a25 3
# CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI -Dyylval=pcap_lval
CFLAGS+=-DFDDI -I. -I${.CURDIR} -DETHER_SERVICE
MAN3=	pcap.3
d28 1
a28 1
	-cmp -s ${.CURDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h || \
d30 2
a31 2
	    ${.CURDIR}/pcap.h ${DESTDIR}/usr/include; )
	-cmp -s ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include/pcap-namedb.h || \
d33 2
a34 1
	    ${.CURDIR}/pcap-namedb.h ${DESTDIR}/usr/include; )
a39 1

@


1.7
log
@backout yacc changes
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.5 1996/05/07 23:19:02 wosch Exp $
d14 1
a14 1
CFLAGS+=-DFDDI -I. -I${.CURDIR}
@


1.6
log
@yacc rule change.
@
text
@d12 1
a12 1
CLEANFILES+= scanner.c tokdefs.h grammar.c scanner.c
d28 1
a28 1
	mv -f grammar.tab.h tokdefs.h
@


1.5
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1995/08/06 12:37:41 bde Exp $
d12 1
a12 1
CLEANFILES+= lex.yy.c tokdefs.h grammar.c scanner.c
d28 1
a28 1
	mv -f y.tab.h tokdefs.h
@


1.4
log
@Install source files with the -c flag, not with the optional flag ${COPY}.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1995/02/23 18:47:06 ache Exp $
d28 1
a28 1
	mv y.tab.h tokdefs.h
@


1.3
log
@Fix typo: pcap.h.h
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1995/02/21 10:46:25 olah Exp $
d19 1
a19 1
	  ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
d22 1
a22 1
	  ( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
@


1.3.4.1
log
@Brought in changes from main branch: fix -c/COPY, install->${INSTALL}
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1995/02/23 18:47:06 ache Exp $
d19 1
a19 1
	  ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
d22 1
a22 1
	  ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \
@


1.3.4.2
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.2
log
@Fix bogus Makefile which resulted in incompatible shared and static
libs.

Reviewed by:	Michael Reifenberger <root@@rz-wb.fh-sw.de>,
		roberto@@blaise.ibp.fr (Ollivier ROBERT)
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1.1.1 1995/01/20 04:13:07 jkh Exp $
d18 1
a18 1
	-cmp -s ${.CURDIR}/pcap.h ${DESTDIR}/usr/include/pcap.h.h || \
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.8 1994/11/16 11:54:09 ache Exp $
d10 1
a10 2
        grammar.y \
        scanner.l
d13 2
a14 1
CFLAGS+=-Wall -I. -I${.CURDIR} -DFDDI 
d25 1
a25 7

scanner.c: scanner.l
	rm -f $@@
	$(LEX) -t $< > $@@

scanner.o: scanner.c
	rm -f $@@; $(CC) $(CFLAGS) $(LEX_DEFINES) -c $*.c
a27 5

grammar.c: grammar.y
	rm -f grammar.c tokdefs.h
	$(YACC) -d $<
	mv y.tab.c grammar.c
a28 3

grammar.o: grammar.c
	$(CC) -c $(CFLAGS) -Dyylval=pcap_lval grammar.c
@


1.1.1.1
log
@Add the Packet Capture Library from Michael Reifenberger.
Submitted by:	mr
@
text
@@
