diff options
author | ru <ru@FreeBSD.org> | 2006-03-17 18:54:44 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-03-17 18:54:44 +0000 |
commit | 388e590f951441f619cd32710dc151e0ac810a10 (patch) | |
tree | 801e953598fc63a37f62cf997017301675552fe9 /lib/libc | |
parent | a251964eaca5833ff2c4651fe4f7f8cac7199da5 (diff) | |
download | FreeBSD-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/libc')
-rw-r--r-- | lib/libc/Makefile | 10 | ||||
-rw-r--r-- | lib/libc/net/Makefile.inc | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index bfbfc33..70d48c9 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -1,6 +1,8 @@ # @(#)Makefile 8.2 (Berkeley) 2/3/94 # $FreeBSD$ -# + +.include <bsd.own.mk> + # All library objects contain FreeBSD revision strings by default; they may be # excluded as a space-saving measure. To produce a library that does # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS @@ -55,14 +57,14 @@ NOASM= .if ${MACHINE_ARCH} == "arm" .include "${.CURDIR}/softfloat/Makefile.inc" .endif -.if !defined(NO_NIS) +.if ${MK_NIS} != "no" CFLAGS+= -DYP .include "${.CURDIR}/yp/Makefile.inc" .endif -.if defined(YES_HESIOD) +.if ${MK_HESIOD} != "no" CFLAGS+= -DHESIOD .endif -.if defined(NO_FP_LIBC) +.if ${MK_FP_LIBC} == "no" CFLAGS+= -DNO_FLOATING_POINT .endif diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index a176123..8a8a381 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -115,7 +115,7 @@ MLINKS+=resolver.3 dn_comp.3 resolver.3 dn_expand.3 resolver.3 res_init.3 \ resolver.3 ns_get16.3 resolver.3 ns_get32.3 \ resolver.3 ns_put16.3 resolver.3 ns_put32.3 -.if defined(YES_HESIOD) +.if ${MK_HESIOD} != "no" SRCS+= hesiod.c MAN+= hesiod.3 .endif |