#
# priv/keyserver/
#
# $Id: Makefile.in,v 1.6.4.1 1997/11/25 03:02:03 marcd Exp $
#

PGPSOCKETSDIR= $(top_srcdir)/../network/pgpsockets
LDAPDIR= $(top_srcdir)/../network/ldaplib
LIBLBERDIR= $(LDAPDIR)/liblber
LIBLDAPDIR= $(LDAPDIR)/libldap

PGPSOCKETSSRCDIR= $(PGPSOCKETSDIR)/unix/src

SUBDIRS= $(PGPSOCKETSSRCDIR)

OBJS= pgpKs.o pgpKsLDAP.o pgpKsHTTP.o

LOCALDEFINES= -DPROTOTYPES -D_REENTRANT
LOCALINCLUDES= -I$(PGPSOCKETSDIR)/pub -I$(LDAPDIR)/include

LIBDONE= DONE $(LIBLBERDIR)/DONE $(LIBLDAPDIR)/DONE $(PGPSOCKETSSRCDIR)/DONE
LIBTDEPS= LIBDONE
LIBTARGET= $(top_srcdir)/unix/libPGPsdkKeyServer.a

INSTALLLIBS= $(LIBTARGET)

all depend clean::
	@for i in $(LDAPDIR); do \
		echo Making $@ in $(SUB)$$i; \
		(cd $$i; $(MAKE) $(MFLAGS) SUB=$(SUB)$$i/ \
			$@) || exit 1; \
	done

all:: LIBDONE DONE $(LIBTARGET)

clean::
	rm -f $(LIBTARGET)
