From: Greg Hudson Date: Fri, 22 Oct 2010 00:01:56 +0000 (+0000) Subject: Make it possible to override CRYPTO_IMPL_CFLAGS and CRYPTO_IMPL_LIBS at X-Git-Tag: krb5-1.10-alpha1~689 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6fe2be37c17c7cabb61af0f3e676dcecea8f5a8;p=krb5.git Make it possible to override CRYPTO_IMPL_CFLAGS and CRYPTO_IMPL_LIBS at make time. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24469 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/Makefile.in b/src/lib/crypto/Makefile.in index 3749a15a6..a1d0eb747 100644 --- a/src/lib/crypto/Makefile.in +++ b/src/lib/crypto/Makefile.in @@ -49,8 +49,10 @@ SUBDIROBJLISTS=krb/crc32/OBJS.ST krb/dk/OBJS.ST \ # No dependencies. Record places to find this shared object if the target # link editor and loader support it. DEPLIBS= +CRYPTO_LIBS=@CRYPTO_LIBS@ +CRYPTO_IMPL_LIBS=@CRYPTO_IMPL_LIBS@ SHLIB_DIRS=-L$(TOPLIBD) -SHLIB_EXPLIBS= $(SUPPORT_LIB) @CRYPTO_LIBS@ @CRYPTO_IMPL_LIBS@ $(LIBS) +SHLIB_EXPLIBS= $(SUPPORT_LIB) $(CRYPTO_LIBS) $(CRYPTO_IMPL_LIBS) $(LIBS) SHLIB_EXPDEPLIBS= $(SUPPORT_DEPLIB) SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@ SHLIB_LIBDIRS= @SHLIB_LIBDIRS@ diff --git a/src/lib/crypto/krb/prng/nss/Makefile.in b/src/lib/crypto/krb/prng/nss/Makefile.in index 66b089383..04fbd1957 100644 --- a/src/lib/crypto/krb/prng/nss/Makefile.in +++ b/src/lib/crypto/krb/prng/nss/Makefile.in @@ -1,7 +1,8 @@ mydir=lib/crypto/krb/prng/nss BUILDTOP=$(REL)..$(S)..$(S)..$(S)..$(S).. +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. \ - -I$(srcdir)/../../../@CRYPTO_IMPL@ @CRYPTO_IMPL_CFLAGS@ + -I$(srcdir)/../../../@CRYPTO_IMPL@ $(CRYPTO_IMPL_CFLAGS) DEFS= PROG_LIBPATH=-L$(TOPLIBD) diff --git a/src/lib/crypto/nss/Makefile.in b/src/lib/crypto/nss/Makefile.in index c50a74a84..7ce3cc8a9 100644 --- a/src/lib/crypto/nss/Makefile.in +++ b/src/lib/crypto/nss/Makefile.in @@ -1,6 +1,7 @@ mydir=lib/crypto/nss BUILDTOP=$(REL)..$(S)..$(S).. SUBDIRS=des aes camellia md4 md5 sha1 sha2 enc_provider hash_provider +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ LOCALINCLUDES = -I$(srcdir)/../krb \ -I$(srcdir)/../krb/hash_provider \ -I$(srcdir)/des \ @@ -11,7 +12,7 @@ LOCALINCLUDES = -I$(srcdir)/../krb \ -I$(srcdir)/md5 \ -I$(srcdir)/enc_provider \ -I$(srcdir)/hash_provider \ - @CRYPTO_IMPL_CFLAGS@ + $(CRYPTO_IMPL_CFLAGS) PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) diff --git a/src/lib/crypto/nss/des/Makefile.in b/src/lib/crypto/nss/des/Makefile.in index d97fcfbd8..dc0e5e8ee 100644 --- a/src/lib/crypto/nss/des/Makefile.in +++ b/src/lib/crypto/nss/des/Makefile.in @@ -1,6 +1,8 @@ mydir=lib/crypto/nss/des BUILDTOP=$(REL)..$(S)..$(S)..$(S).. -LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. -I$(srcdir)/../../krb @CRYPTO_IMPL_CFLAGS@ +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ +LOCALINCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. -I$(srcdir)/../../krb \ + $(CRYPTO_IMPL_CFLAGS) DEFS= diff --git a/src/lib/crypto/nss/enc_provider/Makefile.in b/src/lib/crypto/nss/enc_provider/Makefile.in index c7950d642..f1ed5fb06 100644 --- a/src/lib/crypto/nss/enc_provider/Makefile.in +++ b/src/lib/crypto/nss/enc_provider/Makefile.in @@ -1,12 +1,13 @@ mydir=lib/crypto/nss/enc_provider BUILDTOP=$(REL)..$(S)..$(S)..$(S).. +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ LOCALINCLUDES = -I$(srcdir)/../des \ -I$(srcdir)/../arcfour \ -I$(srcdir)/../aes \ -I$(srcdir)/../../krb \ -I$(srcdir)/../../krb/rand2key \ -I$(srcdir)/.. -I$(srcdir)/. \ - @CRYPTO_IMPL_CFLAGS@ + $(CRYPTO_IMPL_CFLAGS) DEFS= ##DOS##BUILDTOP = ..\..\..\.. diff --git a/src/lib/crypto/nss/hash_provider/Makefile.in b/src/lib/crypto/nss/hash_provider/Makefile.in index 2530559d9..36ba7b2df 100644 --- a/src/lib/crypto/nss/hash_provider/Makefile.in +++ b/src/lib/crypto/nss/hash_provider/Makefile.in @@ -1,8 +1,9 @@ mydir=lib/crypto/nss/hash_provider BUILDTOP=$(REL)..$(S)..$(S)..$(S).. +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ LOCALINCLUDES = -I$(srcdir)/../../krb/crc32 -I$(srcdir)/../md4 \ -I$(srcdir)/.. -I$(srcdir)/../../krb \ - @CRYPTO_IMPL_CFLAGS@ + $(CRYPTO_IMPL_CFLAGS) DEFS= diff --git a/src/lib/crypto/nss/md5/Makefile.in b/src/lib/crypto/nss/md5/Makefile.in index 94a9e5437..83699a3f1 100644 --- a/src/lib/crypto/nss/md5/Makefile.in +++ b/src/lib/crypto/nss/md5/Makefile.in @@ -8,7 +8,8 @@ DEFS= PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) -LOCALINCLUDES = -I$(srcdir)/.. @CRYPTO_IMPL_CFLAGS@ +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ +LOCALINCLUDES = -I$(srcdir)/.. $(CRYPTO_IMPL_CFLAGS) STLIBOBJS= md5.o diff --git a/src/lib/crypto/nss/sha1/Makefile.in b/src/lib/crypto/nss/sha1/Makefile.in index a7cb6e824..7afeb3813 100644 --- a/src/lib/crypto/nss/sha1/Makefile.in +++ b/src/lib/crypto/nss/sha1/Makefile.in @@ -1,7 +1,8 @@ mydir=lib/crypto/nss/sha1 BUILDTOP=$(REL)..$(S)..$(S)..$(S).. DEFS= -LOCALINCLUDES = -I$(srcdir)/.. @CRYPTO_IMPL_CFLAGS@ +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ +LOCALINCLUDES = -I$(srcdir)/.. $(CRYPTO_IMPL_CFLAGS) ##DOS##BUILDTOP = ..\..\..\.. ##DOS##PREFIXDIR=sha1 diff --git a/src/lib/crypto/nss/sha2/Makefile.in b/src/lib/crypto/nss/sha2/Makefile.in index b42462eb2..c0605e8de 100644 --- a/src/lib/crypto/nss/sha2/Makefile.in +++ b/src/lib/crypto/nss/sha2/Makefile.in @@ -1,7 +1,8 @@ mydir=lib/crypto/nss/sha2 BUILDTOP=$(REL)..$(S)..$(S)..$(S).. DEFS= -LOCALINCLUDES = -I$(srcdir)/.. @CRYPTO_IMPL_CFLAGS@ +CRYPTO_IMPL_CFLAGS=@CRYPTO_IMPL_CFLAGS@ +LOCALINCLUDES = -I$(srcdir)/.. $(CRYPTO_IMPL_CFLAGS) ##DOS##BUILDTOP = ..\..\..\.. ##DOS##PREFIXDIR=sha1