thisconfigdir=.
myfulldir=lib/krb5
mydir=.
BUILDTOP=$(REL)$(U)$(S)$(U)
LOCAL_SUBDIRS= error_tables asn.1 ccache ccache/stdio ccache/file \
	ccache/memory keytab keytab/file keytab/srvtab krb os rcache posix

##DOSBUILDTOP = ..\..
##DOSLIBNAME=$(OUTPRE)krb5.lib
##DOSOBJFILEDEP=$(OUTPRE)asn1.lst $(OUTPRE)ccache.lst $(OUTPRE)err_tbls.lst $(OUTPRE)keytab.lst $(OUTPRE)krb.lst $(OUTPRE)os.lst $(OUTPRE)posix.lst $(OUTPRE)rcache.lst
##DOSOBJFILELIST=@$(OUTPRE)asn1.lst @$(OUTPRE)ccache.lst @$(OUTPRE)err_tbls.lst @$(OUTPRE)keytab.lst @$(OUTPRE)krb.lst @$(OUTPRE)os.lst @$(OUTPRE)posix.lst @$(OUTPRE)rcache.lst

TST=if test -n "`cat DONE`" ; then

MAC_SUBDIRS = error_tables asn.1 ccache keytab krb rcache os posix 

LIB_SUBDIRS= error_tables asn.1 ccache ccache/stdio ccache/file ccache/memory \
	keytab keytab/file keytab/srvtab krb rcache os posix \
        $(BUILDTOP)/util/profile
LIBUPDATE= $(BUILDTOP)/util/libupdate
LIBDONE= error_tables/DONE asn.1/DONE ccache/DONE ccache/stdio/DONE \
		ccache/file/DONE ccache/memory/DONE keytab/DONE \
		keytab/file/DONE keytab/srvtab/DONE krb/DONE rcache/DONE \
		os/DONE posix/DONE $(BUILDTOP)/util/profile/DONE

#
#SHLIB_LIBS=-lcrypto -lcom_err @SHLIB_GEN@
#SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@	
#	$(LD_UNRESOLVED_PREFIX)_et_list $(LD_UNRESOLVED_PREFIX)error_message
#SHLIB_LIBDIRS= @SHLIB_LIBDIRS@

STLIBOBJS=krb5_libinit.o

LIB=krb5
LIBMAJOR=3
LIBMINOR=0

STOBJLISTS= \
	OBJS.ST \
	error_tables/OBJS.ST \
	asn.1/OBJS.ST \
	ccache/OBJS.ST ccache/stdio/OBJS.ST ccache/file/OBJS.ST \
	ccache/memory/OBJS.ST \
	keytab/OBJS.ST keytab/file/OBJS.ST keytab/srvtab/OBJS.ST \
	krb/OBJS.ST \
	rcache/OBJS.ST \
	os/OBJS.ST \
	posix/OBJS.ST \
	$(BUILDTOP)/util/profile/OBJS.ST

OBJS=\
	$(OUTPRE)krb5_libinit.$(OBJEXT)

SRCS=\
	$(subdir)/krb5_libinit.c

RELDIR=krb5
SHLIB_EXPDEPS = \
	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \
	$(TOPLIBD)/libcom_err$(SHLIBEXT)
SHLIB_EXPLIBS=-lk5crypto -lcom_err @GEN_LIB@ @RESOLV_LIB@
SHLIB_DIRS=-L$(TOPLIBD)
SHLIB_RDIRS=$(KRB5_LIBDIR)

all-unix:: all-liblinks

all-windows::

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

clean-windows::
	$(RM) $(OUTPRE)krb5.lib krb5.bak

all-windows::
	cd asn.1
	@echo Making in krb5\asn.1
	$(MAKE) -$(MFLAGS)
	cd ..\ccache
	@echo Making in krb5\ccache
	$(MAKE) -$(MFLAGS)
	cd ..\error_tables
	@echo Making in krb5\error_tables
	$(MAKE) -$(MFLAGS)
	cd ..\keytab
	@echo Making in krb5\keytab
	$(MAKE) -$(MFLAGS)
	cd ..\krb
	@echo Making in krb5\krb
	$(MAKE) -$(MFLAGS)
	cd ..\os
	@echo Making in krb5\os
	$(MAKE) -$(MFLAGS)
	cd ..\posix
	@echo Making in krb5\posix
	$(MAKE) -$(MFLAGS)
	cd ..\rcache
	@echo Making in krb5\rcache
	$(MAKE) -$(MFLAGS)
	cd ..

clean-windows::
	cd asn.1
	@echo Making clean in krb5\asn.1
	$(MAKE) -$(MFLAGS) clean
	cd ..\ccache
	@echo Making clean in krb5\ccache
	$(MAKE) -$(MFLAGS) clean
	cd ..\error_tables
	@echo Making clean in krb5\error_tables
	$(MAKE) -$(MFLAGS) clean
	cd ..\keytab
	@echo Making clean in krb5\keytab
	$(MAKE) -$(MFLAGS) clean
	cd ..\krb
	@echo Making clean in krb5\krb
	$(MAKE) -$(MFLAGS) clean
	cd ..\os
	@echo Making clean in krb5\os
	$(MAKE) -$(MFLAGS) clean
	cd ..\posix
	@echo Making clean in krb5\posix
	$(MAKE) -$(MFLAGS) clean
	cd ..\rcache
	@echo Making clean in krb5\rcache
	$(MAKE) -$(MFLAGS) clean
	cd ..
	@echo Making clean locally

install-unix:: install-libs
