From 388e590f951441f619cd32710dc151e0ac810a10 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 17 Mar 2006 18:54:44 +0000 Subject: 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) --- lib/Makefile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'lib/Makefile') 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 + # 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 -- cgit v1.1