default: it

accustamp: \
load accustamp.o libsubstdio.a liberror.a libstr.a libfs.a
	./load accustamp libsubstdio.a liberror.a libstr.a libfs.a

accustamp.o: \
compile accustamp.c accustamp.c accustamp.c substdio.h accustamp.c \
subfd.h accustamp.c fmt.h accustamp.c exit.h accustamp.c
	./compile accustamp.c

bin: \
load bin.o libsubstdio.a liberror.a libstr.a
	./load bin libsubstdio.a liberror.a libstr.a

bin.o: \
compile bin.c substdio.h bin.c subfd.h bin.c conf-bin.h bin.c
	./compile bin.c

byte_copy.o: \
compile byte_copy.c byte.h byte_copy.c
	./compile byte_copy.c

byte_cr.o: \
compile byte_cr.c byte.h byte_cr.c
	./compile byte_cr.c

columnt: \
warn-auto.sh columnt.sh bin
	cat warn-auto.sh columnt.sh | sed s}BIN}"`./bin`"}g > \
	columnt
	chmod 755 columnt

compile: \
make-commands systype
	./make-commands "`cat ./systype`" compile > compile
	chmod 755 compile

ddist: \
warn-auto.sh ddist.sh bin
	cat warn-auto.sh ddist.sh | sed s}BIN}"`./bin`"}g > ddist
	chmod 755 ddist

deferrals: \
warn-auto.sh deferrals.sh bin
	cat warn-auto.sh deferrals.sh | sed s}BIN}"`./bin`"}g > \
	deferrals
	chmod 755 deferrals

error.o: \
compile error.c error.c error.h error.c
	./compile error.c

failures: \
warn-auto.sh failures.sh bin
	cat warn-auto.sh failures.sh | sed s}BIN}"`./bin`"}g > \
	failures
	chmod 755 failures

find-systype: \
find-systype.sh conf-cc.sh warn-auto.sh
	cat warn-auto.sh conf-cc.sh find-systype.sh > find-systype
	chmod 755 find-systype

fmt_uint.o: \
compile fmt_uint.c fmt.h fmt_uint.c
	./compile fmt_uint.c

fmt_uint0.o: \
compile fmt_uint0.c fmt.h fmt_uint0.c
	./compile fmt_uint0.c

fmt_ulong.o: \
compile fmt_ulong.c fmt.h fmt_ulong.c
	./compile fmt_ulong.c

it: \
accustamp matchup columnt zoverall ddist deferrals failures successes \
rhosts recipients rxdelay senders suids zddist zdeferrals zfailures \
zsuccesses zrhosts zrecipients zrxdelay zsenders zsuids

liberror.a: \
makelib error.o
	./makelib liberror.a error.o

libfs.a: \
makelib fmt_uint.o fmt_uint0.o fmt_ulong.o
	./makelib libfs.a fmt_uint.o fmt_uint0.o fmt_ulong.o

libstr.a: \
makelib str_len.o byte_copy.o byte_cr.o
	./makelib libstr.a str_len.o byte_copy.o byte_cr.o

libsubstdio.a: \
makelib substdio.o substdi.o substdo.o subfdouts.o subfdins.o
	./makelib libsubstdio.a substdio.o substdi.o substdo.o \
	subfdouts.o subfdins.o

load: \
make-commands systype
	./make-commands "`cat ./systype`" load > load
	chmod 755 load

make-commands: \
make-cmds.sh conf-cc.sh warn-auto.sh
	cat warn-auto.sh conf-cc.sh make-cmds.sh > make-commands
	chmod 755 make-commands

makelib: \
make-commands systype
	./make-commands "`cat ./systype`" makelib > makelib
	chmod 755 makelib

matchup: \
warn-auto.sh matchup.sh bin
	cat warn-auto.sh matchup.sh | sed s}BIN}"`./bin`"}g > \
	matchup
	chmod 755 matchup

recipients: \
warn-auto.sh recipients.sh bin
	cat warn-auto.sh recipients.sh | sed s}BIN}"`./bin`"}g > \
	recipients
	chmod 755 recipients

rhosts: \
warn-auto.sh rhosts.sh bin
	cat warn-auto.sh rhosts.sh | sed s}BIN}"`./bin`"}g > rhosts
	chmod 755 rhosts

rxdelay: \
warn-auto.sh rxdelay.sh bin
	cat warn-auto.sh rxdelay.sh | sed s}BIN}"`./bin`"}g > \
	rxdelay
	chmod 755 rxdelay

senders: \
warn-auto.sh senders.sh bin
	cat warn-auto.sh senders.sh | sed s}BIN}"`./bin`"}g > \
	senders
	chmod 755 senders

setup: \
setupbin bin it
	./setupbin "`./bin`"

setupbin: \
warn-auto.sh setupbin.sh bin
	cat warn-auto.sh setupbin.sh | sed s}BIN}"`./bin`"} > \
	setupbin
	chmod 755 setupbin

shar: \
FILES BLURB README INSTALL TODO THANKS CHANGES FILES VERSION SYSDEPS \
Makefile accustamp.c bin.c setupbin.sh conf-bin.h columnt.sh ddist.sh \
deferrals.sh failures.sh matchup.sh rhosts.sh recipients.sh \
rxdelay.sh senders.sh successes.sh suids.sh zddist.sh zdeferrals.sh \
zfailures.sh zoverall.sh zrhosts.sh zrecipients.sh zrxdelay.sh \
zsenders.sh zsuccesses.sh zsuids.sh conf-cc.sh find-systype.sh \
make-cmds.sh trycpp.c warn-auto.sh fmt.h fmt_uint.c fmt_uint0.c \
fmt_ulong.c substdio.h substdio.c substdi.c substdo.c subfd.h \
subfdouts.c subfdins.c readwrite.h exit.h error.h error.c byte.h \
byte_copy.c byte_cr.c str.h str_len.c
	shar -m `cat FILES` > shar
	chmod 400 shar

str_len.o: \
compile str_len.c str.h str_len.c
	./compile str_len.c

subfdins.o: \
compile subfdins.c readwrite.h subfdins.c substdio.h subfdins.c \
subfd.h subfdins.c
	./compile subfdins.c

subfdouts.o: \
compile subfdouts.c readwrite.h subfdouts.c substdio.h subfdouts.c \
subfd.h subfdouts.c
	./compile subfdouts.c

substdi.o: \
compile substdi.c substdio.h substdi.c byte.h substdi.c error.h \
substdi.c
	./compile substdi.c

substdio.o: \
compile substdio.c substdio.h substdio.c
	./compile substdio.c

substdo.o: \
compile substdo.c substdio.h substdo.c str.h substdo.c byte.h \
substdo.c error.h substdo.c
	./compile substdo.c

successes: \
warn-auto.sh successes.sh bin
	cat warn-auto.sh successes.sh | sed s}BIN}"`./bin`"}g > \
	successes
	chmod 755 successes

suids: \
warn-auto.sh suids.sh bin
	cat warn-auto.sh suids.sh | sed s}BIN}"`./bin`"}g > suids
	chmod 755 suids

systype: \
find-systype trycpp.c
	./find-systype > systype

zddist: \
warn-auto.sh zddist.sh bin
	cat warn-auto.sh zddist.sh | sed s}BIN}"`./bin`"}g > zddist
	chmod 755 zddist

zdeferrals: \
warn-auto.sh zdeferrals.sh bin
	cat warn-auto.sh zdeferrals.sh | sed s}BIN}"`./bin`"}g > \
	zdeferrals
	chmod 755 zdeferrals

zfailures: \
warn-auto.sh zfailures.sh bin
	cat warn-auto.sh zfailures.sh | sed s}BIN}"`./bin`"}g > \
	zfailures
	chmod 755 zfailures

zoverall: \
warn-auto.sh zoverall.sh bin
	cat warn-auto.sh zoverall.sh | sed s}BIN}"`./bin`"}g > \
	zoverall
	chmod 755 zoverall

zrecipients: \
warn-auto.sh zrecipients.sh bin
	cat warn-auto.sh zrecipients.sh | sed s}BIN}"`./bin`"}g > \
	zrecipients
	chmod 755 zrecipients

zrhosts: \
warn-auto.sh zrhosts.sh bin
	cat warn-auto.sh zrhosts.sh | sed s}BIN}"`./bin`"}g > \
	zrhosts
	chmod 755 zrhosts

zrxdelay: \
warn-auto.sh zrxdelay.sh bin
	cat warn-auto.sh zrxdelay.sh | sed s}BIN}"`./bin`"}g > \
	zrxdelay
	chmod 755 zrxdelay

zsenders: \
warn-auto.sh zsenders.sh bin
	cat warn-auto.sh zsenders.sh | sed s}BIN}"`./bin`"}g > \
	zsenders
	chmod 755 zsenders

zsuccesses: \
warn-auto.sh zsuccesses.sh bin
	cat warn-auto.sh zsuccesses.sh | sed s}BIN}"`./bin`"}g > \
	zsuccesses
	chmod 755 zsuccesses

zsuids: \
warn-auto.sh zsuids.sh bin
	cat warn-auto.sh zsuids.sh | sed s}BIN}"`./bin`"}g > zsuids
	chmod 755 zsuids
