155505Sshin# Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
255505Sshin# All rights reserved.
355505Sshin#
455505Sshin# Redistribution and use in source and binary forms, with or without
555505Sshin# modification, are permitted provided that the following conditions
655505Sshin# are met:
755505Sshin# 1. Redistributions of source code must retain the above copyright
855505Sshin#    notice, this list of conditions and the following disclaimer.
955505Sshin# 2. Redistributions in binary form must reproduce the above copyright
1055505Sshin#    notice, this list of conditions and the following disclaimer in the
1155505Sshin#    documentation and/or other materials provided with the distribution.
1255505Sshin# 3. Neither the name of the project nor the names of its contributors
1355505Sshin#    may be used to endorse or promote products derived from this software
1455505Sshin#    without specific prior written permission.
1555505Sshin#
1655505Sshin# THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
1755505Sshin# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1855505Sshin# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1955505Sshin# ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
2055505Sshin# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2155505Sshin# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2255505Sshin# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2355505Sshin# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2455505Sshin# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2555505Sshin# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2655505Sshin# SUCH DAMAGE.
27122107Sume#
2855505Sshin# $FreeBSD$
2955505Sshin
30156837SruSHLIBDIR?= /lib
31156837Sru
32156813Sru.include <bsd.own.mk>
33156813Sru
3455505SshinLIB=	ipsec
35195767SkensmithSHLIB_MAJOR= 4
3669640SobrienCFLAGS+=-I. -I${.CURDIR}
3759266SsteveCFLAGS+=-DIPSEC_DEBUG -DIPSEC
38156813Sru.if ${MK_INET6_SUPPORT} != "no"
3959266SsteveCFLAGS+=-DINET6
4059266Ssteve.endif
4155505Sshin
42171135Sgnn#.PATH:	${.CURDIR}/../../sys/netipsec
4362583Sitojun#SRCS=	pfkey.c pfkey_dump.c
4455505SshinSRCS+=	ipsec_strerror.c policy_parse.y policy_token.l
4555505SshinSRCS+=	ipsec_dump_policy.c ipsec_get_policylen.c
4662583Sitojun#SRCS+=	key_debug.c
4755505SshinCLEANFILES+=	y.tab.c y.tab.h
4858906SshinYFLAGS+=-d -p __libipsecyy
4958906SshinLFLAGS+=-P__libipsecyy
5055505Sshin
51201381SedWARNS?=	2
52201381Sed
5374870SruMAN=	ipsec_set_policy.3 ipsec_strerror.3
5455505SshinMLINKS+=ipsec_set_policy.3 ipsec_get_policylen.3 \
5555505Sshin	ipsec_set_policy.3 ipsec_dump_policy.3
5655505Sshin
5755505SshinSRCS+= y.tab.h
5855505Sshiny.tab.h:	policy_parse.y
5955505Sshin
6055505Sshin.include <bsd.lib.mk>
61