thisconfigdir=./..
myfulldir=lib/crypto/keyhash_provider
mydir=keyhash_provider
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
LOCALINCLUDES = -I$(srcdir)/../des -I$(srcdir)/../md4 \
	-I$(srcdir)/../md5

##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=keyhash_provider
##DOS##OBJFILE=..\$(OUTPRE)kh_pro.lst
##WIN16##LIBNAME=..\crypto.lib

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

RUN_SETUP = @KRB5_RUN_ENV@ KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf

STLIBOBJS= descbc.o k5_md4des.o k5_md5des.o

OBJS= $(OUTPRE)descbc.$(OBJEXT) $(OUTPRE)k5_md4des.$(OBJEXT) $(OUTPRE)k5_md5des.$(OBJEXT)

SRCS= $(srcdir)/descbc.c $(srcdir)/k5_md4des.c $(srcdir)/k5_md5des.c

##DOS##LIBOBJS = $(OBJS)

all-unix:: all-libobjs

includes:: depend

depend:: $(SRCS)

t_cksum4.o: $(srcdir)/t_cksum.c
	$(CC) -DMD=4 $(ALL_CFLAGS) -o t_cksum4.o -c $(srcdir)/t_cksum.c

t_cksum5.o: $(srcdir)/t_cksum.c
	$(CC) -DMD=5 $(ALL_CFLAGS) -o t_cksum5.o -c $(srcdir)/t_cksum.c

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

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

check-unix:: t_cksum4 t_cksum5
	$(RUN_SETUP) $(C)t_cksum4 "this is a test"
	$(RUN_SETUP) $(C)t_cksum5 "this is a test"

clean-unix::
	$(RM) t_cksum4 t_cksum4.o
	$(RM) t_cksum5 t_cksum5.o

clean-unix:: clean-libobjs
