* 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
2001-12-28 04:32:37 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2001/12/28 01:32:39 lukem Exp $
|
1999-07-02 00:15:26 +04:00
|
|
|
|
|
|
|
LIB= ipsec
|
* 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
2001-12-28 04:32:37 +03:00
|
|
|
USE_SHLIBDIR= yes
|
2000-01-31 17:15:30 +03:00
|
|
|
CFLAGS+=-g
|
2000-05-09 09:52:54 +04:00
|
|
|
CPPFLAGS+=-DIPSEC_DEBUG -DIPSEC -DINET6 -I${.CURDIR} -I. -DYY_NO_UNPUT
|
1999-07-02 00:15:26 +04:00
|
|
|
|
2000-01-31 17:15:30 +03:00
|
|
|
SRCS+= ipsec_strerror.c policy_parse.y policy_token.l
|
|
|
|
SRCS+= ipsec_get_policylen.c ipsec_dump_policy.c
|
|
|
|
LPREFIX+=__libyy
|
|
|
|
YPREFIX+=__libyy
|
|
|
|
YHEADER=1
|
|
|
|
|
2000-03-14 00:23:55 +03:00
|
|
|
#.PATH: ${.CURDIR}/../../sys/netkey
|
|
|
|
#SRCS+= pfkey.c pfkey_dump.c
|
|
|
|
#SRCS+= key_debug.c
|
|
|
|
|
2000-01-31 17:15:30 +03:00
|
|
|
#LFLAGS+= -olex.yy.c
|
1999-07-02 00:15:26 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2000-01-31 17:15:30 +03:00
|
|
|
CLEANFILES+= y.tab.h
|
|
|
|
|
1999-07-02 00:15:26 +04:00
|
|
|
.include <bsd.lib.mk>
|