head	1.19;
access;
symbols
	netbsd-11-0-RC7:1.19
	netbsd-11-0-RC6:1.19
	netbsd-11-0-RC5:1.19
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.2
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.18
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.52
	perseant-exfatfs-base:1.18
	netbsd-8-3-RELEASE:1.18
	netbsd-9-4-RELEASE:1.18
	netbsd-10-0-RELEASE:1.18
	netbsd-10-0-RC6:1.18
	netbsd-10-0-RC5:1.18
	netbsd-10-0-RC4:1.18
	netbsd-10-0-RC3:1.18
	netbsd-10-0-RC2:1.18
	netbsd-10-0-RC1:1.18
	netbsd-10:1.18.0.50
	netbsd-10-base:1.18
	netbsd-9-3-RELEASE:1.18
	cjep_sun2x-base1:1.18
	cjep_sun2x:1.18.0.48
	cjep_sun2x-base:1.18
	cjep_staticlib_x-base1:1.18
	netbsd-9-2-RELEASE:1.18
	cjep_staticlib_x:1.18.0.46
	cjep_staticlib_x-base:1.18
	netbsd-9-1-RELEASE:1.18
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	is-mlppp:1.18.0.44
	is-mlppp-base:1.18
	phil-wifi-20200406:1.18
	netbsd-8-2-RELEASE:1.18
	netbsd-9-0-RELEASE:1.18
	netbsd-9-0-RC2:1.18
	netbsd-9-0-RC1:1.18
	phil-wifi-20191119:1.18
	netbsd-9:1.18.0.42
	netbsd-9-base:1.18
	phil-wifi-20190609:1.18
	netbsd-8-1-RELEASE:1.18
	netbsd-8-1-RC1:1.18
	pgoyette-compat-merge-20190127:1.18
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.18
	pgoyette-compat-1126:1.18
	pgoyette-compat-1020:1.18
	pgoyette-compat-0930:1.18
	pgoyette-compat-0906:1.18
	netbsd-7-2-RELEASE:1.18
	pgoyette-compat-0728:1.18
	netbsd-8-0-RELEASE:1.18
	phil-wifi:1.18.0.40
	phil-wifi-base:1.18
	pgoyette-compat-0625:1.18
	netbsd-8-0-RC2:1.18
	pgoyette-compat-0521:1.18
	pgoyette-compat-0502:1.18
	pgoyette-compat-0422:1.18
	netbsd-8-0-RC1:1.18
	pgoyette-compat-0415:1.18
	pgoyette-compat-0407:1.18
	pgoyette-compat-0330:1.18
	pgoyette-compat-0322:1.18
	pgoyette-compat-0315:1.18
	netbsd-7-1-2-RELEASE:1.18
	pgoyette-compat:1.18.0.38
	pgoyette-compat-base:1.18
	netbsd-7-1-1-RELEASE:1.18
	matt-nb8-mediatek:1.18.0.36
	matt-nb8-mediatek-base:1.18
	perseant-stdc-iso10646:1.18.0.34
	perseant-stdc-iso10646-base:1.18
	netbsd-8:1.18.0.32
	netbsd-8-base:1.18
	prg-localcount2-base3:1.18
	prg-localcount2-base2:1.18
	prg-localcount2-base1:1.18
	prg-localcount2:1.18.0.30
	prg-localcount2-base:1.18
	pgoyette-localcount-20170426:1.18
	bouyer-socketcan-base1:1.18
	pgoyette-localcount-20170320:1.18
	netbsd-7-1:1.18.0.28
	netbsd-7-1-RELEASE:1.18
	netbsd-7-1-RC2:1.18
	netbsd-7-nhusb-base-20170116:1.18
	bouyer-socketcan:1.18.0.26
	bouyer-socketcan-base:1.18
	pgoyette-localcount-20170107:1.18
	netbsd-7-1-RC1:1.18
	pgoyette-localcount-20161104:1.18
	netbsd-7-0-2-RELEASE:1.18
	localcount-20160914:1.18
	netbsd-7-nhusb:1.18.0.24
	netbsd-7-nhusb-base:1.18
	pgoyette-localcount-20160806:1.18
	pgoyette-localcount-20160726:1.18
	pgoyette-localcount:1.18.0.22
	pgoyette-localcount-base:1.18
	netbsd-7-0-1-RELEASE:1.18
	netbsd-7-0:1.18.0.20
	netbsd-7-0-RELEASE:1.18
	netbsd-7-0-RC3:1.18
	netbsd-7-0-RC2:1.18
	netbsd-7-0-RC1:1.18
	netbsd-5-2-3-RELEASE:1.17
	netbsd-5-1-5-RELEASE:1.17
	netbsd-6-0-6-RELEASE:1.18
	netbsd-6-1-5-RELEASE:1.18
	netbsd-7:1.18.0.18
	netbsd-7-base:1.18
	yamt-pagecache-base9:1.18
	yamt-pagecache-tag8:1.17.34.1
	netbsd-6-1-4-RELEASE:1.18
	netbsd-6-0-5-RELEASE:1.18
	tls-earlyentropy:1.18.0.16
	tls-earlyentropy-base:1.18
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.18
	riastradh-drm2-base3:1.18
	netbsd-6-1-3-RELEASE:1.18
	netbsd-6-0-4-RELEASE:1.18
	netbsd-5-2-2-RELEASE:1.17
	netbsd-5-1-4-RELEASE:1.17
	netbsd-6-1-2-RELEASE:1.18
	netbsd-6-0-3-RELEASE:1.18
	netbsd-5-2-1-RELEASE:1.17
	netbsd-5-1-3-RELEASE:1.17
	netbsd-6-1-1-RELEASE:1.18
	riastradh-drm2-base2:1.18
	riastradh-drm2-base1:1.18
	riastradh-drm2:1.18.0.10
	riastradh-drm2-base:1.18
	netbsd-6-1:1.18.0.14
	netbsd-6-0-2-RELEASE:1.18
	netbsd-6-1-RELEASE:1.18
	netbsd-6-1-RC4:1.18
	netbsd-6-1-RC3:1.18
	agc-symver:1.18.0.12
	agc-symver-base:1.18
	netbsd-6-1-RC2:1.18
	netbsd-6-1-RC1:1.18
	yamt-pagecache-base8:1.18
	netbsd-5-2:1.17.0.36
	netbsd-6-0-1-RELEASE:1.18
	yamt-pagecache-base7:1.18
	netbsd-5-2-RELEASE:1.17
	netbsd-5-2-RC1:1.17
	matt-nb6-plus-nbase:1.18
	yamt-pagecache-base6:1.18
	netbsd-6-0:1.18.0.8
	netbsd-6-0-RELEASE:1.18
	netbsd-6-0-RC2:1.18
	tls-maxphys:1.18.0.6
	tls-maxphys-base:1.18
	matt-nb6-plus:1.18.0.4
	matt-nb6-plus-base:1.18
	netbsd-6-0-RC1:1.18
	yamt-pagecache-base5:1.18
	yamt-pagecache-base4:1.18
	netbsd-6:1.18.0.2
	netbsd-6-base:1.18
	netbsd-5-1-2-RELEASE:1.17
	netbsd-5-1-1-RELEASE:1.17
	yamt-pagecache-base3:1.17
	yamt-pagecache-base2:1.17
	yamt-pagecache:1.17.0.34
	yamt-pagecache-base:1.17
	cherry-xenmp:1.17.0.32
	cherry-xenmp-base:1.17
	bouyer-quota2-nbase:1.17
	bouyer-quota2:1.17.0.30
	bouyer-quota2-base:1.17
	matt-mips64-premerge-20101231:1.17
	matt-nb5-mips64-premerge-20101231:1.17
	matt-nb5-pq3:1.17.0.28
	matt-nb5-pq3-base:1.17
	netbsd-5-1:1.17.0.26
	netbsd-5-1-RELEASE:1.17
	netbsd-5-1-RC4:1.17
	matt-nb5-mips64-k15:1.17
	netbsd-5-1-RC3:1.17
	netbsd-5-1-RC2:1.17
	netbsd-5-1-RC1:1.17
	netbsd-5-0-2-RELEASE:1.17
	matt-nb5-mips64-premerge-20091211:1.17
	matt-premerge-20091211:1.17
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.17
	matt-nb4-mips64-k7-u2a-k9b:1.17
	matt-nb5-mips64-u1-k1-k5:1.17
	matt-nb5-mips64:1.17.0.24
	netbsd-5-0-1-RELEASE:1.17
	jym-xensuspend-nbase:1.17
	netbsd-5-0:1.17.0.22
	netbsd-5-0-RELEASE:1.17
	netbsd-5-0-RC4:1.17
	netbsd-5-0-RC3:1.17
	netbsd-5-0-RC2:1.17
	jym-xensuspend:1.17.0.20
	jym-xensuspend-base:1.17
	netbsd-5-0-RC1:1.17
	netbsd-5:1.17.0.18
	netbsd-5-base:1.17
	matt-mips64-base2:1.17
	matt-mips64:1.17.0.16
	mjf-devfs2:1.17.0.14
	mjf-devfs2-base:1.17
	netbsd-4-0-1-RELEASE:1.16
	wrstuden-revivesa-base-3:1.17
	wrstuden-revivesa-base-2:1.17
	wrstuden-fixsa-newbase:1.16
	wrstuden-revivesa-base-1:1.17
	yamt-pf42-base4:1.17
	yamt-pf42-base3:1.17
	hpcarm-cleanup-nbase:1.17
	yamt-pf42-baseX:1.17
	yamt-pf42-base2:1.17
	wrstuden-revivesa:1.17.0.12
	wrstuden-revivesa-base:1.17
	yamt-pf42:1.17.0.10
	yamt-pf42-base:1.17
	keiichi-mipv6:1.17.0.8
	keiichi-mipv6-base:1.17
	matt-armv6-nbase:1.17
	matt-armv6-prevmlocking:1.17
	wrstuden-fixsa-base-1:1.16
	netbsd-4-0:1.16.0.8
	netbsd-4-0-RELEASE:1.16
	cube-autoconf:1.17.0.6
	cube-autoconf-base:1.17
	netbsd-4-0-RC5:1.16
	netbsd-4-0-RC4:1.16
	netbsd-4-0-RC3:1.16
	netbsd-4-0-RC2:1.16
	netbsd-4-0-RC1:1.16
	matt-armv6:1.17.0.4
	matt-armv6-base:1.17
	matt-mips64-base:1.17
	hpcarm-cleanup:1.17.0.2
	hpcarm-cleanup-base:1.17
	netbsd-3-1-1-RELEASE:1.13.2.2
	netbsd-3-0-3-RELEASE:1.13.2.2
	wrstuden-fixsa:1.16.0.6
	wrstuden-fixsa-base:1.16
	abandoned-netbsd-4-base:1.16
	abandoned-netbsd-4:1.16.0.2
	netbsd-3-1:1.13.2.2.0.4
	netbsd-3-1-RELEASE:1.13.2.2
	netbsd-3-0-2-RELEASE:1.13.2.2
	netbsd-3-1-RC4:1.13.2.2
	netbsd-3-1-RC3:1.13.2.2
	netbsd-3-1-RC2:1.13.2.2
	netbsd-3-1-RC1:1.13.2.2
	netbsd-4:1.16.0.4
	netbsd-4-base:1.16
	netbsd-3-0-1-RELEASE:1.13.2.2
	netbsd-3-0:1.13.2.2.0.2
	netbsd-3-0-RELEASE:1.13.2.2
	netbsd-3-0-RC6:1.13.2.2
	netbsd-3-0-RC5:1.13.2.2
	netbsd-3-0-RC4:1.13.2.2
	netbsd-3-0-RC3:1.13.2.2
	netbsd-3-0-RC2:1.13.2.2
	netbsd-3-0-RC1:1.13.2.1
	netbsd-2-0-3-RELEASE:1.8
	netbsd-2-1:1.8.0.6
	netbsd-2-1-RELEASE:1.8
	netbsd-2-1-RC6:1.8
	netbsd-2-1-RC5:1.8
	netbsd-2-1-RC4:1.8
	netbsd-2-1-RC3:1.8
	netbsd-2-1-RC2:1.8
	netbsd-2-1-RC1:1.8
	netbsd-2-0-2-RELEASE:1.8
	netbsd-3:1.13.0.2
	netbsd-3-base:1.13
	netbsd-2-0-1-RELEASE:1.8
	netbsd-2:1.8.0.4
	netbsd-2-base:1.8
	netbsd-2-0-RELEASE:1.8
	netbsd-2-0-RC5:1.8
	netbsd-2-0-RC4:1.8
	netbsd-2-0-RC3:1.8
	netbsd-2-0-RC2:1.8
	netbsd-2-0-RC1:1.8
	netbsd-2-0:1.8.0.2
	netbsd-2-0-base:1.8
	netbsd-1-6-PATCH002-RELEASE:1.6
	netbsd-1-6-PATCH002:1.6
	netbsd-1-6-PATCH002-RC4:1.6
	netbsd-1-6-PATCH002-RC3:1.6
	netbsd-1-6-PATCH002-RC2:1.6
	netbsd-1-6-PATCH002-RC1:1.6
	netbsd-1-6-PATCH001:1.6
	netbsd-1-6-PATCH001-RELEASE:1.6
	netbsd-1-6-PATCH001-RC3:1.6
	netbsd-1-6-PATCH001-RC2:1.6
	netbsd-1-6-PATCH001-RC1:1.6
	fvdl_fs64_base:1.8
	netbsd-1-6-RELEASE:1.6
	netbsd-1-6-RC3:1.6
	netbsd-1-6-RC2:1.6
	netbsd-1-6-RC1:1.6
	netbsd-1-6:1.6.0.2
	netbsd-1-6-base:1.6
	netbsd-1-5-PATCH003:1.5
	netbsd-1-5-PATCH002:1.5
	netbsd-1-5-PATCH001:1.5
	netbsd-1-5-RELEASE:1.5
	netbsd-1-5-BETA2:1.5
	netbsd-1-5-BETA:1.5
	netbsd-1-5-ALPHA2:1.5
	netbsd-1-5:1.5.0.4
	netbsd-1-5-base:1.5
	minoura-xpg4dl:1.5.0.2
	minoura-xpg4dl-base:1.5
	wrstuden-devbsize-19991221:1.2
	wrstuden-devbsize:1.2.0.4
	wrstuden-devbsize-base:1.2
	comdex-fall-1999:1.2.0.2
	comdex-fall-1999-base:1.2;
locks; strict;
comment	@# @;


1.19
date	2025.03.09.18.31.29;	author christos;	state Exp;
branches;
next	1.18;
commitid	pCrZoLAaWBRogqMF;

1.18
date	2012.01.04.15.55.36;	author drochner;	state Exp;
branches
	1.18.52.1;
next	1.17;

1.17
date	2007.05.28.12.06.19;	author tls;	state Exp;
branches
	1.17.34.1;
next	1.16;

1.16
date	2005.12.16.16.25.07;	author jmc;	state Exp;
branches;
next	1.15;

1.15
date	2005.12.15.04.27.32;	author jmc;	state Exp;
branches;
next	1.14;

1.14
date	2005.06.28.16.01.59;	author christos;	state Exp;
branches;
next	1.13;

1.13
date	2005.02.24.13.45.08;	author manu;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2005.02.19.22.03.49;	author thorpej;	state Exp;
branches;
next	1.11;

1.11
date	2005.02.19.17.00.32;	author thorpej;	state Exp;
branches;
next	1.10;

1.10
date	2005.02.19.16.55.04;	author thorpej;	state Exp;
branches;
next	1.9;

1.9
date	2005.01.10.02.58.58;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	2002.08.19.14.55.15;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	2002.08.19.09.41.31;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.28.01.32.39;	author lukem;	state Exp;
branches;
next	1.5;

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

1.4
date	2000.03.13.21.23.55;	author itojun;	state Exp;
branches;
next	1.3;

1.3
date	2000.01.31.14.15.30;	author itojun;	state Exp;
branches;
next	1.2;

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

1.1
date	99.07.01.20.15.27;	author itojun;	state Exp;
branches;
next	;

1.18.52.1
date	2025.08.02.05.54.49;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.17.34.1
date	2012.04.17.00.05.28;	author yamt;	state Exp;
branches;
next	;

1.13.2.1
date	2005.09.03.07.03.57;	author snj;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	2005.11.21.21.12.29;	author tron;	state Exp;
branches;
next	;


desc
@@


1.19
log
@later is now.
@
text
@# $NetBSD: Makefile,v 1.18 2012/01/04 15:55:36 drochner Exp $

USE_FORT?= yes	# network protocol library

USE_SHLIBDIR=	yes
WARNS=	5

.include <bsd.own.mk>

DIST=	${NETBSDSRCDIR}/crypto/dist/ipsec-tools
LIB=	ipsec
CPPFLAGS+= -I${DIST}/src/libipsec -I. -DHAVE_CONFIG_H
CPPFLAGS+= -DIPSEC_DEBUG -I${.CURDIR}
# Don't worry about argument promotion for now.
LINTFLAGS+=     -X 58

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

.PATH:	${DIST}/src/libipsec

SRCS=	ipsec_dump_policy.c ipsec_get_policylen.c ipsec_strerror.c	\
	pfkey.c pfkey_dump.c policy_parse.y policy_token.l key_debug.c

LPREFIX+=__libipsec
YPREFIX+=__libipsec
YHEADER=policy_parse.h

MAN=	ipsec_set_policy.3 ipsec_strerror.3
MLINKS+=ipsec_set_policy.3 ipsec_get_policylen.3 \
	ipsec_set_policy.3 ipsec_dump_policy.3

.include <bsd.lib.mk>
@


1.18
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
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2007/05/28 12:06:19 tls Exp $
d6 1
a6 1
WARNS=	0	# Will be fixed later
@


1.18.52.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2025/03/09 18:31:29 christos Exp $
d6 1
a6 1
WARNS=	5
@


1.17
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2005/12/16 16:25:07 jmc Exp $
d13 1
a13 2
CPPFLAGS+= -DIPSEC_DEBUG -I${.CURDIR} -I${NETBSDSRCDIR}/sys
CPPFLAGS+= -DSADB_X_EALG_AESCBC=SADB_X_EALG_AES
@


1.17.34.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2007/05/28 12:06:19 tls Exp $
d13 2
a14 1
CPPFLAGS+= -DIPSEC_DEBUG -I${.CURDIR}
@


1.16
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.14 2005/06/28 16:01:59 christos Exp $
@


1.15
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
@d23 5
a27 1
	pfkey.c pfkey_dump.c policy_parse.c policy_token.c key_debug.c
a33 4

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


1.14
log
@Ignore lint argument promotion warnings (for now).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2005/02/24 13:45:08 manu Exp $
d23 1
a23 5
	pfkey.c pfkey_dump.c policy_parse.y policy_token.l key_debug.c

LPREFIX+=__libipsec
YPREFIX+=__libipsec
YHEADER=policy_parse.h
d30 4
@


1.13
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 1
# $NetBSD: Makefile,v 1.12 2005/02/19 22:03:49 thorpej Exp $
d13 2
@


1.13.2.1
log
@Apply patch (requested by tron in ticket #741):
Update ipsec-tools to version 0.6.1.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2005/06/28 16:01:59 christos Exp $
a12 2
# Don't worry about argument promotion for now.
LINTFLAGS+=     -X 58
@


1.13.2.2
log
@Apply patch (requested by manu in ticket #981):
Update ipsec-tools to version 0.6.3.
@
text
@@


1.12
log
@Enable building the lint library.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2005/02/19 17:00:32 thorpej Exp $
d12 1
@


1.11
log
@Additional cleanup pass.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2005/02/19 16:55:04 thorpej Exp $
a3 1
NOLINT=		# Will be fixed later
@


1.10
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$
d11 2
a12 3
CFLAGS+=-g
CPPFLAGS+=	-I${DIST}/src/libipsec -I. -DHAVE_CONFIG_H \
		-DIPSEC_DEBUG -I${.CURDIR} -I${NETBSDSRCDIR}/sys
d22 1
d25 1
a25 1
YHEADER=1
a30 2
CLEANFILES+=	ipsec_set_policy.cat3 ipsec_strerror.cat3

@


1.9
log
@Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2002/08/19 14:55:15 lukem Exp $
d4 2
d9 1
d12 2
a13 1
CPPFLAGS+=-DIPSEC_DEBUG -DIPSEC -I${.CURDIR} -I. -DYY_NO_UNPUT
d19 6
a24 4
SRCS+=	ipsec_strerror.c policy_parse.y policy_token.l
SRCS+=	ipsec_get_policylen.c ipsec_dump_policy.c
LPREFIX+=__libyy
YPREFIX+=__libyy
a26 6
#.PATH:	${NETBSDSRCDIR}/sys/netkey
#SRCS+=	pfkey.c pfkey_dump.c
#SRCS+=	key_debug.c

#LFLAGS+=	-olex.yy.c

d31 1
a31 1
CLEANFILES+=	y.tab.h
@


1.8
log
@Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2002/08/19 09:41:31 lukem Exp $
d5 2
d9 5
a13 1
CPPFLAGS+=-DIPSEC_DEBUG -DIPSEC -DINET6 -I${.CURDIR} -I. -DYY_NO_UNPUT
@


1.7
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.6 2001/12/28 01:32:39 lukem Exp $
a5 1
USE_SHLIBDIR=	yes
@


1.6
log
@* Add user-controlled mk.conf variables
	- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2000/05/09 05:52:54 thorpej Exp $
d14 1
a14 1
#.PATH:	${.CURDIR}/../../sys/netkey
@


1.5
log
@Need -I${.CURDIR} for ipsec_strerror.h
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2000/03/13 21:23:55 itojun Exp $
d4 1
@


1.4
log
@hide shouldn't-be-exported symbols from the outside.
don't compile pfkey*, since we expect tons of changes in the near future.

bump shlib major (due to less exported APIs than before - am I correct here?).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2000/01/31 14:15:30 itojun Exp $
d5 1
a5 1
CPPFLAGS+=-DIPSEC_DEBUG -DIPSEC -DINET6 -I. -DYY_NO_UNPUT
@


1.3
log
@upgrade libipsec to the latest.
- parser now uses yacc/lex (there'll be no symbol conflict).
- outbound policy and inbound policy is now separate
- policy specification for tunnel SA is improved
- api changed, bump shlib major

XXX some of programs will become not buildable - will commit shortly
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1999/07/03 06:59:28 itojun Exp $
a6 2
.PATH:	${.CURDIR}/../../sys/netkey
SRCS=	pfkey.c pfkey_dump.c
a8 1
SRCS+=	key_debug.c
d12 4
@


1.2
log
@s/CFLAGS/CPPFLAGS/ for -D and -I.
remove lint error.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 1999/07/01 20:15:27 itojun Exp $
d4 2
a5 4
#CFLAGS+=-g
CPPFLAGS+=-DIPSEC_DEBUG
CPPFLAGS+=-DIPSEC
CPPFLAGS+=-DINET6
d9 8
a16 1
SRCS+=	ipsec_policy.c ipsec_strerror.c key_debug.c
d21 2
@


1.1
log
@ipsec support library.
mainly for debugging, and policy text->binary conversion.  NO crypto code
is included so it is export safe.
@
text
@d1 1
a1 1
# $NetBSD$
d4 4
a7 3
CFLAGS+=-g -DIPSEC_DEBUG
CFLAGS+=-DIPSEC
CFLAGS+=-DINET6
@

