thisconfigdir=../..
myfulldir=clients/kpasswd
mydir=clients/kpasswd
BUILDTOP=$(REL)..$(S)..
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
DEFS=

SRCS=kpasswd.c ksetpwd.c

kpasswd: kpasswd.o $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o kpasswd kpasswd.o $(KRB5_BASE_LIBS)

ksetpwd: ksetpwd.o $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o ksetpwd ksetpwd.o $(KRB5_BASE_LIBS)

kpasswd.o:	$(srcdir)/kpasswd.c
ksetpwd.o:	$(srcdir)/ksetpwd.c

##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc
##WIN32##RCFLAGS=$(CPPFLAGS) -I$(SRCTOP) -D_WIN32 -DRES_ONLY

##WIN32##KPWD=$(OUTPRE)kpasswd.exe

##WIN32##EXERES=$(KPWD:.exe=.res)

##WIN32##$(EXERES): $(VERSIONRC)
##WIN32##        $(RC) $(RCFLAGS) -DKPASSWD_APP -fo $@ -r $**

all-unix:: kpasswd ksetpwd

clean-unix::
	$(RM) kpasswd.o kpasswd ksetpwd.o ksetpwd

install-all install-kdc install-server install-client install-unix::
	$(INSTALL_PROGRAM) kpasswd $(DESTDIR)$(CLIENT_BINDIR)/`echo kpasswd|sed '$(transform)'`
	$(INSTALL_DATA) $(srcdir)/kpasswd.M $(DESTDIR)$(CLIENT_MANDIR)/`echo kpasswd|sed '$(transform)'`.1;

##WIN32##all-windows:: $(KPWD)

##WIN32##$(KPWD): $(OUTPRE)kpasswd.obj $(KLIB) $(CLIB) $(EXERES)
##WIN32##	link $(EXE_LINKOPTS) -out:$@ $** $(SCLIB)
##WIN32##	$(_VC_MANIFEST_EMBED_EXE)

# +++ Dependency line eater +++
# 
# Makefile dependencies follow.  This must be the last section in
# the Makefile.in file
#
$(OUTPRE)kpasswd.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
  $(BUILDTOP)/include/krb5/krb5.h $(COM_ERR_DEPS) $(SRCTOP)/include/krb5.h \
  kpasswd.c
$(OUTPRE)ksetpwd.$(OBJEXT): $(BUILDTOP)/include/krb5/krb5.h \
  $(COM_ERR_DEPS) $(SRCTOP)/include/krb5.h ksetpwd.c
