1SubDir HAIKU_TOP src system libroot posix time ; 2 3# for localtime.c strftime.c 4SubDirCcFlags -DNOID -DTZDIR='\"/etc/timezones\"' -DUSG_COMPAT -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DPCTS=1 -DSTD_INSPIRED ; 5 6UsePrivateHeaders [ FDirName libroot time ] ; 7UsePrivateSystemHeaders ; 8 9MergeObject posix_time.o : 10 asctime.c 11 clock.c 12 ctime.c 13 difftime.c 14 localtime.c 15 nanosleep.c 16 stime.c 17 strftime.c 18 strptime.c 19 timelocal.c 20 time.c 21; 22 23# Explanations of flags: 24# 25# If you want to use System V compatibility code, add 26# -DUSG_COMPAT 27# to the end of the "CFLAGS=" line. This arrange for "timezone" and "daylight" 28# variables to be kept up-to-date by the time conversion functions. Neither 29# "timezone" nor "daylight" is described in X3J11's work. 30# 31# If your system has a "GMT offset" field in its "struct tm"s 32# (or if you decide to add such a field in your system's "time.h" file), 33# add the name to a define such as 34# -DTM_GMTOFF=tm_gmtoff 35# or 36# -DTM_GMTOFF=_tm_gmtoff 37# to the end of the "CFLAGS=" line. 38# Neither tm_gmtoff nor _tm_gmtoff is described in X3J11's work; 39# in its work, use of "tm_gmtoff" is described as non-conforming. 40# Both Linux and BSD have done the equivalent of defining TM_GMTOFF in 41# their recent releases. 42# 43# If your system has a "zone abbreviation" field in its "struct tm"s 44# (or if you decide to add such a field in your system's "time.h" file), 45# add the name to a define such as 46# -DTM_ZONE=tm_zone 47# or 48# -DTM_ZONE=_tm_zone 49# to the end of the "CFLAGS=" line. 50# Neither tm_zone nor _tm_zone is described in X3J11's work; 51# in its work, use of "tm_zone" is described as non-conforming. 52# Both UCB and Sun have done the equivalent of defining TM_ZONE in 53# their recent releases. 54# 55# If you want functions that were inspired by early versions of X3J11's work, 56# add 57# -DSTD_INSPIRED 58# to the end of the "CFLAGS=" line. This arranges for the functions 59# "tzsetwall", "offtime", "timelocal", "timegm", "timeoff", 60# "posix2time", and "time2posix" to be added to the time conversion library. 61# "tzsetwall" is like "tzset" except that it arranges for local wall clock 62# time (rather than the time specified in the TZ environment variable) 63# to be used. 64# "offtime" is like "gmtime" except that it accepts a second (long) argument 65# that gives an offset to add to the time_t when converting it. 66# "timelocal" is equivalent to "mktime". 67# "timegm" is like "timelocal" except that it turns a struct tm into 68# a time_t using UTC (rather than local time as "timelocal" does). 69# "timeoff" is like "timegm" except that it accepts a second (long) argument 70# that gives an offset to use when converting to a time_t. 71# "posix2time" and "time2posix" are described in an included manual page. 72# X3J11's work does not describe any of these functions. 73# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0. 74# These functions may well disappear in future releases of the time 75# conversion package. 76# 77# If you want Source Code Control System ID's left out of object modules, add 78# -DNOID 79# to the end of the "CFLAGS=" line. 80# 81# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put 82# out by the National Institute of Standards and Technology 83# which claims to test C and Posix conformance. If you want to pass PCTS, add 84# -DPCTS 85# to the end of the "CFLAGS=" line. 86