summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1997-05-03 03:50:06 +0000
committerjb <jb@FreeBSD.org>1997-05-03 03:50:06 +0000
commita1337bb0aea1f73b56821753ae8b9758996f55e4 (patch)
treee2988fbdcf4bbeae883b2bf6b71034d5bd4369ff /lib/libc/xdr
parent8063125723bbc9af61ddfefc3de495d2f827e118 (diff)
downloadFreeBSD-src-a1337bb0aea1f73b56821753ae8b9758996f55e4.zip
FreeBSD-src-a1337bb0aea1f73b56821753ae8b9758996f55e4.tar.gz
Changed all paths to be relative to src/lib instead of src/lib/libc
so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
Diffstat (limited to 'lib/libc/xdr')
-rw-r--r--lib/libc/xdr/Makefile.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/xdr/Makefile.inc b/lib/libc/xdr/Makefile.inc
index c22b62c..26ed955 100644
--- a/lib/libc/xdr/Makefile.inc
+++ b/lib/libc/xdr/Makefile.inc
@@ -1,9 +1,12 @@
-# @(#)Makefile 5.11 (Berkeley) 9/6/90
+# from @(#)Makefile 5.11 (Berkeley) 9/6/90
+# $Id$
-.PATH: ${.CURDIR}/xdr ${.CURDIR}/.
+.PATH: ${.CURDIR}/../libc/xdr ${.CURDIR}/.
SRCS+= xdr.c xdr_array.c xdr_float.c xdr_mem.c \
xdr_rec.c xdr_reference.c xdr_stdio.c
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= xdr/xdr.3
MLINKS+= xdr.3 xdr_array.3 \
@@ -38,3 +41,4 @@ MLINKS+= xdr.3 xdr_array.3 \
xdr.3 xdr_vector.3 \
xdr.3 xdr_void.3 \
xdr.3 xdr_wrapstring.3
+.endif
OpenPOWER on IntegriCloud