1mydir=plugins$(S)preauth$(S)spake 2BUILDTOP=$(REL)..$(S)..$(S).. 3MODULE_INSTALL_DIR = $(KRB5_PA_MODULE_DIR) 4 5# Like RUN_TEST, but use t_krb5.conf from this directory. 6RUN_TEST_LOCAL_CONF=$(RUN_SETUP) KRB5_CONFIG=$(srcdir)/t_krb5.conf LC_ALL=C \ 7 $(VALGRIND) 8 9LIBBASE=spake 10LIBMAJOR=0 11LIBMINOR=0 12RELDIR=../plugins/preauth/spake 13SHLIB_EXPDEPS=$(KRB5_BASE_DEPLIBS) 14SHLIB_EXPLIBS=$(KRB5_BASE_LIBS) $(SPAKE_OPENSSL_LIBS) 15 16WINLIBS = $(SLIB) $(KLIB) $(CLIB) 17 18STLIBOBJS=util.o iana.o groups.o openssl.o edwards25519.o \ 19 spake_client.o spake_kdc.o 20 21SRCS= \ 22 $(srcdir)/util.c \ 23 $(srcdir)/iana.c \ 24 $(srcdir)/groups.c \ 25 $(srcdir)/openssl.c \ 26 $(srcdir)/edwards25519.c \ 27 $(srcdir)/spake_client.c \ 28 $(srcdir)/spake_kdc.c 29 30# Don't include spake_kdc.c in the Windows object list since we don't 31# need it. 32OBJS= $(OUTPRE)util.$(OBJEXT) \ 33 $(OUTPRE)iana.$(OBJEXT) \ 34 $(OUTPRE)groups.$(OBJEXT) \ 35 $(OUTPRE)openssl.$(OBJEXT) \ 36 $(OUTPRE)edwards25519.$(OBJEXT) \ 37 $(OUTPRE)spake_client.$(OBJEXT) 38 39t_vectors: t_vectors.o $(STLIBOBJS) $(SHLIB_EXPDEPS) 40 $(CC_LINK) -o $@ t_vectors.o $(STLIBOBJS) $(SHLIB_EXPLIBS) 41 42all-unix: all-liblinks 43install-unix: install-libs 44clean-unix:: clean-liblinks clean-libs clean-libobjs 45 46clean: 47 $(RM) t_vectors t_vectors.o $(STLIBOBJS) 48 49check-unix: t_vectors 50 $(RUN_TEST_LOCAL_CONF) ./t_vectors 51 52all-windows: $(OUTPRE)$(SPAKELIB).dll 53clean-windows:: 54 $(RM) $(OUTPRE)$(SPAKELIB).dll 55 56$(OUTPRE)$(SPAKELIB).dll: spake.def $(OBJS) 57 link /dll $(LOPTS) -def:spake.def -out:$*.dll $(OBJS) $(WINLIBS) 58 59@libnover_frag@ 60@libobj_frag@ 61