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/regex/Makefile.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/libc/regex') diff --git a/lib/libc/regex/Makefile.inc b/lib/libc/regex/Makefile.inc index 48e286e..d8c6092 100644 --- a/lib/libc/regex/Makefile.inc +++ b/lib/libc/regex/Makefile.inc @@ -1,14 +1,18 @@ -# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 +# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 +# $Id$ # regex sources -.PATH: ${.CURDIR}/regex +.PATH: ${.CURDIR}/../libc/regex CFLAGS+=-DPOSIX_MISTAKE SRCS+= regcomp.c regerror.c regexec.c regfree.c +# Only build man pages with libc. +.if ${LIB} == "c" MAN3+= regex/regex.3 MAN7+= regex/re_format.7 MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3 MLINKS+=regexec.3 regfree.3 +.endif -- cgit v1.1