|
|
1.1 ! root 1: # @(#)Makefile 5.7 (Berkeley) 6/24/90 ! 2: ! 3: # Change the line below for your time zone (after finding the zone you want in ! 4: # the time zone files, or adding it to a time zone file). ! 5: # Alternately, if you discover you've got the wrong time zone, you can just ! 6: # zic -l rightzone ! 7: ! 8: LOCALTIME= US/Pacific ! 9: ! 10: # If you want something other than Eastern United States time as a template ! 11: # for handling POSIX-style time zone environment variables, ! 12: # change the line below (after finding the zone you want in the ! 13: # time zone files, or adding it to a time zone file). ! 14: # Alternately, if you discover you've got the wrong time zone, you can just ! 15: # zic -p rightzone ! 16: ! 17: POSIXRULES= US/Pacific ! 18: ! 19: # Use an absolute path name for TZDIR unless you're just testing the software. ! 20: ! 21: TZDIR= ${DESTDIR}/usr/share/zoneinfo ! 22: ! 23: # If you always want time values interpreted as "seconds since the epoch ! 24: # (not counting leap seconds)", use ! 25: # REDO= posix_only ! 26: # below. If you always want right time values interpreted as "seconds since ! 27: # the epoch" (counting leap seconds)", use ! 28: # REDO= right_only ! 29: # below. If you want both sets of data available, with leap seconds not ! 30: # counted normally, use ! 31: # REDO= posix_right ! 32: # below. If you want both sets of data available, with leap seconds counted ! 33: # normally, use ! 34: # REDO= right_posix ! 35: # below. ! 36: ! 37: REDO= right_only ! 38: ! 39: # If you're running on a System V-style system and don't want lint grief, ! 40: # add ! 41: # -DUSG ! 42: # to the end of the "CFLAGS=" line. ! 43: # ! 44: # If you're running on a system where "strchr" is known as "index", ! 45: # (for example, a 4.[012]BSD system), add ! 46: # -Dstrchr=index ! 47: # to the end of the "CFLAGS=" line. ! 48: # ! 49: # If you're running on a system with a "mkdir" function, feel free to add ! 50: # -Demkdir=mkdir ! 51: # to the end of the "CFLAGS=" line ! 52: # ! 53: # If you want to use System V compatibility code, add ! 54: # -DUSG_COMPAT ! 55: # to the end of the "CFLAGS=" line. ! 56: # ! 57: # If your system has a "GMT offset" field in its "struct tm"s ! 58: # (or if you decide to add such a field in your system's "time.h" file), ! 59: # add the name to a define such as ! 60: # -DTM_GMTOFF=tm_gmtoff ! 61: # or ! 62: # -DTM_GMTOFF=_tm_gmtoff ! 63: # to the end of the "CFLAGS=" line. ! 64: # ! 65: # If your system has a "GMT offset" field in its "struct tm"s ! 66: # (or if you decide to add such a field in your system's "time.h" file), ! 67: # add the name to a define such as ! 68: # -DTM_ZONE=tm_zone ! 69: # or ! 70: # -DTM_ZONE=_tm_zone ! 71: # to the end of the "CFLAGS=" line. ! 72: # ! 73: # If you want code inspired by certain emerging standards, add ! 74: # -DSTD_INSPIRED ! 75: # to the end of the "CFLAGS=" line. ! 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: # If you'll never want to handle solar-time-based time zones, add ! 82: # -DNOSOLAR ! 83: # to the end of the "CFLAGS=" line ! 84: # (and comment out the "SDATA=" line below). ! 85: # ! 86: # If you want to allocate state structures in localtime, add ! 87: # -DALL_STATE ! 88: # to the end of the "CFLAGS=" line. ! 89: # ! 90: # If you want an "altzone" variable (a la System V Release 3.1), add ! 91: # -DALTZONE ! 92: # to the end of the "CFLAGS=" line. ! 93: # ! 94: # If you want a "gtime" function (a la MACH), add ! 95: # -DCMUCS ! 96: # to the end of the "CFLAGS=" line ! 97: ! 98: .PATH: ${.CURDIR}/datfiles ! 99: CFLAGS= -Demkdir=mkdir -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone ! 100: PROG= zic ! 101: MAN5= tzfile.0 ! 102: ! 103: SRCS= zic.c scheck.c ialloc.c ! 104: OBJS= ${SRCS:.c=.o} ! 105: ! 106: YDATA= africa antarctica asia australasia europe northamerica \ ! 107: southamerica pacificnew etcetera factory ! 108: NDATA= systemv ! 109: #SDATA= solar87 solar88 solar89 ! 110: TDATA= ${YDATA} ${NDATA} ${SDATA} ! 111: DATA= ${YDATA} ${NDATA} ${SDATA} leapseconds ! 112: USNO= usno1988 usno1989 ! 113: ! 114: posix_only: ${TDATA} ! 115: (cd ${.CURDIR}/datfiles; \ ! 116: ../obj/zic -d ${TZDIR} -L /dev/null ${TDATA}) ! 117: ! 118: right_only: leapseconds ${TDATA} ! 119: (cd ${.CURDIR}/datfiles; \ ! 120: ../obj/zic -d ${TZDIR} -L leapseconds ${TDATA}) ! 121: ! 122: other_two: leapseconds ${TDATA} ! 123: (cd ${.CURDIR}/datfiles; ! 124: ../obj/zic -d ${TZDIR}/posix -L /dev/null ${TDATA}) ! 125: (cd ${.CURDIR}/datfiles; \ ! 126: ../obj/zic -d ${TZDIR}/right -L leapseconds ${TDATA}) ! 127: ! 128: posix_right: posix_only other_two ! 129: ! 130: right_posix: right_only other_two ! 131: ! 132: install: maninstall ${DATA} ${REDO} ! 133: (cd ${.CURDIR}/datfiles; \ ! 134: ../obj/zic -d ${TZDIR} -p ${POSIXRULES}) ! 135: install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ! 136: ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime ! 137: chown -R ${BINOWN}.${BINGRP} ${TZDIR} ! 138: chmod -R a-w ${TZDIR} ! 139: ! 140: .include <bsd.prog.mk>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.