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 30298107SgjbPACKAGE=lib${LIB} 31284421SbaptSHLIBDIR?= /lib 32156837Sru 33265420Simp.include <src.opts.mk> 34156813Sru 3555505SshinLIB= ipsec 36195767SkensmithSHLIB_MAJOR= 4 3769640SobrienCFLAGS+=-I. -I${.CURDIR} 3859266SsteveCFLAGS+=-DIPSEC_DEBUG -DIPSEC 39156813Sru.if ${MK_INET6_SUPPORT} != "no" 4059266SsteveCFLAGS+=-DINET6 4159266Ssteve.endif 4255505Sshin 43171135Sgnn#.PATH: ${.CURDIR}/../../sys/netipsec 4462583Sitojun#SRCS= pfkey.c pfkey_dump.c 4555505SshinSRCS+= ipsec_strerror.c policy_parse.y policy_token.l 4655505SshinSRCS+= ipsec_dump_policy.c ipsec_get_policylen.c 4762583Sitojun#SRCS+= key_debug.c 4855505SshinCLEANFILES+= y.tab.c y.tab.h 4958906SshinYFLAGS+=-d -p __libipsecyy 5058906SshinLFLAGS+=-P__libipsecyy 5155505Sshin 52201381SedWARNS?= 2 53201381Sed 5474870SruMAN= ipsec_set_policy.3 ipsec_strerror.3 5555505SshinMLINKS+=ipsec_set_policy.3 ipsec_get_policylen.3 \ 5655505Sshin ipsec_set_policy.3 ipsec_dump_policy.3 5755505Sshin 5855505SshinSRCS+= y.tab.h 5955505Sshiny.tab.h: policy_parse.y 6055505Sshin 6155505Sshin.include <bsd.lib.mk> 62