head	1.13;
access;
symbols
	netbsd-11-0-RC4:1.13
	netbsd-11-0-RC3:1.13
	netbsd-11-0-RC2:1.13
	netbsd-11-0-RC1:1.13
	perseant-exfatfs-base-20250801:1.13
	netbsd-11:1.13.0.54
	netbsd-11-base:1.13
	netbsd-10-1-RELEASE:1.13
	perseant-exfatfs-base-20240630:1.13
	perseant-exfatfs:1.13.0.52
	perseant-exfatfs-base:1.13
	netbsd-8-3-RELEASE:1.13
	netbsd-9-4-RELEASE:1.13
	netbsd-10-0-RELEASE:1.13
	netbsd-10-0-RC6:1.13
	netbsd-10-0-RC5:1.13
	netbsd-10-0-RC4:1.13
	netbsd-10-0-RC3:1.13
	netbsd-10-0-RC2:1.13
	netbsd-10-0-RC1:1.13
	netbsd-10:1.13.0.50
	netbsd-10-base:1.13
	netbsd-9-3-RELEASE:1.13
	cjep_sun2x-base1:1.13
	cjep_sun2x:1.13.0.48
	cjep_sun2x-base:1.13
	cjep_staticlib_x-base1:1.13
	netbsd-9-2-RELEASE:1.13
	cjep_staticlib_x:1.13.0.46
	cjep_staticlib_x-base:1.13
	netbsd-9-1-RELEASE:1.13
	phil-wifi-20200421:1.13
	phil-wifi-20200411:1.13
	is-mlppp:1.13.0.44
	is-mlppp-base:1.13
	phil-wifi-20200406:1.13
	netbsd-8-2-RELEASE:1.13
	netbsd-9-0-RELEASE:1.13
	netbsd-9-0-RC2:1.13
	netbsd-9-0-RC1:1.13
	phil-wifi-20191119:1.13
	netbsd-9:1.13.0.42
	netbsd-9-base:1.13
	phil-wifi-20190609:1.13
	netbsd-8-1-RELEASE:1.13
	netbsd-8-1-RC1:1.13
	pgoyette-compat-merge-20190127:1.13
	pgoyette-compat-20190127:1.13
	pgoyette-compat-20190118:1.13
	pgoyette-compat-1226:1.13
	pgoyette-compat-1126:1.13
	pgoyette-compat-1020:1.13
	pgoyette-compat-0930:1.13
	pgoyette-compat-0906:1.13
	netbsd-7-2-RELEASE:1.13
	pgoyette-compat-0728:1.13
	netbsd-8-0-RELEASE:1.13
	phil-wifi:1.13.0.40
	phil-wifi-base:1.13
	pgoyette-compat-0625:1.13
	netbsd-8-0-RC2:1.13
	pgoyette-compat-0521:1.13
	pgoyette-compat-0502:1.13
	pgoyette-compat-0422:1.13
	netbsd-8-0-RC1:1.13
	pgoyette-compat-0415:1.13
	pgoyette-compat-0407:1.13
	pgoyette-compat-0330:1.13
	pgoyette-compat-0322:1.13
	pgoyette-compat-0315:1.13
	netbsd-7-1-2-RELEASE:1.13
	pgoyette-compat:1.13.0.38
	pgoyette-compat-base:1.13
	netbsd-7-1-1-RELEASE:1.13
	matt-nb8-mediatek:1.13.0.36
	matt-nb8-mediatek-base:1.13
	perseant-stdc-iso10646:1.13.0.34
	perseant-stdc-iso10646-base:1.13
	netbsd-8:1.13.0.32
	netbsd-8-base:1.13
	prg-localcount2-base3:1.13
	prg-localcount2-base2:1.13
	prg-localcount2-base1:1.13
	prg-localcount2:1.13.0.30
	prg-localcount2-base:1.13
	pgoyette-localcount-20170426:1.13
	bouyer-socketcan-base1:1.13
	pgoyette-localcount-20170320:1.13
	netbsd-7-1:1.13.0.28
	netbsd-7-1-RELEASE:1.13
	netbsd-7-1-RC2:1.13
	netbsd-7-nhusb-base-20170116:1.13
	bouyer-socketcan:1.13.0.26
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	netbsd-7-1-RC1:1.13
	pgoyette-localcount-20161104:1.13
	netbsd-7-0-2-RELEASE:1.13
	localcount-20160914:1.13
	netbsd-7-nhusb:1.13.0.24
	netbsd-7-nhusb-base:1.13
	pgoyette-localcount-20160806:1.13
	pgoyette-localcount-20160726:1.13
	pgoyette-localcount:1.13.0.22
	pgoyette-localcount-base:1.13
	netbsd-7-0-1-RELEASE:1.13
	netbsd-7-0:1.13.0.20
	netbsd-7-0-RELEASE:1.13
	netbsd-7-0-RC3:1.13
	netbsd-7-0-RC2:1.13
	netbsd-7-0-RC1:1.13
	netbsd-5-2-3-RELEASE:1.9
	netbsd-5-1-5-RELEASE:1.9
	netbsd-6-0-6-RELEASE:1.13
	netbsd-6-1-5-RELEASE:1.13
	netbsd-7:1.13.0.18
	netbsd-7-base:1.13
	yamt-pagecache-base9:1.13
	yamt-pagecache-tag8:1.12.6.1
	netbsd-6-1-4-RELEASE:1.13
	netbsd-6-0-5-RELEASE:1.13
	tls-earlyentropy:1.13.0.16
	tls-earlyentropy-base:1.13
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13
	riastradh-drm2-base3:1.13
	netbsd-6-1-3-RELEASE:1.13
	netbsd-6-0-4-RELEASE:1.13
	netbsd-5-2-2-RELEASE:1.9
	netbsd-5-1-4-RELEASE:1.9
	netbsd-6-1-2-RELEASE:1.13
	netbsd-6-0-3-RELEASE:1.13
	netbsd-5-2-1-RELEASE:1.9
	netbsd-5-1-3-RELEASE:1.9
	netbsd-6-1-1-RELEASE:1.13
	riastradh-drm2-base2:1.13
	riastradh-drm2-base1:1.13
	riastradh-drm2:1.13.0.10
	riastradh-drm2-base:1.13
	netbsd-6-1:1.13.0.14
	netbsd-6-0-2-RELEASE:1.13
	netbsd-6-1-RELEASE:1.13
	netbsd-6-1-RC4:1.13
	netbsd-6-1-RC3:1.13
	agc-symver:1.13.0.12
	agc-symver-base:1.13
	netbsd-6-1-RC2:1.13
	netbsd-6-1-RC1:1.13
	yamt-pagecache-base8:1.13
	netbsd-5-2:1.9.0.40
	netbsd-6-0-1-RELEASE:1.13
	yamt-pagecache-base7:1.13
	netbsd-5-2-RELEASE:1.9
	netbsd-5-2-RC1:1.9
	matt-nb6-plus-nbase:1.13
	yamt-pagecache-base6:1.13
	netbsd-6-0:1.13.0.8
	netbsd-6-0-RELEASE:1.13
	netbsd-6-0-RC2:1.13
	tls-maxphys:1.13.0.6
	tls-maxphys-base:1.13
	matt-nb6-plus:1.13.0.4
	matt-nb6-plus-base:1.13
	netbsd-6-0-RC1:1.13
	yamt-pagecache-base5:1.13
	yamt-pagecache-base4:1.13
	netbsd-6:1.13.0.2
	netbsd-6-base:1.13
	netbsd-5-1-2-RELEASE:1.9
	netbsd-5-1-1-RELEASE:1.9
	yamt-pagecache-base3:1.12
	yamt-pagecache-base2:1.12
	yamt-pagecache:1.12.0.6
	yamt-pagecache-base:1.12
	cherry-xenmp:1.12.0.4
	cherry-xenmp-base:1.12
	bouyer-quota2-nbase:1.12
	bouyer-quota2:1.12.0.2
	bouyer-quota2-base:1.12
	matt-mips64-premerge-20101231:1.12
	matt-nb5-mips64-premerge-20101231:1.9
	matt-nb5-pq3:1.9.0.38
	matt-nb5-pq3-base:1.9
	netbsd-5-1:1.9.0.36
	netbsd-5-1-RELEASE:1.9
	netbsd-5-1-RC4:1.9
	matt-nb5-mips64-k15:1.9
	netbsd-5-1-RC3:1.9
	netbsd-5-1-RC2:1.9
	netbsd-5-1-RC1:1.9
	netbsd-5-0-2-RELEASE:1.9
	matt-nb5-mips64-premerge-20091211:1.9
	matt-premerge-20091211:1.12
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.9
	matt-nb4-mips64-k7-u2a-k9b:1.9
	matt-nb5-mips64-u1-k1-k5:1.9
	matt-nb5-mips64:1.9.0.34
	netbsd-5-0-1-RELEASE:1.9
	jym-xensuspend-nbase:1.11
	netbsd-5-0:1.9.0.32
	netbsd-5-0-RELEASE:1.9
	netbsd-5-0-RC4:1.9
	netbsd-5-0-RC3:1.9
	netbsd-5-0-RC2:1.9
	jym-xensuspend:1.9.0.30
	jym-xensuspend-base:1.11
	netbsd-5-0-RC1:1.9
	netbsd-5:1.9.0.28
	netbsd-5-base:1.9
	matt-mips64-base2:1.9
	matt-mips64:1.9.0.26
	netbsd-4-0-1-RELEASE:1.9
	wrstuden-revivesa-base-3:1.9
	wrstuden-revivesa-base-2:1.9
	wrstuden-fixsa-newbase:1.9
	wrstuden-revivesa-base-1:1.9
	yamt-pf42-base4:1.9
	yamt-pf42-base3:1.9
	hpcarm-cleanup-nbase:1.9
	yamt-pf42-baseX:1.9
	yamt-pf42-base2:1.9
	wrstuden-revivesa:1.9.0.24
	wrstuden-revivesa-base:1.9
	yamt-pf42:1.9.0.22
	yamt-pf42-base:1.9
	mjf-devfs2:1.9.0.20
	mjf-devfs2-base:1.9
	keiichi-mipv6:1.9.0.18
	keiichi-mipv6-base:1.9
	matt-armv6-nbase:1.9
	matt-armv6-prevmlocking:1.9
	wrstuden-fixsa-base-1:1.9
	netbsd-4-0:1.9.0.16
	netbsd-4-0-RELEASE:1.9
	cube-autoconf:1.9.0.14
	cube-autoconf-base:1.9
	mjf-devfs:1.9.0.12
	mjf-devfs-base:1.9
	netbsd-4-0-RC5:1.9
	netbsd-4-0-RC4:1.9
	netbsd-4-0-RC3:1.9
	netbsd-4-0-RC2:1.9
	netbsd-4-0-RC1:1.9
	matt-armv6:1.9.0.10
	matt-armv6-base:1.9
	matt-mips64-base:1.9
	hpcarm-cleanup:1.9.0.8
	hpcarm-cleanup-base:1.9
	netbsd-3-1-1-RELEASE:1.6.2.1
	netbsd-3-0-3-RELEASE:1.6.2.1
	wrstuden-fixsa:1.9.0.6
	wrstuden-fixsa-base:1.9
	abandoned-netbsd-4-base:1.9
	abandoned-netbsd-4:1.9.0.2
	netbsd-3-1:1.6.2.1.0.4
	netbsd-3-1-RELEASE:1.6.2.1
	netbsd-3-0-2-RELEASE:1.6.2.1
	netbsd-3-1-RC4:1.6.2.1
	netbsd-3-1-RC3:1.6.2.1
	netbsd-3-1-RC2:1.6.2.1
	netbsd-3-1-RC1:1.6.2.1
	netbsd-4:1.9.0.4
	netbsd-4-base:1.9
	netbsd-3-0-1-RELEASE:1.6.2.1
	netbsd-3-0:1.6.2.1.0.2
	netbsd-3-0-RELEASE:1.6.2.1
	netbsd-3-0-RC6:1.6.2.1
	netbsd-3-0-RC5:1.6.2.1
	netbsd-3-0-RC4:1.6.2.1
	netbsd-3-0-RC3:1.6.2.1
	netbsd-3-0-RC2:1.6.2.1
	netbsd-3-0-RC1:1.6.2.1
	netbsd-2-0-3-RELEASE:1.3
	netbsd-2-1:1.3.0.6
	netbsd-2-1-RELEASE:1.3
	netbsd-2-1-RC6:1.3
	netbsd-2-1-RC5:1.3
	netbsd-2-1-RC4:1.3
	netbsd-2-1-RC3:1.3
	netbsd-2-1-RC2:1.3
	netbsd-2-1-RC1:1.3
	netbsd-2-0-2-RELEASE:1.3
	netbsd-3:1.6.0.2
	netbsd-3-base:1.6
	netbsd-2-0-1-RELEASE:1.3
	netbsd-2:1.3.0.4
	netbsd-2-base:1.3
	netbsd-2-0-RELEASE:1.3
	netbsd-2-0-RC5:1.3
	netbsd-2-0-RC4:1.3
	netbsd-2-0-RC3:1.3
	netbsd-2-0-RC2:1.3
	netbsd-2-0-RC1:1.3
	netbsd-2-0:1.3.0.2
	netbsd-2-0-base:1.3
	netbsd-1-6-PATCH002-RELEASE:1.2
	netbsd-1-6-PATCH002:1.2
	netbsd-1-6-PATCH002-RC4:1.2
	netbsd-1-6-PATCH002-RC3:1.2
	netbsd-1-6-PATCH002-RC2:1.2
	netbsd-1-6-PATCH002-RC1:1.2
	netbsd-1-6-PATCH001:1.2
	netbsd-1-6-PATCH001-RELEASE:1.2
	netbsd-1-6-PATCH001-RC3:1.2
	netbsd-1-6-PATCH001-RC2:1.2
	netbsd-1-6-PATCH001-RC1:1.2
	fvdl_fs64_base:1.3
	netbsd-1-6-RELEASE:1.2
	netbsd-1-6-RC3:1.2
	netbsd-1-6-RC2:1.2
	netbsd-1-6-RC1:1.2
	netbsd-1-6:1.2.0.2
	netbsd-1-6-base:1.2
	netbsd-1-5-PATCH003:1.1
	netbsd-1-5-PATCH002:1.1
	netbsd-1-5-PATCH001:1.1
	netbsd-1-5-RELEASE:1.1
	netbsd-1-5-BETA2:1.1
	netbsd-1-5-BETA:1.1
	netbsd-1-5-ALPHA2:1.1
	minoura-xpg4dl:1.1.0.4
	netbsd-1-5:1.1.0.2
	netbsd-1-5-base:1.1;
locks; strict;
comment	@# @;


1.13
date	2012.01.04.15.55.36;	author drochner;	state Exp;
branches;
next	1.12;

1.12
date	2009.10.29.14.34.06;	author christos;	state Exp;
branches
	1.12.6.1;
next	1.11;

1.11
date	2009.04.20.16.05.30;	author drochner;	state Exp;
branches;
next	1.10;

1.10
date	2009.04.11.07.58.13;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2005.12.16.16.25.07;	author jmc;	state Exp;
branches
	1.9.30.1;
next	1.8;

1.8
date	2005.12.15.14.27.21;	author jmc;	state Exp;
branches;
next	1.7;

1.7
date	2005.06.27.01.00.06;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	2005.02.24.13.45.08;	author manu;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2005.02.19.16.58.26;	author thorpej;	state Exp;
branches;
next	1.4;

1.4
date	2005.02.19.16.55.05;	author thorpej;	state Exp;
branches;
next	1.3;

1.3
date	2002.08.19.10.17.00;	author lukem;	state Exp;
branches;
next	1.2;

1.2
date	2000.10.29.12.32.06;	author itojun;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.13.15.15.24;	author itojun;	state Exp;
branches
	1.1.4.1;
next	;

1.12.6.1
date	2012.04.17.00.05.43;	author yamt;	state Exp;
branches;
next	;

1.9.30.1
date	2009.05.13.19.19.06;	author jym;	state Exp;
branches;
next	;

1.6.2.1
date	2005.09.03.07.03.57;	author snj;	state Exp;
branches;
next	;

1.1.4.1
date	2000.06.13.15.15.24;	author minoura;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2000.06.22.16.05.47;	author minoura;	state Exp;
branches;
next	;


desc
@@


1.13
log
@-consistently use "char *" for the compiled policy buffer in the
 ipsec_*_policy() functions, as it was documented and used by clients
-remove "ipsec_policy_t" which was undocumented and only present
 in the KAME version of the ipsec.h header
-misc cleanup of historical artefacts, and to remove unnecessary
 differences between KAME ans FAST_IPSEC
@
text
@# $NetBSD: Makefile,v 1.12 2009/10/29 14:34:06 christos Exp $

WARNS?=	3	# XXX: sign-compare issues

.include <bsd.own.mk>

PROG=	setkey
SRCS=	setkey.c parse.y token.l
MAN=	setkey.8

YHEADER=parse.h

DIST=	${NETBSDSRCDIR}/crypto/dist/ipsec-tools

CPPFLAGS+= -I${DIST}/src/setkey -I${DIST}/src/libipsec
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I.
CPPFLAGS+= -DIPSEC_DEBUG -DHAVE_CONFIG_H

LDADD+= -ll -ly -lipsec
DPADD+=	${LIBL} ${LIBY} ${LIBIPSEC}

.if (${USE_INET6} != "no")
CPPFLAGS+=-DINET6
.endif

.PATH: ${DIST}/src/setkey 

.include <bsd.prog.mk>
@


1.12
log
@no need for noinput
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2009/04/20 16:05:30 drochner Exp $
a17 1
CPPFLAGS+= -DSADB_X_EALG_AESCBC=SADB_X_EALG_AES
@


1.12.6.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2009/10/29 14:34:06 christos Exp $
d18 1
@


1.11
log
@define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2009/04/11 07:58:13 lukem Exp $
d16 1
a16 1
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I. -DYY_NO_INPUT
@


1.10
log
@Enable WARNS=4 by default except for:
	dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2005/12/16 16:25:07 jmc Exp $
d16 1
a16 1
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I.
@


1.9
log
@Redo previous rework to generate yacc/lex output again and remove generated
copies from the import as they don't compile clean across all archs.
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.7 2005/06/27 01:00:06 christos Exp $
@


1.9.30.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.11 2009/04/20 16:05:30 drochner Exp $

WARNS?=	3	# XXX: sign-compare issues
d14 1
a14 1
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I. -DYY_NO_INPUT
@


1.8
log
@Don't yacc/lex here as dist includes generated copies already and depending
on timestamps it's possible for gcc2 on vax to get confused on which .h
to use.
@
text
@a2 2
WARNS=  0       # Will be fixed later

d6 1
a6 1
SRCS=	setkey.c parse.c token.c
d9 2
a27 4

# Don't auto-frob .y or .l files.
.l.c .y.c .y.h:
	@@true
@


1.7
log
@Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.6 2005/02/24 13:45:08 manu Exp $
d8 1
a8 1
SRCS=	setkey.c parse.y token.l
a10 2
YHEADER=parse.h

d28 4
@


1.6
log
@Define SADB_X_EALG_AESCBC=SADB_X_EALG_AES, as we define SADB_X_EALG_AES
in <net/pfkeyv2.h> while ipsec-tools uses SADB_X_EALG_AESCBC in the code.
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.5 2005/02/19 16:58:26 thorpej Exp $

WARNS=	0	# Will be fixed later
@


1.6.2.1
log
@Apply patch (requested by tron in ticket #741):
Update ipsec-tools to version 0.6.1.
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.7 2005/06/27 01:00:06 christos Exp $
@


1.5
log
@Additional cleanup pass.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2005/02/19 16:55:05 thorpej Exp $
d18 1
@


1.4
log
@Switch to ipsec-tools for libipsec, setkey, and racoon.  From
Emmanuel Dreyfus, with some small changes by me.
@
text
@d1 1
a1 1
# $NetBSD$
d14 5
a18 4
CFLAGS+=-g
CPPFLAGS+=	-I${DIST}/src/setkey -I${DIST}/src/libipsec	\
		-I${NETBSDSRCDIR}/lib/libipsec -I.		\
		-DIPSEC_DEBUG -DHAVE_CONFIG_H
a20 1
CLEANFILES+=	setkey.cat8
d26 1
a26 1
.PATH:	${NETBSDSRCDIR}/lib/libipsec ${DIST}/src/setkey 
@


1.3
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.2 2000/10/29 12:32:06 itojun Exp $
d9 1
d11 1
a11 21
#CFLAGS+=-g
LDADD+=	-ll -ly
DPADD+=	${LIBL} ${LIBY}
CLEANFILES+=	y.tab.c y.tab.h key_test.o keytest
YHEADER=	yes

#SCRIPTS=	scriptdump

all: ${PROG} scriptdump

CPPFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT
CPPFLAGS+=-I. -I${.CURDIR}
LDADD+= -lipsec
DPADD+=	${LIBIPSEC}
CLEANFILES+=	scriptdump

# libpfkey.
# ipsec_strerror.c is for avoiding shlib reference to non-exported function.
.PATH: ${NETBSDSRCDIR}/lib/libipsec ${NETBSDSRCDIR}/sys/netkey
SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c
CPPFLAGS+=-I${NETBSDSRCDIR}/lib/libipsec -I${NETBSDSRCDIR}/sys/netkey
d13 12
a24 2
MAN=	setkey.8
LOCALPREFIX=	/usr/pkg
d26 1
a26 2
scriptdump: scriptdump.pl
	sed -e 's#@@LOCALPREFIX@@#${LOCALPREFIX}#' < $> > scriptdump
@


1.2
log
@use YHEADER, not YFLAGS+=-d.  from kre
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.1 2000/06/13 15:15:24 itojun Exp $
a8 1
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec
d26 1
a26 1
.PATH: ${.CURDIR}/../../lib/libipsec ${.CURDIR}/../../sys/netkey
d28 1
a28 1
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey
@


1.1
log
@move setkey(8) from usr.sbin to sbin, to enable us to initialize
IPsec manual key before /usr mount..
(based on "don't use cvsmove" discussion i have seen, I did not use cvsmove)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2000/06/12 10:40:50 itojun Exp $
d11 1
a11 1
YFLAGS+=-d
@


1.1.4.1
log
@file Makefile was added on branch minoura-xpg4dl on 2000-06-22 16:05:47 +0000
@
text
@d1 35
@


1.1.4.2
log
@Sync w/ netbsd-1-5-base.
@
text
@a0 35
# $NetBSD: Makefile,v 1.1.4.1 2000/06/22 16:05:47 minoura Exp $

PROG=	setkey
SRCS=	setkey.c parse.y token.l

#CFLAGS+=-g
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec
LDADD+=	-ll -ly
DPADD+=	${LIBL} ${LIBY}
CLEANFILES+=	y.tab.c y.tab.h key_test.o keytest
YFLAGS+=-d

#SCRIPTS=	scriptdump

all: ${PROG} scriptdump

CPPFLAGS+=-DIPSEC_DEBUG -DINET6 -DYY_NO_UNPUT
CPPFLAGS+=-I. -I${.CURDIR}
LDADD+= -lipsec
DPADD+=	${LIBIPSEC}
CLEANFILES+=	scriptdump

# libpfkey.
# ipsec_strerror.c is for avoiding shlib reference to non-exported function.
.PATH: ${.CURDIR}/../../lib/libipsec ${.CURDIR}/../../sys/netkey
SRCS+= pfkey.c pfkey_dump.c key_debug.c ipsec_strerror.c
CPPFLAGS+=-I${.CURDIR}/../../lib/libipsec -I${.CURDIR}/../../sys/netkey

MAN=	setkey.8
LOCALPREFIX=	/usr/pkg

scriptdump: scriptdump.pl
	sed -e 's#@@LOCALPREFIX@@#${LOCALPREFIX}#' < $> > scriptdump

.include <bsd.prog.mk>
@
