thisconfigdir=./..
myfulldir=kadmin/dbutil
mydir=dbutil
BUILDTOP=$(REL)$(U)$(S)$(U)
DEFINES = -DKDB4_DISABLE
LOCALINCLUDES = -I. @KRB4_INCLUDES@ 
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)

PROG = kdb5_util
OBJS	= kdb5_util.o dump.o dumpv4.o loadv4.o \
	kdb5_create.o kadm5_create.o string_table.o kdb5_stash.o \
	kdb5_destroy.o ovload.o import_err.o strtok.o

all:: $(PROG)

$(PROG): $(OBJS) $(KADMSRV_DEPLIBS) $(KRB4COMPAT_DEPLIBS)
	$(CC_LINK) -o $(PROG) $(OBJS) $(KADMSRV_LIBS) $(KRB4COMPAT_LIBS)

import_err.c import_err.h: $(srcdir)/import_err.et

$(OBJS): import_err.h

install::
	$(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(ADMIN_BINDIR)/$(PROG)
	$(INSTALL_DATA) $(srcdir)/$(PROG).M ${DESTDIR}$(ADMIN_MANDIR)/$(PROG).8

clean::
	$(RM) $(PROG) $(OBJS) import_err.c import_err.h
