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