summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/Makefile10
-rw-r--r--lib/libc/net/Makefile.inc2
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
OpenPOWER on IntegriCloud