From a1337bb0aea1f73b56821753ae8b9758996f55e4 Mon Sep 17 00:00:00 2001 From: jb Date: Sat, 3 May 1997 03:50:06 +0000 Subject: 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. --- lib/libc/stdlib/Makefile.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdlib') 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 -- cgit v1.1