summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-03-17 18:54:44 +0000
committerru <ru@FreeBSD.org>2006-03-17 18:54:44 +0000
commit388e590f951441f619cd32710dc151e0ac810a10 (patch)
tree801e953598fc63a37f62cf997017301675552fe9 /lib/Makefile
parenta251964eaca5833ff2c4651fe4f7f8cac7199da5 (diff)
downloadFreeBSD-src-388e590f951441f619cd32710dc151e0ac810a10.zip
FreeBSD-src-388e590f951441f619cd32710dc151e0ac810a10.tar.gz
Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile24
1 files changed, 13 insertions, 11 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 920c339..4c52565 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,6 +1,8 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
+.include <bsd.own.mk>
+
# To satisfy shared library or ELF linkage when only the libraries being
# built are visible:
#
@@ -44,16 +46,16 @@ _csu=csu/${MACHINE_ARCH}
_csu=csu
.endif
-.if !defined(NO_ATM)
+.if ${MK_ATM} != "no"
_libatm= libatm
_libngatm= libngatm
.endif
-.if !defined(NO_BIND)
+.if ${MK_BIND} != "no"
_bind= bind
.endif
-.if !defined(NO_BLUETOOTH)
+.if ${MK_BLUETOOTH} != "no"
_libbluetooth= libbluetooth
_libsdp= libsdp
.endif
@@ -65,7 +67,7 @@ _libvgl= libvgl
.endif
.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \
- ${MACHINE_ARCH} != "powerpc" && !defined(NO_LIBC_R)
+ ${MACHINE_ARCH} != "powerpc" && ${MK_LIBC_R} != "no"
_libc_r=
.endif
@@ -73,14 +75,14 @@ _libc_r=
_libio= libio
.endif
-.if !defined(NO_SENDMAIL)
+.if ${MK_SENDMAIL} != "no"
_libmilter= libmilter
_libsm= libsm
_libsmdb= libsmdb
_libsmutil= libsmutil
.endif
-.if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
+.if ${MK_OPENSSL} != "no"
_libmp= libmp
.endif
@@ -93,11 +95,11 @@ _libsmb= libsmb
_libsmb= libsmb
.endif
-.if !defined(NO_LIBPTHREAD)
+.if ${MK_LIBPTHREAD} != "no"
_libpthread= libpthread
.endif
-.if !defined(NO_LIBTHR)
+.if ${MK_LIBTHR} != "no"
_libthr= libthr
.endif
@@ -105,15 +107,15 @@ _libthr= libthr
_libthread_db= libthread_db
.endif
-.if !defined(NO_USB)
+.if ${MK_USB} != "no"
_libusbhid= libusbhid
.endif
-.if !defined(NO_NIS)
+.if ${MK_NIS} != "no"
_libypclnt= libypclnt
.endif
-.if !defined(NO_GPIB)
+.if ${MK_GPIB} != "no"
_libgpib= libgpib
.endif
OpenPOWER on IntegriCloud