Files
amiga-tz/Makefile
T
Arthur David Olson 6d59326e1a modstd rule
SCCS-file: Makefile
SCCS-SID: 1.13
2012-07-18 03:01:35 -04:00

58 lines
1.1 KiB
Makefile

# %W%
# Use an absolute path name for TZDIR unless you're just testing the software.
TZDIR= /usr/local/lib/tzdir
DEBUG=
LINTFLAGS= -phbaaxc
LFLAGS=
CFLAGS= $(DEBUG) -O -DOBJECTID -DTZDIR=\"$(TZDIR)\"
TZCSRCS= tzcomp.c scheck.c strchr.c
TZCOBJS= tzcomp.o scheck.o strchr.o
TZDSRCS= tzdump.c settz.c
TZDOBJS= tzdump.o settz.o
ENCHILADA= Makefile tzfile.h $(TZCSRCS) $(TZDSRCS) tzinfo years.sh \
README settz.3 tzfile.5 tzcomp.8
all: REDID_BINARIES tzdump
REDID_BINARIES: $(TZDIR) tzcomp tzinfo years
tzcomp -d $(TZDIR) tzinfo
cp /dev/null $@
tzdump: $(TZDOBJS)
$(CC) $(LFLAGS) $(TZDOBJS) $(LIBS) -o $@
tzcomp: $(TZCOBJS)
$(CC) $(LFLAGS) $(TZCOBJS) $(LIBS) -o $@
$(TZDIR):
mkdir $@
years: years.sh
rm -f $@
cp $? $@
chmod 555 $@
bundle: $(ENCHILADA)
bundle $(ENCHILADA) > bundle
modstd: README settz.3 tzfile.5 tzcomp.8 tzinfo
bundle README settz.3 tzfile.5 tzcomp.8 tzinfo > modstd
$(ENCHILADA):
sccs get $(REL) $(REV) $@
sure: $(TZCSRCS) $(TZDSRCS)
lint $(LINTFLAGS) $(TZCSRCS)
lint $(LINTFLAGS) $(TZDSRCS)
clean:
rm -f core *.o *.out REDID_BINARIES years tzdump tzcomp bundle \#*
CLEAN: clean
sccs clean
tzdump.o tzcomp.o settz.o: tzfile.h