summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/Makefile.inc
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/net/Makefile.inc
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/net/Makefile.inc')
-rw-r--r--lib/libc/net/Makefile.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc
index 43de58f..d654c02 100644
--- a/lib/libc/net/Makefile.inc
+++ b/lib/libc/net/Makefile.inc
@@ -1,7 +1,8 @@
-# @(#)Makefile.inc 8.2 (Berkeley) 9/5/93
+# from @(#)Makefile.inc 8.2 (Berkeley) 9/5/93
+# $Id$
# machine-independent net sources
-.PATH: ${.CURDIR}/${MACHINE}/net ${.CURDIR}/net
+.PATH: ${.CURDIR}/../libc/${MACHINE}/net ${.CURDIR}/../libc/net
SRCS+= addr2ascii.c ascii2addr.c base64.c \
gethostbydns.c gethostbyht.c gethostbynis.c gethostnamadr.c \
@@ -18,8 +19,10 @@ SRCS+= addr2ascii.c ascii2addr.c base64.c \
# iso_addr.c
# machine-dependent net sources
-.include "${.CURDIR}/${MACHINE}/net/Makefile.inc"
+.include "${.CURDIR}/../libc/${MACHINE}/net/Makefile.inc"
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= net/addr2ascii.3 \
net/byteorder.3 net/ethers.3 net/gethostbyname.3 net/getnetent.3 \
net/getprotoent.3 net/getservent.3 net/inet.3 net/linkaddr.3 \
@@ -51,3 +54,4 @@ MLINKS+=rcmd.3 rresvport.3 rcmd.3 iruserok.3 rcmd.3 ruserok.3
MLINKS+=resolver.3 dn_comp.3 resolver.3 dn_expand.3 resolver.3 res_init.3 \
resolver.3 res_mkquery.3 resolver.3 res_send.3 resolver.3 res_query.3 \
resolver.3 res_search.3
+.endif
OpenPOWER on IntegriCloud