From 870039320ffbf6d3defd48faa288bb650ca2a1cb Mon Sep 17 00:00:00 2001 From: John Birrell 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/string/Makefile.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lib/libc/string/Makefile.inc') diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc index c88832cf5be2..e95d87d38dbb 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.9 1997/02/22 15:03:21 peter 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 -- cgit v1.3