#
# standalone iv old make makefile
#
ivsa : astsa testiv
include astsa.omk
CC = cc
CFLAGS = $(IVSA_CFLAGS)
IVSA_CFLAGS = $(ASTSA_CFLAGS) -DUSAGE_LICENSE='"[-author?Glenn Fowler <gsf@research.att.com>][-author?Phong Vo <kpv@research.att.com>][-copyright?Copyright (c) 2000-'`date +%Y`' AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?dssip_t]"'
testiv : testiv.o libivsa.a libastsa.a
$(CC) $(CFLAGS) -o testiv $?
libivsa.a : \
fv.o ivopen.o ivclose.o ivfmt.o ivstr.o ivmeth.o iv-flat.o iv-nested.o
ar cr libivsa.a $?
test : testiv
testiv -ip4 iv-ip4-prefix.dat iv-ip4-addr.dat > iv-ip4.tmp
@cmp -s iv-ip4.out iv-ip4.tmp || { echo 'test ip4 FAILED -- >: expected <: got'; diff iv-ip4.tmp iv-ip4.out; }
testiv -ip6 iv-ip6-prefix.dat iv-ip6-addr.dat > iv-ip6.tmp
@cmp -s iv-ip6.out iv-ip6.tmp || { echo 'test ip6 FAILED -- >: expected <: got'; diff iv-ip6.tmp iv-ip6.out; }
clobber : iv_clobber
iv_clobber :
rm -f testiv iv-ip4.tmp iv-ip6.tmp