summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1997-06-24 03:51:39 +0000
committerJulian Elischer <julian@FreeBSD.org>1997-06-24 03:51:39 +0000
commitdf8754fbcf481cf116429b354bc7a24c47c7a4c1 (patch)
treed460602e1e308c87bee98f9865069c73734235c8
parent048e7033373fc7549a2ec3345c84701e0b6c4c45 (diff)
Notes
-rw-r--r--lib/libc/compat-43/Makefile.inc6
-rw-r--r--lib/libc/db/Makefile.inc15
-rw-r--r--lib/libc/db/btree/Makefile.inc5
-rw-r--r--lib/libc/db/db/Makefile.inc5
-rw-r--r--lib/libc/db/hash/Makefile.inc5
-rw-r--r--lib/libc/db/man/Makefile.inc9
-rw-r--r--lib/libc/db/mpool/Makefile.inc5
-rw-r--r--lib/libc/db/recno/Makefile.inc5
-rw-r--r--lib/libc/gen/Makefile.inc11
-rw-r--r--lib/libc/gmon/Makefile.inc9
-rw-r--r--lib/libc/i386/gen/Makefile.inc2
-rw-r--r--lib/libc/i386/net/Makefile.inc2
-rw-r--r--lib/libc/i386/stdlib/Makefile.inc2
-rw-r--r--lib/libc/i386/sys/Makefile.inc7
-rw-r--r--lib/libc/locale/Makefile.inc8
-rw-r--r--lib/libc/net/Makefile.inc10
-rw-r--r--lib/libc/nls/Makefile.inc9
-rw-r--r--lib/libc/quad/Makefile.inc5
-rw-r--r--lib/libc/regex/Makefile.inc8
-rw-r--r--lib/libc/rpc/Makefile.inc5
-rw-r--r--lib/libc/stdio/Makefile.inc7
-rw-r--r--lib/libc/stdlib/Makefile.inc10
-rw-r--r--lib/libc/stdtime/Makefile.inc7
-rw-r--r--lib/libc/string/Makefile.inc11
-rw-r--r--lib/libc/sys/Makefile.inc19
-rw-r--r--lib/libc/xdr/Makefile.inc5
-rw-r--r--lib/libc/yp/Makefile.inc4
27 files changed, 132 insertions, 64 deletions
diff --git a/lib/libc/compat-43/Makefile.inc b/lib/libc/compat-43/Makefile.inc
index 1d06c57d7302..7b371c55490f 100644
--- a/lib/libc/compat-43/Makefile.inc
+++ b/lib/libc/compat-43/Makefile.inc
@@ -1,11 +1,14 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/2/93
+# $Id: Makefile.inc,v 1.5 1997/05/03 03:49:51 jb Exp $
# compat-43 sources
-.PATH: ${.CURDIR}/${MACHINE}/compat-43 ${.CURDIR}/compat-43
+.PATH: ${.CURDIR}/../libc/${MACHINE}/compat-43 ${.CURDIR}/../libc/compat-43
SRCS+= creat.c gethostid.c getwd.c killpg.c sethostid.c setpgrp.c \
setrgid.c setruid.c sigcompat.c
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN2+= compat-43/creat.2 compat-43/killpg.2 \
compat-43/sigblock.2 \
compat-43/sigpause.2 compat-43/sigsetmask.2 compat-43/sigvec.2
@@ -14,3 +17,4 @@ MAN3+= compat-43/gethostid.3 compat-43/setruid.3
MLINKS+=setruid.3 setrgid.3
MLINKS+=gethostid.3 sethostid.3
+.endif
diff --git a/lib/libc/db/Makefile.inc b/lib/libc/db/Makefile.inc
index 77af9c5123f5..f52c32cbcada 100644
--- a/lib/libc/db/Makefile.inc
+++ b/lib/libc/db/Makefile.inc
@@ -1,10 +1,11 @@
-# @(#)Makefile.inc 8.2 (Berkeley) 2/21/94
+# from @(#)Makefile.inc 8.2 (Berkeley) 2/21/94
+# $Id: Makefile.inc,v 1.2 1997/05/03 03:49:52 jb Exp $
#
CFLAGS+=-D__DBINTERFACE_PRIVATE
-.include "${.CURDIR}/db/btree/Makefile.inc"
-.include "${.CURDIR}/db/db/Makefile.inc"
-.include "${.CURDIR}/db/hash/Makefile.inc"
-.include "${.CURDIR}/db/man/Makefile.inc"
-.include "${.CURDIR}/db/mpool/Makefile.inc"
-.include "${.CURDIR}/db/recno/Makefile.inc"
+.include "${.CURDIR}/../libc/db/btree/Makefile.inc"
+.include "${.CURDIR}/../libc/db/db/Makefile.inc"
+.include "${.CURDIR}/../libc/db/hash/Makefile.inc"
+.include "${.CURDIR}/../libc/db/man/Makefile.inc"
+.include "${.CURDIR}/../libc/db/mpool/Makefile.inc"
+.include "${.CURDIR}/../libc/db/recno/Makefile.inc"
diff --git a/lib/libc/db/btree/Makefile.inc b/lib/libc/db/btree/Makefile.inc
index 8ed76494aabf..8dd8b9ae46b4 100644
--- a/lib/libc/db/btree/Makefile.inc
+++ b/lib/libc/db/btree/Makefile.inc
@@ -1,6 +1,7 @@
-# @(#)Makefile.inc 8.2 (Berkeley) 7/14/94
+# from @(#)Makefile.inc 8.2 (Berkeley) 7/14/94
+# $Id: Makefile.inc,v 1.2 1997/05/03 03:49:52 jb Exp $
-.PATH: ${.CURDIR}/db/btree
+.PATH: ${.CURDIR}/../libc/db/btree
SRCS+= bt_close.c bt_conv.c bt_debug.c bt_delete.c bt_get.c bt_open.c \
bt_overflow.c bt_page.c bt_put.c bt_search.c bt_seq.c bt_split.c \
diff --git a/lib/libc/db/db/Makefile.inc b/lib/libc/db/db/Makefile.inc
index 59478ba198aa..bfb06d615cdc 100644
--- a/lib/libc/db/db/Makefile.inc
+++ b/lib/libc/db/db/Makefile.inc
@@ -1,5 +1,6 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.2 1997/05/03 03:49:52 jb Exp $
-.PATH: ${.CURDIR}/db/db
+.PATH: ${.CURDIR}/../libc/db/db
SRCS+= db.c
diff --git a/lib/libc/db/hash/Makefile.inc b/lib/libc/db/hash/Makefile.inc
index cac96feb02da..fb36ddea272a 100644
--- a/lib/libc/db/hash/Makefile.inc
+++ b/lib/libc/db/hash/Makefile.inc
@@ -1,6 +1,7 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.2 1997/05/03 03:49:53 jb Exp $
-.PATH: ${.CURDIR}/db/hash
+.PATH: ${.CURDIR}/../libc/db/hash
SRCS+= hash.c hash_bigkey.c hash_buf.c hash_func.c hash_log2.c \
hash_page.c hsearch.c ndbm.c
diff --git a/lib/libc/db/man/Makefile.inc b/lib/libc/db/man/Makefile.inc
index f55b9f4eeb43..159406f71caa 100644
--- a/lib/libc/db/man/Makefile.inc
+++ b/lib/libc/db/man/Makefile.inc
@@ -1,8 +1,13 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id:$
-.PATH: ${.CURDIR}/db/man
+.PATH: ${.CURDIR}/../libc/db/man
+
+# Only build man pages with libc.
+.if ${LIB} == "c"
# mpool.3
MAN3+= db/man/btree.3 db/man/dbopen.3 db/man/hash.3 db/man/recno.3
MAN3+= db/man/mpool.3
MLINKS+= dbopen.3 db.3
+.endif
diff --git a/lib/libc/db/mpool/Makefile.inc b/lib/libc/db/mpool/Makefile.inc
index 93210c89e2e5..2592bf1b3441 100644
--- a/lib/libc/db/mpool/Makefile.inc
+++ b/lib/libc/db/mpool/Makefile.inc
@@ -1,5 +1,6 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.2 1997/05/03 03:49:54 jb Exp $
-.PATH: ${.CURDIR}/db/mpool
+.PATH: ${.CURDIR}/../libc/db/mpool
SRCS+= mpool.c
diff --git a/lib/libc/db/recno/Makefile.inc b/lib/libc/db/recno/Makefile.inc
index e49e22552207..b1add8d6723c 100644
--- a/lib/libc/db/recno/Makefile.inc
+++ b/lib/libc/db/recno/Makefile.inc
@@ -1,6 +1,7 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.2 1997/05/03 03:49:54 jb Exp $
-.PATH: ${.CURDIR}/db/recno
+.PATH: ${.CURDIR}/../libc/db/recno
SRCS+= rec_close.c rec_delete.c rec_get.c rec_open.c rec_put.c rec_search.c \
rec_seq.c rec_utils.c
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 397922c413ff..ccfefa8c7545 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -1,8 +1,8 @@
# From: @(#)Makefile.inc 8.3 (Berkeley) 4/16/94
-# $Id: Makefile.inc,v 1.22.2.2 1997/02/28 05:49:02 mpp Exp $
+# $Id: Makefile.inc,v 1.22.2.3 1997/05/10 21:16:37 davidn Exp $
# machine-independent gen sources
-.PATH: ${.CURDIR}/${MACHINE}/gen ${.CURDIR}/gen
+.PATH: ${.CURDIR}/../libc/${MACHINE}/gen ${.CURDIR}/../libc/gen
SRCS+= alarm.c assert.c clock.c closedir.c config.c confstr.c crypt.c \
ctermid.c daemon.c devname.c disklabel.c err.c errlst.c \
@@ -26,16 +26,18 @@ SRCS+= _rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \
mrand48.c nrand48.c seed48.c srand48.c
# machine-dependent gen sources
-.include "${.CURDIR}/${MACHINE}/gen/Makefile.inc"
+.include "${.CURDIR}/../libc/${MACHINE}/gen/Makefile.inc"
.if (${MACHINE} == "tahoe" || ${MACHINE} == "vax")
errlst.o errlst.po:
${CC} -S ${CFLAGS} ${.IMPSRC}
- ed - < ${.CURDIR}/${MACHINE}/:errfix errlst.s
+ ed - < ${.CURDIR}/../libc/${MACHINE}/:errfix errlst.s
${AS} -o ${.TARGET} errlst.s
rm -f errlst.s
.endif
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= gen/alarm.3 gen/clock.3 gen/confstr.3 gen/config_open.3 \
gen/crypt.3 gen/ctermid.3 \
gen/daemon.3 gen/devname.3 gen/directory.3 gen/err.3 gen/exec.3 \
@@ -121,3 +123,4 @@ MLINKS+=vis.3 strvis.3 vis.3 strvisx.3
MLINKS+=unvis.3 strunvis.3
MLINKS+=fts.3 fts_open.3 fts.3 fts_read.3 fts.3 fts_children.3 \
fts.3 fts_close.3 fts.3 fts_set.3
+.endif
diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc
index 57dc29364566..2ed8e102c17f 100644
--- a/lib/libc/gmon/Makefile.inc
+++ b/lib/libc/gmon/Makefile.inc
@@ -1,11 +1,16 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.4 1997/05/03 03:49:55 jb Exp $
# gmon sources
-.PATH: ${.CURDIR}/gmon
+.PATH: ${.CURDIR}/../libc/gmon
SRCS+= gmon.c mcount.c
+
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= gmon/moncontrol.3
MLINKS+= moncontrol.3 monstartup.3
+.endif
# mcount cannot be compiled with profiling
mcount.po: mcount.o
diff --git a/lib/libc/i386/gen/Makefile.inc b/lib/libc/i386/gen/Makefile.inc
index 387aebffef0f..52e44213613d 100644
--- a/lib/libc/i386/gen/Makefile.inc
+++ b/lib/libc/i386/gen/Makefile.inc
@@ -1,5 +1,5 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
-# $Id: Makefile.inc,v 1.5 1995/01/23 01:26:39 davidg Exp $
+# $Id: Makefile.inc,v 1.8 1997/02/22 14:58:33 peter Exp $
SRCS+= isinf.c infinity.c
SRCS+= _setjmp.S alloca.S fabs.S ldexp.c modf.S setjmp.S sigsetjmp.S
diff --git a/lib/libc/i386/net/Makefile.inc b/lib/libc/i386/net/Makefile.inc
index dff7fd1066b7..ffab60b51b3f 100644
--- a/lib/libc/i386/net/Makefile.inc
+++ b/lib/libc/i386/net/Makefile.inc
@@ -1,4 +1,4 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
-# $Id$
+# $Id: Makefile.inc,v 1.5 1997/02/22 14:58:48 peter Exp $
SRCS+= htonl.S htons.S ntohl.S ntohs.S
diff --git a/lib/libc/i386/stdlib/Makefile.inc b/lib/libc/i386/stdlib/Makefile.inc
index 65ce3481497f..f507dbd9b7f2 100644
--- a/lib/libc/i386/stdlib/Makefile.inc
+++ b/lib/libc/i386/stdlib/Makefile.inc
@@ -1,4 +1,4 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
-# $Id$
+# $Id: Makefile.inc,v 1.5 1997/02/22 14:58:55 peter Exp $
SRCS+= abs.S
diff --git a/lib/libc/i386/sys/Makefile.inc b/lib/libc/i386/sys/Makefile.inc
index 6774dd3425a9..6a83dec8bbaf 100644
--- a/lib/libc/i386/sys/Makefile.inc
+++ b/lib/libc/i386/sys/Makefile.inc
@@ -1,10 +1,13 @@
# from: Makefile.inc,v 1.1 1993/09/03 19:04:23 jtc Exp
-# $Id$
+# $Id: Makefile.inc,v 1.5 1997/05/03 03:49:56 jb Exp $
-.PATH: ${.CURDIR}/${MACHINE}/sys
+.PATH: ${.CURDIR}/../libc/${MACHINE}/sys
SRCS+= i386_get_ldt.c i386_set_ldt.c
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN2+= i386/sys/i386_get_ldt.2
MLINKS+=i386_get_ldt.2 i386_set_ldt.2
+.endif
diff --git a/lib/libc/locale/Makefile.inc b/lib/libc/locale/Makefile.inc
index ffc2b510e077..3554167f0b77 100644
--- a/lib/libc/locale/Makefile.inc
+++ b/lib/libc/locale/Makefile.inc
@@ -1,13 +1,16 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.8 1997/05/03 03:50:00 jb Exp $
# locale sources
-.PATH: ${.CURDIR}/${MACHINE}/locale ${.CURDIR}/locale
+.PATH: ${.CURDIR}/../libc/${MACHINE}/locale ${.CURDIR}/../libc/locale
SRCS+= ansi.c ctype.c euc.c frune.c isctype.c lconv.c localeconv.c \
mbrune.c none.c rune.c setlocale.c table.c utf2.c setrunelocale.c \
runetype.c tolower.c toupper.c nomacros.c collate.c setinvalidrune.c \
collcmp.c
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= locale/ctype.3 locale/isalnum.3 locale/isalpha.3 locale/isascii.3 \
locale/isblank.3 locale/iscntrl.3 locale/isdigit.3 locale/isgraph.3 \
locale/islower.3 locale/isprint.3 locale/ispunct.3 locale/isspace.3 \
@@ -20,3 +23,4 @@ MLINKS+= rune.3 setrunelocale.3 rune.3 setinvalidrune.3 rune.3 sgetrune.3 \
rune.3 fputrune.3 mbrune.3 mbrrune.3 mbrune.3 mbmb.3 \
multibyte.3 mblen.3 multibyte.3 mbstowcs.3 multibyte.3 mbtowc.3 \
multibyte.3 wcstombs.3 multibyte.3 wctomb.3 setlocale.3 localeconv.3
+.endif
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc
index 924d14a42ba5..1391cd7f1627 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: Makefile.inc,v 1.23 1997/05/03 03:50:01 jb Exp $
# machine-independent net sources
-.PATH: ${.CURDIR}/${MACHINE}/net ${.CURDIR}/net
+.PATH: ${.CURDIR}/../libc/${MACHINE}/net ${.CURDIR}/../libc/net
SRCS+= addr2ascii.c ascii2addr.c \
gethostbydns.c gethostbyht.c gethostbynis.c gethostnamadr.c \
@@ -16,8 +17,10 @@ SRCS+= addr2ascii.c ascii2addr.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 \
@@ -49,3 +52,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
diff --git a/lib/libc/nls/Makefile.inc b/lib/libc/nls/Makefile.inc
index 22c693ba669d..a344b57478e5 100644
--- a/lib/libc/nls/Makefile.inc
+++ b/lib/libc/nls/Makefile.inc
@@ -1,6 +1,11 @@
-# $NetBSD: Makefile.inc,v 1.7 1995/02/27 13:06:20 cgd Exp $
+# from $NetBSD: Makefile.inc,v 1.7 1995/02/27 13:06:20 cgd Exp $
+# $Id: Makefile.inc,v 1.3 1997/05/03 03:50:01 jb Exp $
-.PATH: ${.CURDIR}/nls
+.PATH: ${.CURDIR}/../libc/nls
SRCS+= catclose.c catgets.c catopen.c msgcat.c
+
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= nls/catclose.3 nls/catgets.3 nls/catopen.3
+.endif
diff --git a/lib/libc/quad/Makefile.inc b/lib/libc/quad/Makefile.inc
index 617aae3bff27..1566a3ead404 100644
--- a/lib/libc/quad/Makefile.inc
+++ b/lib/libc/quad/Makefile.inc
@@ -1,4 +1,5 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.5 1997/05/03 03:50:02 jb Exp $
# Quad support, if needed
@@ -16,4 +17,4 @@ SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c fixdfdi.c \
.endif
-.PATH: ${.CURDIR}/${MACHINE}/quad ${.CURDIR}/quad
+.PATH: ${.CURDIR}/../libc/${MACHINE}/quad ${.CURDIR}/../libc/quad
diff --git a/lib/libc/regex/Makefile.inc b/lib/libc/regex/Makefile.inc
index 48e286e9fa53..d626addff4dd 100644
--- a/lib/libc/regex/Makefile.inc
+++ b/lib/libc/regex/Makefile.inc
@@ -1,14 +1,18 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id: Makefile.inc,v 1.3 1997/05/03 03:50:02 jb Exp $
# regex sources
-.PATH: ${.CURDIR}/regex
+.PATH: ${.CURDIR}/../libc/regex
CFLAGS+=-DPOSIX_MISTAKE
SRCS+= regcomp.c regerror.c regexec.c regfree.c
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= regex/regex.3
MAN7+= regex/re_format.7
MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3
MLINKS+=regexec.3 regfree.3
+.endif
diff --git a/lib/libc/rpc/Makefile.inc b/lib/libc/rpc/Makefile.inc
index 12c701b174fd..c67c954b02ff 100644
--- a/lib/libc/rpc/Makefile.inc
+++ b/lib/libc/rpc/Makefile.inc
@@ -1,6 +1,6 @@
# @(#)Makefile 5.11 (Berkeley) 9/6/90
-.PATH: ${.CURDIR}/rpc ${.CURDIR}/.
+.PATH: ${.CURDIR}/../libc/rpc ${.CURDIR}/../libc/.
SRCS+= auth_none.c auth_unix.c authunix_prot.c bindresvport.c \
clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c clnt_tcp.c \
clnt_udp.c rpc_dtablesize.c get_myaddress.c getrpcent.c getrpcport.c \
@@ -16,6 +16,8 @@ SRCS+= auth_none.c auth_unix.c authunix_prot.c bindresvport.c \
# Paul.
#
+# Only build man pages with libc.
+.if ${LIB} == "c"
# MAN1+= rpc/rstat.1
MAN3+= rpc/bindresvport.3 rpc/getrpcent.3 rpc/getrpcport.3 rpc/rpc.3
MAN5+= rpc/rpc.5
@@ -90,3 +92,4 @@ MLINKS+= getrpcent.3 getrpcbyname.3 \
rpc.3 xprt_unregister.3 \
MLINKS+=getrpcent.3 getrpcbyname.3 getrpcent.3 getrpcbynumber.3
+.endif
diff --git a/lib/libc/stdio/Makefile.inc b/lib/libc/stdio/Makefile.inc
index 89df7d64f1fe..4ddebdc360fc 100644
--- a/lib/libc/stdio/Makefile.inc
+++ b/lib/libc/stdio/Makefile.inc
@@ -1,8 +1,8 @@
# @(#)Makefile.inc 8.3 (Berkeley) 4/17/94
-# $Id: Makefile.inc,v 1.5 1996/05/29 01:00:00 wosch Exp $
+# $Id: Makefile.inc,v 1.9 1997/05/03 03:50:03 jb Exp $
# stdio sources
-.PATH: ${.CURDIR}/stdio
+.PATH: ${.CURDIR}/../libc/stdio
SRCS+= asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c \
fgetc.c fgetln.c fgetpos.c fgets.c fileno.c findfp.c flags.c fopen.c \
@@ -15,6 +15,8 @@ SRCS+= asprintf.c clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c \
vfprintf.c vfscanf.c vprintf.c vscanf.c vsnprintf.c vsprintf.c \
vsscanf.c wbuf.c wsetup.c
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= stdio/fclose.3 stdio/ferror.3 stdio/fflush.3 stdio/fgetln.3 \
stdio/fgets.3 stdio/fopen.3 stdio/fputs.3 stdio/fread.3 stdio/fseek.3 \
stdio/funopen.3 stdio/getc.3 stdio/mktemp.3 stdio/printf.3 \
@@ -39,3 +41,4 @@ MLINKS+=scanf.3 fscanf.3 scanf.3 sscanf.3 scanf.3 vfscanf.3 scanf.3 vscanf.3 \
scanf.3 vsscanf.3
MLINKS+=setbuf.3 setbuffer.3 setbuf.3 setlinebuf.3 setbuf.3 setvbuf.3
MLINKS+=tmpnam.3 tempnam.3 tmpnam.3 tmpfile.3
+.endif
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 81e8ed030903..f44e4ca298a1 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -1,7 +1,8 @@
-# @(#)Makefile.inc 8.2 (Berkeley) 2/16/94
+# from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95
+# $Id: Makefile.inc,v 1.9 1997/06/22 17:54:24 phk Exp $
# machine-independent stdlib sources
-.PATH: ${.CURDIR}/${MACHINE}/stdlib ${.CURDIR}/stdlib
+.PATH: ${.CURDIR}/../libc/${MACHINE}/stdlib ${.CURDIR}/../libc/stdlib
SRCS+= abort.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
exit.c getenv.c getopt.c getsubopt.c strhash.c heapsort.c labs.c \
@@ -10,8 +11,10 @@ SRCS+= abort.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
strtouq.c system.c
# machine-dependent stdlib sources
-.include "${.CURDIR}/${MACHINE}/stdlib/Makefile.inc"
+.include "${.CURDIR}/../libc/${MACHINE}/stdlib/Makefile.inc"
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= stdlib/abort.3 stdlib/abs.3 stdlib/alloca.3 stdlib/atexit.3 \
stdlib/atof.3 stdlib/atoi.3 stdlib/atol.3 stdlib/bsearch.3 \
stdlib/calloc.3 stdlib/div.3 stdlib/exit.3 \
@@ -28,3 +31,4 @@ MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3
MLINKS+=strtol.3 strtoq.3
MLINKS+=strtoul.3 strtouq.3
MLINKS+=malloc.3 free.3 malloc.3 realloc.3
+.endif
diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc
index cdc737e18edd..d66dcfaf0e26 100644
--- a/lib/libc/stdtime/Makefile.inc
+++ b/lib/libc/stdtime/Makefile.inc
@@ -1,11 +1,16 @@
# Makefile.inc,v 1.2 1994/09/13 21:26:01 wollman Exp
+# $Id: Makefile.inc,v 1.4 1997/05/03 03:50:04 jb Exp $
-.PATH: ${.CURDIR}/stdtime
+.PATH: ${.CURDIR}/../libc/stdtime
SRCS+= asctime.c localtime.c strftime.c difftime.c
+
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN5+= stdtime/tzfile.5
MAN3+= stdtime/ctime.3 stdtime/strftime.3 stdtime/time2posix.3
MLINKS+=ctime.3 asctime.3 ctime.3 difftime.3 ctime.3 gmtime.3 \
ctime.3 localtime.3 ctime.3 mktime.3
MLINKS+=time2posix.3 posix2time.3
+.endif
diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc
index 315c8991c5f9..958a8e43c848 100644
--- a/lib/libc/string/Makefile.inc
+++ b/lib/libc/string/Makefile.inc
@@ -1,15 +1,15 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
-# $Id: $
+# $Id: Makefile.inc,v 1.10 1997/05/03 03:50:05 jb Exp $
-.PATH: ${.CURDIR}/${MACHINE}/string ${.CURDIR}/string
+.PATH: ${.CURDIR}/../libc/${MACHINE}/string ${.CURDIR}/../libc/string
-CFLAGS += -I${.CURDIR}/locale
+CFLAGS += -I${.CURDIR}/../libc/locale
# machine-independent string sources
SRCS+= memccpy.c strcasecmp.c strcoll.c strdup.c strerror.c \
strmode.c strtok.c strxfrm.c
# machine-dependent string sources
-.include "${.CURDIR}/${MACHINE}/string/Makefile.inc"
+.include "${.CURDIR}/../libc/${MACHINE}/string/Makefile.inc"
# If no machine specific bzero(3), build one out of memset(3).
.if empty(SRCS:Mbzero.S)
@@ -81,6 +81,8 @@ strrchr.po: rindex.c
@mv -f a.out ${.TARGET}
.endif
#
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN3+= string/bcmp.3 string/bcopy.3 string/bstring.3 string/bzero.3 \
string/ffs.3 string/index.3 string/memccpy.3 string/memchr.3 \
string/memcmp.3 string/memcpy.3 string/memmove.3 string/memset.3 \
@@ -96,3 +98,4 @@ MLINKS+=strcat.3 strncat.3
MLINKS+=strcmp.3 strncmp.3
MLINKS+=strcpy.3 strncpy.3
MLINKS+=strerror.3 perror.3 strerror.3 sys_errlist.3 strerror.3 sys_nerr.3
+.endif
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 9c6cc154087b..58052ea6a61c 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -1,8 +1,8 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
-# $Id: Makefile.inc,v 1.20.2.1 1997/05/03 11:22:34 peter Exp $
+# $Id: Makefile.inc,v 1.20.2.2 1997/05/23 08:30:36 asami Exp $
# sys sources
-.PATH: ${.CURDIR}/${MACHINE}/sys ${.CURDIR}/sys
+.PATH: ${.CURDIR}/../libc/${MACHINE}/sys ${.CURDIR}/../libc/sys
# modules with non-default implementations on at least one architecture:
SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S pipe.S ptrace.S reboot.S \
@@ -41,44 +41,46 @@ PSEUDO= _exit.o _getlogin.o
OBJS+= ${ASM} ${PSEUDO}
-${ASM}: ${.CURDIR}/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
+${ASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@${ECHO} creating ${.PREFIX}.o
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o
@${LD} -O ${.PREFIX}.o -x -r ${.PREFIX}.o
PASM= ${ASM:.o=.po}
-${PASM}: ${.CURDIR}/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
+${PASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@${ECHO} creating ${.PREFIX}.po
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po
@${LD} -O ${.PREFIX}.po -x -r ${.PREFIX}.po
SASM= ${ASM:.o=.so}
-${SASM}: ${.CURDIR}/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
+${SASM}: ${.CURDIR}/../libc/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@${ECHO} creating ${.PREFIX}.so
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so
-${PSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
+${PSEUDO}: ${.CURDIR}/../libc/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@${ECHO} creating ${.PREFIX}.o
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o
@${LD} -O ${.PREFIX}.o -x -r ${.PREFIX}.o
PPSEUDO=${PSEUDO:.o=.po}
-${PPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
+${PPSEUDO}: ${.CURDIR}/../libc/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@${ECHO} creating ${.PREFIX}.po
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po
@${LD} -O ${.PREFIX}.po -x -r ${.PREFIX}.po
SPSEUDO=${PSEUDO:.o=.so}
-${SPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
+${SPSEUDO}: ${.CURDIR}/../libc/${MACHINE}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@${ECHO} creating ${.PREFIX}.so
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN2+= sys/accept.2 sys/access.2 sys/acct.2 sys/adjtime.2 sys/bind.2 \
sys/brk.2 sys/chdir.2 sys/chflags.2 sys/chmod.2 sys/chown.2 \
sys/chroot.2 sys/close.2 sys/connect.2 sys/dup.2 sys/execve.2 \
@@ -139,3 +141,4 @@ MLINKS+=syscall.2 __syscall.2
MLINKS+=truncate.2 ftruncate.2
MLINKS+=wait.2 wait3.2 wait.2 wait4.2 wait.2 waitpid.2
MLINKS+=write.2 writev.2
+.endif
diff --git a/lib/libc/xdr/Makefile.inc b/lib/libc/xdr/Makefile.inc
index c22b62c7cbdd..9a3d9cf2a6f9 100644
--- a/lib/libc/xdr/Makefile.inc
+++ b/lib/libc/xdr/Makefile.inc
@@ -1,9 +1,11 @@
# @(#)Makefile 5.11 (Berkeley) 9/6/90
-.PATH: ${.CURDIR}/xdr ${.CURDIR}/.
+.PATH: ${.CURDIR}/../libc/xdr ${.CURDIR}/../libc/.
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 +40,4 @@ MLINKS+= xdr.3 xdr_array.3 \
xdr.3 xdr_vector.3 \
xdr.3 xdr_void.3 \
xdr.3 xdr_wrapstring.3
+.endif
diff --git a/lib/libc/yp/Makefile.inc b/lib/libc/yp/Makefile.inc
index 648395872459..fadbae99844e 100644
--- a/lib/libc/yp/Makefile.inc
+++ b/lib/libc/yp/Makefile.inc
@@ -1,8 +1,8 @@
# from: @(#)Makefile.inc 5.3 (Berkeley) 2/20/91
-# $Id: Makefile.inc,v 1.2 1995/12/14 05:16:43 wpaul Exp $
+# $Id: Makefile.inc,v 1.2.2.1 1997/05/23 08:30:36 asami Exp $
# yp sources
-.PATH: ${.CURDIR}/yp
+.PATH: ${.CURDIR}/../libc/yp
SRCS+= xdryp.c yp_xdr.c yplib.c
CLEANFILES+= yp_xdr.c yp.h