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