thisconfigdir=./..
myfulldir=kadmin/ktutil
mydir=ktutil
BUILDTOP=$(REL)$(U)$(S)$(U)
LOCALINCLUDES = $(KRB4_INCLUDES)
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)

OBJS= 	ktutil.o \
	ktutil_ct.o \
	ktutil_funcs.o

SRCS= 	$(srcdir)/ktutil.c \
	$(srcdir)/ktutil_ct.c \
	$(srcdir)/ktutil_funcs.c

all:: ktutil

ktutil: ktutil.o $(OBJS) $(SS_DEPLIB) $(KRB4COMPAT_DEPLIBS)
	$(CC_LINK) -o ktutil $(OBJS) $(SS_LIB) $(KRB4COMPAT_LIBS)

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

# needed until we run makedepend
ktutil_ct.c: ktutil_ct.ct

ktutil_ct.o: ktutil_ct.c

clean::
	$(RM) ktutil_ct.c

depend:: ktutil_ct.c

clean::
	$(RM) ktutil
