thisconfigdir=.
myfulldir=lib/des425
mydir=.
BUILDTOP=$(REL)$(U)$(S)$(U)
LOCALINCLUDES = -I$(srcdir)/../crypto/des -I$(srcdir)/../../include/kerberosIV

##DOS##BUILDTOP = ..\..
##DOS##LIBNAME=$(OUTPRE)des425.lib
##DOS##OBJFILE=$(OUTPRE)des425.lst
##DOS##OBJFILEDEP=$(OUTPRE)des425.lst
##DOS##OBJFILELIST=@$(OUTPRE)des425.lst

PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)

RUN_SETUP=@KRB5_RUN_ENV@

LIB=des425
LIBMAJOR=3
LIBMINOR=0
RELDIR=des425
# Depends on libk5crypto and libkrb5
SHLIB_EXPDEPS = \
	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \
	$(TOPLIBD)/libkrb5$(SHLIBEXT)
SHLIB_EXPLIBS=-lkrb5 -lcom_err -lk5crypto
SHLIB_DIRS=-L$(TOPLIBD)
SHLIB_RDIRS=$(KRB5_LIBDIR)

STOBJLISTS=OBJS.ST
STLIBOBJS=cksum.o	\
	des.o		\
	enc_dec.o	\
	key_parity.o	\
	key_sched.o	\
	new_rnd_key.o	\
	pcbc_encrypt.o	\
	quad_cksum.o	\
	random_key.o	\
	read_passwd.o  \
	str_to_key.o	\
	unix_time.o     \
	util.o		\
	weak_key.o	\
	k4_glue.o


OBJS=	$(OUTPRE)cksum.$(OBJEXT)	\
	$(OUTPRE)des.$(OBJEXT)		\
	$(OUTPRE)enc_dec.$(OBJEXT)	\
	$(OUTPRE)key_parity.$(OBJEXT)	\
	$(OUTPRE)key_sched.$(OBJEXT)	\
	$(OUTPRE)new_rnd_key.$(OBJEXT)	\
	$(OUTPRE)pcbc_encrypt.$(OBJEXT)	\
	$(OUTPRE)quad_cksum.$(OBJEXT)	\
	$(OUTPRE)random_key.$(OBJEXT)	\
	$(OUTPRE)read_passwd.$(OBJEXT)	\
	$(OUTPRE)str_to_key.$(OBJEXT)	\
	$(OUTPRE)unix_time.$(OBJEXT)	\
	$(OUTPRE)util.$(OBJEXT)		\
	$(OUTPRE)weak_key.$(OBJEXT)	\
	$(OUTPRE)k4_glue.$(OBJEXT)

SRCS=	$(srcdir)/cksum.c	\
	$(srcdir)/des.c		\
	$(srcdir)/enc_dec.c	\
	$(srcdir)/key_parity.c	\
	$(srcdir)/key_sched.c	\
	$(srcdir)/new_rnd_key.c	\
	$(srcdir)/pcbc_encrypt.c	\
	$(srcdir)/quad_cksum.c	\
	$(srcdir)/random_key.c	\
	$(srcdir)/read_passwd.c \
	$(srcdir)/str_to_key.c	\
	$(srcdir)/unix_time.c   \
	$(srcdir)/util.c	\
	$(srcdir)/weak_key.c	\
	$(srcdir)/k4_glue.c

all-unix:: all-liblinks
all-mac:: $(OBJS)

##DOS##LIBOBJS = $(OBJS)

shared:
	mkdir shared

verify: verify.o $(DES425_DEPLIB) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o $@ verify.o $(DES425_LIB) $(KRB5_BASE_LIBS)

check-unix:: verify
	$(RUN_SETUP) ./verify -z
	$(RUN_SETUP) ./verify -m
	$(RUN_SETUP) ./verify

check-windows::

clean:: 
	$(RM) $(OUTPRE)verify$(EXEEXT) $(OUTPRE)verify.$(OBJEXT)

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

install-unix:: install-libs
