aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1997-05-03 03:50:06 +0000
committerJohn Birrell <jb@FreeBSD.org>1997-05-03 03:50:06 +0000
commit870039320ffbf6d3defd48faa288bb650ca2a1cb (patch)
treeedfa5ba030406429c7a12970ea64bcf2ea32a909 /lib/libc/stdtime
parent85351f7d5aac0bff601c4dc0a6aa7f035685a306 (diff)
downloadsrc-870039320ffbf6d3defd48faa288bb650ca2a1cb.tar.gz
src-870039320ffbf6d3defd48faa288bb650ca2a1cb.zip
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.
Notes
Notes: svn path=/head/; revision=25401
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/Makefile.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc
index cdc737e18edd..cdd4b8a3209c 100644
--- a/lib/libc/stdtime/Makefile.inc
+++ b/lib/libc/stdtime/Makefile.inc
@@ -1,11 +1,16 @@
# Makefile.inc,v 1.2 1994/09/13 21:26:01 wollman Exp
+# $Id$
-.PATH: ${.CURDIR}/stdtime
+.PATH: ${.CURDIR}/../libc/stdtime
SRCS+= asctime.c localtime.c strftime.c difftime.c
+
+# Only build man pages with libc.
+.if ${LIB} == "c"
MAN5+= stdtime/tzfile.5
MAN3+= stdtime/ctime.3 stdtime/strftime.3 stdtime/time2posix.3
MLINKS+=ctime.3 asctime.3 ctime.3 difftime.3 ctime.3 gmtime.3 \
ctime.3 localtime.3 ctime.3 mktime.3
MLINKS+=time2posix.3 posix2time.3
+.endif