Files
amiga-tz/Makefile
T

127 lines
3.2 KiB
Makefile
Raw Normal View History

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-11-19 19:15:31 -05:00
# zic -l rightzone
1986-02-28 21:30:44 -05:00
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-21 09:11:47 -05:00
1986-11-15 20:20:29 -05:00
TZDIR= /etc/zoneinfo
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.
1986-11-22 19:03:35 -05:00
TZLIB= /usr/lib/libz.a
1986-07-12 07:27:55 -04:00
1986-12-26 15:21:45 -05:00
#
# If you're running on a System V-style system and don't want lint grief,
# add
# -DUSG
# to the end of the "CFLAGS=" line.
#
1987-02-02 15:32:36 -05:00
# If you're running on a system where "strchr" is known as "index",
# for example, a 4.[012]BSD system), add
# -Dstrchr=index
# to the end of the "CFLAGS=" line.
#
1986-12-26 15:21:45 -05:00
# If you want to use System V compatibility code, add
# -DUSG_COMPAT
# to the end of the "CFLAGS=" line.
#
# If you want BSD compatibility code, add
# -DBSD_COMPAT
# to the end of the "CFLAGS=" line.
#
1987-01-01 14:30:56 -05:00
# If you want POSIX compatibility code, add
# -DPOX_COMPAT
# to the end of the "CFLAGS=" line.
#
1986-12-26 15:21:45 -05:00
# If you've used older versions of this software and want "tz_abbr"
# compatibility code, add
# -DTZA_COMPAT
# to the end of the "CFLAGS=" line.
#
# If you want Source Code Control System ID's left out of object modules, add
# -DNOID
# to the end of the "CFLAGS=" line.
#
1987-02-08 17:59:44 -05:00
# If you'll never want to handle solar-time-based time zones, add
# -DNOSOLAR
# to the end of the "CFLAGS=" line.
#
1986-11-27 12:46:22 -05:00
1986-12-26 15:21:45 -05:00
CFLAGS=
1986-11-27 12:46:22 -05:00
# LINTFLAGS is set for 4.[123]BSD systems.
1986-12-26 15:21:45 -05:00
# If you're using System V, you'll want to comment out the "LINTFLAGS=" line.
1986-03-05 18:46:40 -05:00
1986-01-13 17:26:56 -05:00
LINTFLAGS= -phbaaxc
1986-03-05 18:46:40 -05:00
1986-12-26 15:21:45 -05:00
################################################################################
1986-12-31 15:56:04 -05:00
CC= cc -DTZDIR=\"$(TZDIR)\"
1986-01-13 17:26:56 -05:00
1986-12-25 18:10:49 -05:00
TZCSRCS= zic.c scheck.c ialloc.c mkdir.c
TZCOBJS= zic.o scheck.o ialloc.o mkdir.o
1986-12-31 14:23:02 -05:00
TZDSRCS= zdump.c localtime.c gmtime.c asctime.c ctime.c ialloc.c
TZDOBJS= zdump.o localtime.o gmtime.o asctime.o ctime.o ialloc.o
1987-01-01 14:30:56 -05:00
LIBSRCS= localtime.c gmtime.c asctime.c ctime.c dysize.c mktime.c
LIBOBJS= localtime.o gmtime.o asctime.o ctime.o dysize.o mktime.o
1986-11-19 19:15:31 -05:00
DOCS= README Makefile newctime.3 tzfile.5 zic.8 zdump.8
1986-12-31 14:23:02 -05:00
SOURCES= tzfile.h zic.c zdump.c \
1987-01-01 14:30:56 -05:00
localtime.c gmtime.c asctime.c ctime.c dysize.c mktime.c \
1986-12-31 14:23:02 -05:00
scheck.c ialloc.c mkdir.c
1986-11-15 20:20:29 -05:00
DATA= asia australasia europe etcetera northamerica pacificnew systemv
1986-03-06 10:40:48 -05:00
ENCHILADA= $(DOCS) $(SOURCES) $(DATA)
1986-01-13 17:26:56 -05:00
1986-12-26 15:21:45 -05:00
all: REDID_BINARIES zdump $(TZLIB)
1986-01-13 17:26:56 -05:00
1986-11-19 19:29:38 -05:00
REDID_BINARIES: $(TZDIR) zic $(DATA)
1986-12-26 15:21:45 -05:00
PATH=.:$$PATH zic -l $(LOCALTIME) -d $(TZDIR) $(DATA) && > $@
1986-01-16 11:00:37 -05:00
1986-12-26 15:21:45 -05:00
zdump: $(TZDOBJS)
1986-12-31 15:56:04 -05:00
$(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) -o $@
1986-01-13 17:26:56 -05:00
1986-12-31 14:23:02 -05:00
$(TZLIB): $(LIBOBJS)
ar ru $@ $(LIBOBJS)
test -f /usr/bin/ranlib && ranlib $@
1986-07-12 07:27:55 -04:00
1986-12-26 15:21:45 -05:00
zic: $(TZCOBJS)
1986-12-31 15:56:04 -05:00
$(CC) $(CFLAGS) $(LFLAGS) $(TZCOBJS) -o $@
1986-01-21 09:11:47 -05:00
$(TZDIR):
1986-12-26 15:21:45 -05:00
mkdir $@
1986-01-21 09:11:47 -05:00
1986-11-24 19:15:06 -05:00
BUNDLES: BUNDLE1 BUNDLE2 BUNDLE3
1986-03-06 10:40:48 -05:00
BUNDLE1: $(DOCS)
1986-12-26 15:21:45 -05:00
bundle $(DOCS) > $@
1986-03-06 10:40:48 -05:00
BUNDLE2: $(SOURCES)
1986-12-26 15:21:45 -05:00
bundle $(SOURCES) > $@
1986-03-06 10:40:48 -05:00
BUNDLE3: $(DATA)
1986-12-26 15:21:45 -05:00
bundle $(DATA) > $@
1986-01-16 08:50:41 -05:00
1986-01-16 11:00:37 -05:00
$(ENCHILADA):
1986-12-26 15:21:45 -05:00
sccs get $(REL) $(REV) $@
1986-01-16 08:50:41 -05:00
1986-12-26 15:21:45 -05:00
sure: $(TZCSRCS) $(TZDSRCS) tzfile.h
lint $(LINTFLAGS) $(CFLAGS) $(TZCSRCS)
lint $(LINTFLAGS) $(CFLAGS) $(TZDSRCS)
1986-12-31 14:23:02 -05:00
lint $(LINTFLAGS) $(CFLAGS) $(LIBSRCS)
1986-01-13 17:26:56 -05:00
clean:
1986-12-26 15:21:45 -05:00
rm -f core *.o *.out REDID_BINARIES zdump zic BUNDLE* \#*
1986-01-13 17:26:56 -05:00
1986-12-26 15:21:45 -05:00
CLEAN: clean
sccs clean
1986-01-13 17:26:56 -05:00
1986-11-24 16:39:58 -05:00
listing: $(ENCHILADA)
1986-12-26 15:21:45 -05:00
pr $(ENCHILADA) | lpr
1986-11-24 16:39:58 -05:00
1986-11-19 19:15:31 -05:00
zdump.o zic.o newctime.o: tzfile.h