1986-01-13 17:26:56 -05:00
|
|
|
# %W%
|
|
|
|
|
|
1986-02-28 21:30:44 -05:00
|
|
|
# If you want something other than Eastern United States time used on your
|
1986-03-02 22:02:58 -05:00
|
|
|
# system, change the line below (after finding the zone you want in the
|
|
|
|
|
# time zone files, or adding it to a time zone file).
|
|
|
|
|
# Alternately, if you discover you've got the wrong time zone, you can just
|
1986-02-28 21:30:44 -05:00
|
|
|
# tzcomp -l rightzone
|
|
|
|
|
|
1986-07-26 18:32:03 -04:00
|
|
|
LOCALTIME= US/Eastern
|
1986-02-28 21:30:44 -05:00
|
|
|
|
1986-03-02 22:02:58 -05:00
|
|
|
# Use an absolute path name for TZDIR unless you're just testing the software.
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-09-08 16:14:44 -04:00
|
|
|
TZDIR= /etc/timezones
|
1986-02-28 21:30:44 -05:00
|
|
|
|
1986-07-12 07:27:55 -04:00
|
|
|
# You may want to change this define if you're just testing the software.
|
|
|
|
|
|
|
|
|
|
TZLIB= /usr/lib/libtz.a
|
|
|
|
|
|
1986-03-05 18:46:40 -05:00
|
|
|
# LINTFLAGS is set for 4.1bsd systems. If you're using System V, you'll want
|
|
|
|
|
# to comment out the "LINTFLAGS=" line.
|
|
|
|
|
|
1986-01-21 09:11:47 -05:00
|
|
|
LINTFLAGS= -phbaaxc
|
1986-03-05 18:46:40 -05:00
|
|
|
|
|
|
|
|
DEBUG=
|
1986-01-21 09:11:47 -05:00
|
|
|
LFLAGS=
|
1986-01-21 09:14:37 -05:00
|
|
|
CFLAGS= $(DEBUG) -O -DOBJECTID -DTZDIR=\"$(TZDIR)\"
|
1986-01-16 08:50:41 -05:00
|
|
|
|
1986-03-03 21:37:29 -05:00
|
|
|
TZCSRCS= tzcomp.c scheck.c strchr.c mkdir.c
|
|
|
|
|
TZCOBJS= tzcomp.o scheck.o strchr.o mkdir.o
|
1986-01-21 09:34:04 -05:00
|
|
|
TZDSRCS= tzdump.c settz.c
|
|
|
|
|
TZDOBJS= tzdump.o settz.o
|
1986-03-06 10:40:48 -05:00
|
|
|
DOCS= README Makefile settz.3 tzfile.5 tzcomp.8
|
1986-07-12 06:32:08 -04:00
|
|
|
SOURCES= tzfile.h $(TZCSRCS) $(TZDSRCS) years.sh ctime.c
|
1986-08-28 09:31:16 -04:00
|
|
|
DATA= asia australasia europe etcetera northamerica pacificnew
|
1986-03-06 10:40:48 -05:00
|
|
|
ENCHILADA= $(DOCS) $(SOURCES) $(DATA)
|
1986-01-16 08:50:41 -05:00
|
|
|
|
1986-07-12 07:27:55 -04:00
|
|
|
all: REDID_BINARIES tzdump $(TZLIB)
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-03-02 22:02:58 -05:00
|
|
|
REDID_BINARIES: $(TZDIR) tzcomp $(DATA) years
|
|
|
|
|
tzcomp -l $(LOCALTIME) -d $(TZDIR) $(DATA)
|
1986-01-21 09:26:34 -05:00
|
|
|
cp /dev/null $@
|
1986-01-16 11:00:37 -05:00
|
|
|
|
1986-01-21 09:34:04 -05:00
|
|
|
tzdump: $(TZDOBJS)
|
1986-03-06 09:28:02 -05:00
|
|
|
$(CC) $(LFLAGS) $(TZDOBJS) -o $@
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-07-12 07:27:55 -04:00
|
|
|
$(TZLIB): ctime.o settz.o
|
|
|
|
|
ar ru $@ ctime.o settz.o
|
|
|
|
|
ranlib $@
|
|
|
|
|
|
1986-01-16 08:50:41 -05:00
|
|
|
tzcomp: $(TZCOBJS)
|
1986-03-06 09:28:02 -05:00
|
|
|
$(CC) $(LFLAGS) $(TZCOBJS) -o $@
|
1986-01-21 09:11:47 -05:00
|
|
|
|
|
|
|
|
$(TZDIR):
|
1986-01-21 09:26:34 -05:00
|
|
|
mkdir $@
|
1986-01-21 09:11:47 -05:00
|
|
|
|
|
|
|
|
years: years.sh
|
1986-01-21 09:26:34 -05:00
|
|
|
rm -f $@
|
|
|
|
|
cp $? $@
|
|
|
|
|
chmod 555 $@
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-03-06 10:40:48 -05:00
|
|
|
BUNDLE1: $(DOCS)
|
|
|
|
|
bundle $(DOCS) > BUNDLE1
|
|
|
|
|
|
|
|
|
|
BUNDLE2: $(SOURCES)
|
|
|
|
|
bundle $(SOURCES) > BUNDLE2
|
|
|
|
|
|
|
|
|
|
BUNDLE3: $(DATA)
|
|
|
|
|
bundle $(DATA) > BUNDLE3
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-01-16 11:00:37 -05:00
|
|
|
$(ENCHILADA):
|
1986-01-21 09:26:34 -05:00
|
|
|
sccs get $(REL) $(REV) $@
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-07-25 20:14:51 -04:00
|
|
|
sure: $(TZCSRCS) $(TZDSRCS) tzfile.h ctime.c
|
1986-01-21 09:26:34 -05:00
|
|
|
lint $(LINTFLAGS) $(TZCSRCS)
|
1986-01-21 09:34:04 -05:00
|
|
|
lint $(LINTFLAGS) $(TZDSRCS)
|
1986-07-12 06:37:15 -04:00
|
|
|
lint $(LINTFLAGS) ctime.c
|
1986-01-13 17:26:56 -05:00
|
|
|
|
|
|
|
|
clean:
|
1986-03-02 22:04:03 -05:00
|
|
|
rm -f core *.o *.out REDID_BINARIES years tzdump tzcomp BUNDLE \#*
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-01-16 08:50:41 -05:00
|
|
|
CLEAN: clean
|
1986-01-21 09:26:34 -05:00
|
|
|
sccs clean
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-02-15 15:23:00 -05:00
|
|
|
tzdump.o tzcomp.o settz.o: tzfile.h
|