]> git.saurik.com Git - apple/libc.git/blob - stdtime/Makefile.inc
Libc-498.1.7.tar.gz
[apple/libc.git] / stdtime / Makefile.inc
1 # Makefile.inc,v 1.2 1994/09/13 21:26:01 wollman Exp
2 # $FreeBSD: src/lib/libc/stdtime/Makefile.inc,v 1.14 2002/11/18 09:50:56 ru Exp $
3
4 .PATH: ${.CURDIR}/stdtime
5 CWD := ${.CURDIR}/stdtime
6
7 CFLAGS += -I${.CURDIR}/stdtime
8
9 LEGACYSRCS += localtime.c strftime.c strptime.c
10
11 MISRCS += getdate.c timezone_unix03.c
12
13 # set the LIBC_ALIAS_* macros so we can decorate the symbol independent
14 # of other macro settings
15 CFLAGS-localtime-fbsd.c += -DLIBC_ALIAS_MKTIME
16 CFLAGS-strftime-fbsd.c += -DLIBC_ALIAS_STRFTIME -DLIBC_ALIAS_STRFTIME_L
17 CFLAGS-strptime-fbsd.c += -DLIBC_ALIAS_STRPTIME -DLIBC_ALIAS_STRPTIME_L
18
19 .include "Makefile.fbsd_begin"
20 FBSDMISRCS= asctime.c difftime.c ftime.c localtime.c \
21 strftime.c strptime.c timelocal.c time32.c
22 FBSDHDRS= private.h timelocal.h tzfile.h
23 .include "Makefile.fbsd_end"
24 INSTHDRS += ${.CURDIR}/stdtime/tzfile.h
25
26 .if ${LIB} == "c"
27 .include "Makefile.fbsd_begin"
28 FBSDMAN3= ctime.3 ftime.3 strftime.3 strptime.3 time2posix.3
29 FBSDMAN5= tzfile.5
30 .include "Makefile.fbsd_end"
31
32 MAN3 += getdate.3 timegm.3
33 MLINKS += timegm.3 timelocal.3
34
35 MLINKS+=ctime.3 asctime.3 ctime.3 difftime.3 ctime.3 gmtime.3 \
36 ctime.3 localtime.3 ctime.3 mktime.3 \
37 ctime.3 ctime_r.3 ctime.3 localtime_r.3 ctime.3 gmtime_r.3 \
38 ctime.3 asctime_r.3
39 MLINKS+=time2posix.3 posix2time.3
40 MLINKS+=strftime.3 strftime_l.3
41 MLINKS+=strptime.3 strptime_l.3
42 .endif