summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
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 /lib/libc/stdlib
parent048e7033373fc7549a2ec3345c84701e0b6c4c45 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/Makefile.inc10
1 files changed, 7 insertions, 3 deletions
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