Correct the t_nfold build rules again. We don't have a simple way of
authorGreg Hudson <ghudson@mit.edu>
Mon, 10 Aug 2009 19:35:34 +0000 (19:35 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 10 Aug 2009 19:35:34 +0000 (19:35 +0000)
plucking object files from other directories (we don't know for sure
what extension to use), so build an nfold.o in this directory from the
nfold.c in the ../krb source directory.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22517 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/crypto_tests/Makefile.in

index 6753515fa580768195a9c51b2e6b30e2828e7733..4e33e83b8de92cc70d0e2a26fd53b8e2214461d7 100644 (file)
@@ -79,9 +79,12 @@ check-unix:: t_nfold t_encrypt t_prf t_prng t_hmac t_cf2 \
 
 #      $(RUN_SETUP) $(VALGRIND) ./t_pkcs5
 
-t_nfold$(EXEEXT): t_nfold.$(OBJEXT) ../krb/nfold$(DYNOBJEXT) $(SUPPORT_DEPLIB)
+t_nfold$(EXEEXT): t_nfold.$(OBJEXT) nfold.$(OBJEXT) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_nfold.$(OBJEXT) ../krb/nfold$(DYNOBJEXT) $(SUPPORT_LIB)
 
+nfold.$(OBJEXT): $(srcdir)/../krb/nfold.c
+       $(CC) -c $(ALL_CFLAGS) $(srcdir)/../krb/nfold.c
+
 t_encrypt$(EXEEXT): t_encrypt.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_encrypt.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)