diff options
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/Makefile.inc | 10 |
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 |