From: divverent Date: Thu, 8 Aug 2013 09:42:21 +0000 (+0000) Subject: Make d0_rijndael library optional again. X-Git-Tag: xonotic-v0.8.0~141 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ba47f7157b0434dab70368b0c09c00af185c9fd4;p=xonotic%2Fdarkplaces.git Make d0_rijndael library optional again. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11996 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=e9b60787543c255b4d6b09c92602cbe63bea95d1 --- diff --git a/makefile b/makefile index ff3e165c..3e543f62 100644 --- a/makefile +++ b/makefile @@ -111,6 +111,7 @@ ifeq ($(DP_MAKE_TARGET), linux) DP_LINK_JPEG?=shared DP_LINK_ODE?=dlopen DP_LINK_CRYPTO?=dlopen + DP_LINK_CRYPTO_RIJNDAEL?=dlopen endif # Mac OS X configuration @@ -145,6 +146,7 @@ ifeq ($(DP_MAKE_TARGET), macosx) DP_LINK_JPEG?=shared DP_LINK_ODE?=dlopen DP_LINK_CRYPTO?=dlopen + DP_LINK_CRYPTO_RIJNDAEL?=dlopen # on OS X, we don't build the CL by default because it uses deprecated # and not-implemented-in-64bit Carbon @@ -185,6 +187,7 @@ ifeq ($(DP_MAKE_TARGET), sunos) DP_LINK_JPEG?=shared DP_LINK_ODE?=dlopen DP_LINK_CRYPTO?=dlopen + DP_LINK_CRYPTO_RIJNDAEL?=dlopen endif # BSD configuration @@ -219,6 +222,7 @@ endif DP_LINK_JPEG?=shared DP_LINK_ODE?=dlopen DP_LINK_CRYPTO?=dlopen + DP_LINK_CRYPTO_RIJNDAEL?=dlopen endif # Win32 configuration @@ -277,6 +281,7 @@ ifeq ($(DP_MAKE_TARGET), mingw) DP_LINK_JPEG?=shared DP_LINK_ODE?=dlopen DP_LINK_CRYPTO?=dlopen + DP_LINK_CRYPTO_RIJNDAEL?=dlopen endif # set these to "" if you want to use dynamic loading instead @@ -315,12 +320,16 @@ endif ifeq ($(DP_LINK_CRYPTO), shared) LIB_CRYPTO=-ld0_blind_id CFLAGS_CRYPTO=-DLINK_TO_CRYPTO - LIB_CRYPTO_RIJNDAEL=-ld0_rijndael - CFLAGS_CRYPTO_RIJNDAEL=-DLINK_TO_CRYPTO_RIJNDAEL endif ifeq ($(DP_LINK_CRYPTO), dlopen) LIB_CRYPTO= CFLAGS_CRYPTO= +endif +ifeq ($(DP_LINK_CRYPTO_RIJNDAEL), shared) + LIB_CRYPTO_RIJNDAEL=-ld0_rijndael + CFLAGS_CRYPTO_RIJNDAEL=-DLINK_TO_CRYPTO_RIJNDAEL +endif +ifeq ($(DP_LINK_CRYPTO_RIJNDAEL), shared) LIB_CRYPTO_RIJNDAEL= CFLAGS_CRYPTO_RIJNDAEL= endif