CFLAGS =	-O $(CF)
CRCC =	arc.c ccitt.c kermit.c binhex.c ccitt32.c zip.c
CRCO =	arc.o ccitt.o kermit.o binhex.o ccitt32.o zip.o

libcrc.a:	$(CRCO)
	libtool -o libcrc.a $(CRCO)
# The following commented out for NeXT compilation; libtool supersedes ar
# and ranlib.
#	ar r libcrc.a $(CRCO)
#	if test -f /usr/bin/ranlib ;\
#	then \
#		ranlib libcrc.a ;\
#	fi

clean:
	-rm -f $(CRCC) $(CRCO) libcrc.a makecrc makecrc.o

$(CRCC):	makecrc
	./makecrc

makecrc:	makecrc.o
	cc $(CFLAGS) -o makecrc makecrc.o

arc.o:	arc.c
ccitt.o:	ccitt.c
kermit.o:	kermit.c
binhex.o:	binhex.c
ccitt32.o:	ccitt32.c
zip.o:		zip.c

