thisconfigdir=./..
myfulldir=lib/krb5/keytab
mydir=keytab
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
LOCAL_SUBDIRS = file srvtab

##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=keytab
##DOS##OBJFILE=..\$(OUTPRE)$(PREFIXDIR).lst
##WIN16##LIBNAME=..\krb5.lib

MAC_SUBDIRS = file srvtab

STLIBOBJS= \
	ktadd.o		\
	ktbase.o	\
	ktdefault.o	\
	ktfr_entry.o	\
	ktremove.o	\
	read_servi.o

OBJS=	\
	$(OUTPRE)ktadd.$(OBJEXT)		\
	$(OUTPRE)ktbase.$(OBJEXT)	\
	$(OUTPRE)ktdefault.$(OBJEXT)	\
	$(OUTPRE)ktfr_entry.$(OBJEXT)	\
	$(OUTPRE)ktremove.$(OBJEXT)	\
	$(OUTPRE)read_servi.$(OBJEXT)

SRCS=	\
	$(srcdir)/ktadd.c	\
	$(srcdir)/ktbase.c	\
	$(srcdir)/ktdefault.c	\
	$(srcdir)/ktfr_entry.c	\
	$(srcdir)/ktremove.c	\
	$(srcdir)/read_servi.c

all-windows:: subdirs $(OBJFILE)

##DOSsubdirs:: file\$(OUTPRE)file.lst srvtab\$(OUTPRE)srvtab.lst
##DOSfile\$(OUTPRE)file.lst::
##DOS	cd file
##DOS	@echo Making in krb5\keytab\file
##DOS	$(MAKE) -$(MFLAGS)
##DOS	cd ..
##DOSsrvtab\$(OUTPRE)srvtab.lst::
##DOS	cd srvtab
##DOS	@echo Making in krb5\keytab\srvtab
##DOS	$(MAKE) -$(MFLAGS)
##DOS	cd ..

##DOS$(OBJFILE): $(OBJS) file\$(OUTPRE)file.lst srvtab\$(OUTPRE)srvtab.lst
##DOS	$(RM) $(OBJFILE)
##WIN32##	$(LIBECHO) -p $(PREFIXDIR)\ $(OUTPRE)*.obj file\$(OUTPRE)*.obj srvtab\$(OUTPRE)*.obj > $(OBJFILE)

all-unix:: all-libobjs
clean-unix:: clean-libobjs

clean-windows::
	cd file
	@echo Making clean in krb5\keytab\file
	$(MAKE) -$(MFLAGS) clean
	cd ..\srvtab
	@echo Making clean in krb5\keytab\srvtab
	$(MAKE) -$(MFLAGS) clean
	cd ..
	@echo Making clean in krb5\keytab
	$(RM) $(OBJFILE)

