1986-01-13 17:26:56 -05:00
|
|
|
# %W%
|
|
|
|
|
|
1986-01-21 09:11:47 -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-01-21 09:11:47 -05:00
|
|
|
TZDIR= /usr/local/lib/tzdir
|
|
|
|
|
DEBUG=
|
|
|
|
|
LINTFLAGS= -phbaaxc
|
|
|
|
|
LFLAGS=
|
1986-01-21 09:14:37 -05:00
|
|
|
CFLAGS= $(DEBUG) -O -DOBJECTID -DTZDIR=\"$(TZDIR)\"
|
1986-01-16 08:50:41 -05:00
|
|
|
|
|
|
|
|
TZCSRCS= tzcomp.c scheck.c strchr.c
|
|
|
|
|
TZCOBJS= tzcomp.o scheck.o strchr.o
|
1986-01-21 09:34:04 -05:00
|
|
|
TZDSRCS= tzdump.c settz.c
|
|
|
|
|
TZDOBJS= tzdump.o settz.o
|
1986-02-15 15:23:00 -05:00
|
|
|
ENCHILADA= Makefile tzfile.h $(TZCSRCS) $(TZDSRCS) tzinfo years.sh
|
1986-01-16 08:50:41 -05:00
|
|
|
|
1986-01-21 09:26:34 -05:00
|
|
|
all: REDID_BINARIES tzdump
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-01-21 09:26:34 -05:00
|
|
|
REDID_BINARIES: $(TZDIR) tzcomp tzinfo years
|
|
|
|
|
tzcomp -d $(TZDIR) tzinfo
|
|
|
|
|
cp /dev/null $@
|
1986-01-16 11:00:37 -05:00
|
|
|
|
1986-01-21 09:34:04 -05:00
|
|
|
tzdump: $(TZDOBJS)
|
|
|
|
|
$(CC) $(LFLAGS) $(TZDOBJS) $(LIBS) -o $@
|
1986-01-13 17:26:56 -05:00
|
|
|
|
1986-01-16 08:50:41 -05:00
|
|
|
tzcomp: $(TZCOBJS)
|
1986-01-21 09:26:34 -05:00
|
|
|
$(CC) $(LFLAGS) $(TZCOBJS) $(LIBS) -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-01-16 11:00:37 -05:00
|
|
|
bundle: $(ENCHILADA)
|
1986-01-21 09:26:34 -05:00
|
|
|
bundle $(ENCHILADA) > bundle
|
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-01-21 09:34:04 -05:00
|
|
|
sure: $(TZCSRCS) $(TZDSRCS)
|
1986-01-21 09:26:34 -05:00
|
|
|
lint $(LINTFLAGS) $(TZCSRCS)
|
1986-01-21 09:34:04 -05:00
|
|
|
lint $(LINTFLAGS) $(TZDSRCS)
|
1986-01-13 17:26:56 -05:00
|
|
|
|
|
|
|
|
clean:
|
1986-01-21 09:26:34 -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
|