#*****************************************************************************
# 	        (c) Copyright 1994 Wide Area Information Servers, Inc        *
#	   	                 All rights reserved.    	             *
#									     *
#  This notice is intended as a precaution against inadvertent publication   *
#  and does not constitute an admission or acknowledgement that publication  *
#  has occurred or constitute a waiver of confidentiality.		     *
#									     *
#  Wide Area Information Server software is the proprietary and              *
#  confidential property of Wide Area Information Servers, Inc.              *
#*****************************************************************************

CFLAGS = $(FLAGS) -I. -Iz3950V2 -Iz39501988

# Start of the Makefile proper:
#-----------------------------------------------------------------------------

OBJS = \
	appConnCli.o \
	appConnMgr.o \
	cutil.o \
	date.o \
	futil.o \
	irfileio.c \
	list.o \
	nConnMgr.o \
	panic.o \
	sockets.o \
	stdioConn.o \
	tcpConn.o \
	ustubs.o \
	waislog.o

PROTS = \
	z3950V2 \
	z39501988

libCli.a:: $(OBJS) $(PROTS)
	$(RM) -f $@
	$(AR) r $@ $(OBJS)
	$(RANLIB) $@
	mv $@ ../lib

# Make client library for the V2 version of Z39.50.
z3950V2::
	cd z3950V2; \
	$(MAKE) CC=$(CC) FLAGS="$(FLAGS)" RANLIB=$(RANLIB) AR=$(AR) RM=$(RM)


# Make client library for the 1988 version of Z39.50.
z39501988::
	cd z39501988; \
	$(MAKE) CC=$(CC) FLAGS="$(FLAGS)" RANLIB=$(RANLIB) AR=$(AR) RM=$(RM)

clean:
	$(RM) -f *.o
	$(RM) -f *~
	$(RM) -f \#*
	$(RM) -f *.a
	$(RM) -f core
	cd z39501988; make $@
	cd z3950V2; make $@
