thisconfigdir=./..
myfulldir=lib/kadm5/srv
mydir=srv
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
LOCALINCLUDES = -I$(BUILDTOP)/include/kadm5
DEFINES = @HESIOD_DEFS@

##DOSBUILDTOP = ..\..\..
##DOSLIBNAME = libkadm5srv.lib

LIB=kadm5srv
LIBMAJOR=4
LIBMINOR=0
STOBJLISTS=../OBJS.ST OBJS.ST
SHLIB_EXPDEPS=\
	$(TOPLIBD)/libgssrpc$(SHLIBEXT) \
	$(TOPLIBD)/libgssapi_krb5$(SHLIBEXT) \
	$(TOPLIBD)/libkdb5$(SHLIBEXT) \
	$(TOPLIBD)/libkrb5$(SHLIBEXT) \
	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \
	$(TOPLIBD)/libcom_err$(SHLIBEXT) \
	$(TOPLIBD)/libdyn$(SHLIBEXT)
SHLIB_EXPLIBS=-lgssrpc -lgssapi_krb5 -lkdb5  -lkrb5 -lk5crypto -lcom_err -ldyn @GEN_LIB@ @AIX_DB_LIB@
SHLIB_DIRS=-L$(TOPLIBD)
SHLIB_RDIRS=$(KRB5_LIBDIR)
RELDIR=kadm5/srv

SRCS =	$(srcdir)/svr_policy.c \
	$(srcdir)/svr_principal.c \
	$(srcdir)/server_acl.c \
	$(srcdir)/server_kdb.c \
	$(srcdir)/server_misc.c \
	$(srcdir)/server_init.c \
	$(srcdir)/server_dict.c \
	$(srcdir)/svr_iters.c \
	$(srcdir)/svr_chpass_util.c \
	$(srcdir)/adb_xdr.c \
	$(srcdir)/adb_policy.c \
	$(srcdir)/adb_free.c \
	$(srcdir)/adb_openclose.c

OBJS =	svr_policy.$(OBJEXT) \
	svr_principal.$(OBJEXT) \
	server_acl.$(OBJEXT) \
	server_kdb.$(OBJEXT) \
	server_misc.$(OBJEXT) \
	server_init.$(OBJEXT) \
	server_dict.$(OBJEXT) \
	svr_iters.$(OBJEXT) \
	svr_chpass_util.$(OBJEXT) \
	adb_xdr.$(OBJEXT) \
	adb_policy.$(OBJEXT) \
	adb_free.$(OBJEXT) \
	adb_openclose.$(OBJEXT)

STLIBOBJS = \
	svr_policy.o \
	svr_principal.o \
	server_acl.o \
	server_kdb.o \
	server_misc.o \
	server_init.o \
	server_dict.o \
	svr_iters.o \
	svr_chpass_util.o \
	adb_xdr.o \
	adb_policy.o \
	adb_free.o \
	adb_openclose.o

all-unix:: includes
all-unix:: all-liblinks
all-windows:: $(OBJS)

includes:: server_acl.h
	if cmp $(srcdir)/server_acl.h \
	$(BUILDTOP)/include/kadm5/server_acl.h >/dev/null 2>&1; then :; \
	else \
		(set -x; $(RM) $(BUILDTOP)/include/kadm5/server_acl.h; \
		 $(CP) $(srcdir)/server_acl.h \
			$(BUILDTOP)/include/kadm5/server_acl.h) ; \
	fi

clean-unix::
	$(RM) $(BUILDTOP)/include/kadm5/server_acl.h

check-windows::

clean-mac::
clean-windows::

clean-unix:: clean-liblinks clean-libs clean-libobjs

install:: install-libs
