Created
November 6, 2017 17:48
-
-
Save lmiguelmh/14ece2e21ace2eb167346210774553bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you want support for OpenSSL (needed for pkcs15-init tool, software hashing in PKCS#11 library and verification): | |
# - download and build OpenSSL | |
# - uncomment the line starting with OPENSSL_DEF | |
# - set the OPENSSL_INCL_DIR below to your openssl include directory, preceded by "/I" | |
# - set the OPENSSL_LIB below to your openssl lib file | |
OPENSSL_DEF= /DENABLE_OPENSSL | |
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL" | |
!IF "$(PLATFORM)" == "x86" | |
OPENSSL_DIR = C:\OpenSSL-Win32 | |
!ELSE | |
OPENSSL_DIR = C:\OpenSSL-Win64 | |
!ENDIF | |
OPENSSL_INCL_DIR = /I$(OPENSSL_DIR)\include | |
#define OPENSSL_STATIC if you have visual studio compatible with OpenSSL's static binaries | |
OPENSSL_STATIC_DIR = static | |
!IF "$(DEBUG_DEF)" == "/DDEBUG" | |
!IF "$(PLATFORM)" == "x86" | |
# OpenSSL 1.0.2 | |
#OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libeay32MTd.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
# OpenSSL 1.1.0 | |
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libcrypto32MTd.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
!ELSE | |
# OpenSSL 1.0.2 | |
#OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libeay32MTd.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
# OpenSSL 1.1.0 | |
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libcrypto64MTd.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
!ENDIF | |
!ELSE | |
!IF "$(PLATFORM)" == "x86" | |
# OpenSSL 1.0.2 | |
#OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libeay32MT.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
# OpenSSL 1.1.0 | |
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libcrypto32MT.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
!ELSE | |
# OpenSSL 1.0.2 | |
#OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libeay32MT.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
# OpenSSL 1.1.0 | |
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libcrypto64MT.lib user32.lib advapi32.lib crypt32.lib ws2_32.lib | |
!ENDIF | |
!ENDIF | |
PROGRAMS_OPENSSL = cryptoflex-tool.exe pkcs15-init.exe netkey-tool.exe piv-tool.exe \ | |
westcos-tool.exe sc-hsm-tool.exe dnie-tool.exe gids-tool.exe npa-tool.exe | |
OPENSC_FEATURES = $(OPENSC_FEATURES) openssl | |
CANDLEFLAGS = -dOpenSSL="$(OPENSSL_DIR)" $(CANDLEFLAGS) | |
!ENDIF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment