thisconfigdir=./..
myfulldir=lib/krb5/ccache
mydir=ccache
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
LOCAL_SUBDIRS = stdio file memory

LOCALINCLUDES = -I$(srcdir)$(S)file -I$(srcdir)$(S)stdio \
		-I$(srcdir)$(S)ccapi $(WIN_INCLUDES)

##DOS##WIN_INCLUDES = -I$(SRCTOP)\windows\lib

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

MAC_SUBDIRS = file stdio memory ccapi

STLIBOBJS= \
	ccbase.o \
	cccopy.o \
	ccdefault.o \
	ccdefops.o \
	cc_retr.o \
	ser_cc.o

OBJS=	$(OUTPRE)ccbase.$(OBJEXT) \
	$(OUTPRE)cccopy.$(OBJEXT) \
	$(OUTPRE)ccdefault.$(OBJEXT) \
	$(OUTPRE)ccdefops.$(OBJEXT) \
	$(OUTPRE)cc_retr.$(OBJEXT) \
	$(OUTPRE)ser_cc.$(OBJEXT)

SRCS=	$(srcdir)/ccbase.c \
	$(srcdir)/cccopy.c \
	$(srcdir)/ccdefault.c \
	$(srcdir)/ccdefops.c \
	$(srcdir)/cc_retr.c \
	$(srcdir)/ser_cc.c

all-unix:: all-libobjs

all-windows:: subdirs $(OBJFILE) 

##DOS##subdirs:: file\$(OUTPRE)file.lst memory\$(OUTPRE)file.lst ccapi\$(OUTPRE)file.lst
##DOS##
##DOS##file\$(OUTPRE)file.lst::
##DOS##	cd file
##DOS##	@echo Making in krb5\ccache\file
##DOS##	$(MAKE) -$(MFLAGS)
##DOS##	cd ..

##DOS##memory\$(OUTPRE)file.lst::
##DOS##	cd memory
##DOS##	@echo Making in krb5\ccache\memory
##DOS##	$(MAKE) -$(MFLAGS)
##DOS##	cd ..

##DOS##ccapi\$(OUTPRE)file.lst::
##DOS##	cd ccapi
##DOS##	@echo Making in krb5\ccache\ccapi
##DOS##	$(MAKE) -$(MFLAGS)
##DOS##	cd ..

##DOS##$(OBJFILE): $(OBJS) file\$(OUTPRE)file.lst memory\$(OUTPRE)file.lst ccapi\$(OUTPRE)file.lst
##DOS##	$(RM) $(OBJFILE)
##WIN16##	$(CP) nul: $(OBJFILE)
##WIN32##	$(LIBECHO) -p $(PREFIXDIR)\ $(OUTPRE)*.obj file\$(OUTPRE)*.obj memory\$(OUTPRE)*.obj \
##WIN32##		ccapi\$(OUTPRE)*.obj > $(OBJFILE)


clean-unix:: clean-libobjs

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