summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
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/stdlib
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/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 5508000..cf6be9e 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -1,7 +1,8 @@
-# @(#)Makefile.inc 8.3 (Berkeley) 2/4/95
+# from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95
+# $Id$
# 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 \
@@ -29,3 +32,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
OpenPOWER on IntegriCloud