aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/Makefile.inc')
-rw-r--r--lib/libc/Makefile.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/Makefile.inc b/lib/libc/Makefile.inc
index 92f56b80e61f..6e29f436f9d9 100644
--- a/lib/libc/Makefile.inc
+++ b/lib/libc/Makefile.inc
@@ -1,4 +1,4 @@
-# $Id: Makefile.inc,v 1.1 1997/05/03 03:49:51 jb Exp $
+# $Id: Makefile.inc,v 1.2 1997/10/15 16:29:08 bde Exp $
#
# This file contains make rules that are shared by libc and libc_r.
#
@@ -22,3 +22,14 @@
CFLAGS+= -DYP
.include "${.CURDIR}/../libc/yp/Makefile.inc"
.endif
+
+# Append machine-dependent sources, then append machine-independent sources
+# for which there is no machine-dependent variant.
+.if !empty(MDSRCS)
+SRCS+= ${MDSRCS}
+.for _src in ${MISRCS}
+.if ${MDSRCS:R:M${_src:R}} == ""
+SRCS+= ${_src}
+.endif
+.endfor
+.endif