2005-09-15 05:55:53 +00:00
|
|
|
# Note: these instructions obsolete the instructions in opensc.html
|
|
|
|
|
|
|
|
# You first need to download the gnuwin32 libtool (e.g. the "Binaries" and "Developer
|
|
|
|
# files" from http://gnuwin32.sourceforge.net/packages/libtool.htm)
|
|
|
|
# Then fill in the directory path to ltdl.h on the LIBLTDL_INCL line below, preceeded
|
|
|
|
# by an "/I"; and fill in the path to the libltdl.lib on the LIBLTDL_LIB line below.
|
|
|
|
# Then you can build this OpenSC package; and afterwards you'll need to copy the
|
|
|
|
# libltdl3.dll somewhere on your execution path.
|
|
|
|
LIBLTDL_INCL = # E.g. /IC:\libtool-1.5.8-lib\include
|
|
|
|
LIBLTDL_LIB = # E.g. C:\libtool-1.5.8-lib\lib\libltdl.lib
|
|
|
|
|
2008-04-07 21:28:37 +00:00
|
|
|
OPENSC_FEATURES = pcsc
|
|
|
|
|
2010-12-09 09:16:03 +00:00
|
|
|
#Uncomment to use 'static' linking mode
|
|
|
|
#LINK_MODE = STATIC
|
|
|
|
|
2010-12-06 15:47:03 +00:00
|
|
|
#Include support of minidriver 'cardmon'
|
|
|
|
MINIDRIVER_DEF = /DENABLE_MINIDRIVER
|
|
|
|
|
2010-12-09 09:16:03 +00:00
|
|
|
|
|
|
|
#Build MSI with the Windows Installer XML (WIX), minimal WIX version 3.6
|
|
|
|
#Static link mode should be used.
|
|
|
|
#WIX_MSI_DEF = /DBUILD_MSI
|
|
|
|
!IF "$(WIX_MSI_DEF)" == "/DBUILD_MSI"
|
|
|
|
WIX_INSTALLED_PATH = c:\download\wix36-binaries
|
|
|
|
LINK_MODE = STATIC
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
2005-01-16 21:12:38 +00:00
|
|
|
# If you want support for OpenSSL (needed for a.o. pkcs15-init tool and openssl engine):
|
|
|
|
# - 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
|
2008-04-07 19:42:43 +00:00
|
|
|
#OPENSSL_DEF = /DENABLE_OPENSSL
|
|
|
|
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL"
|
2005-01-16 21:12:38 +00:00
|
|
|
OPENSSL_INCL_DIR = /IC:\openssl\include
|
2010-12-09 09:16:03 +00:00
|
|
|
|
|
|
|
!IF "$(LINK_MODE)" != "STATIC"
|
2005-01-16 21:12:38 +00:00
|
|
|
OPENSSL_LIB = C:\openssl\out32dll\libeay32.lib
|
2010-12-09 09:16:03 +00:00
|
|
|
#OPENSSL_LIB = C:\openssl\lib\VC\libeay32MD.lib C:\openssl\lib\VC\ssleay32MD.lib user32.lib advapi32.lib
|
|
|
|
!ENDIF
|
|
|
|
!IF "$(LINK_MODE)" == "STATIC"
|
|
|
|
#OPENSSL_LIB = C:\openssl\lib\VC\static\libeay32MT.lib C:\openssl\lib\VC\static\ssleay32MT.lib user32.lib advapi32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
2010-12-06 15:20:19 +00:00
|
|
|
PROGRAMS_OPENSSL = pkcs15-init.exe cryptoflex-tool.exe netkey-tool.exe piv-tool.exe westcos-tool.exe
|
2008-04-07 21:28:37 +00:00
|
|
|
OPENSC_FEATURES = $(OPENSC_FEATURES) openssl
|
2005-01-16 21:12:38 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2010-12-09 09:16:03 +00:00
|
|
|
|
2009-01-29 11:47:45 +00:00
|
|
|
# If you want support for zlib (Used for PIV, infocamere and actalis):
|
2007-03-10 10:46:32 +00:00
|
|
|
# - Download zlib and build
|
|
|
|
# - uncomment the line starting with ZLIB_DEF
|
|
|
|
# - set the ZLIB_INCL_DIR below to the zlib include lib proceeded by "/I"
|
|
|
|
# - set the ZLIB_LIB below to your zlib lib file
|
2008-04-07 19:42:43 +00:00
|
|
|
#ZLIB_DEF = /DENABLE_ZLIB
|
|
|
|
!IF "$(ZLIB_DEF)" == "/DENABLE_ZLIB"
|
2007-03-10 10:46:32 +00:00
|
|
|
ZLIB_INCL_DIR = /IC:\ZLIB\INCLUDE
|
|
|
|
ZLIB_LIB = C:\ZLIB\LIB\zlib.lib
|
2008-04-07 21:28:37 +00:00
|
|
|
OPENSC_FEATURES = $(OPENSC_FEATURES) zlib
|
2007-03-10 10:46:32 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2010-05-01 12:15:36 +00:00
|
|
|
# Mandatory path to 'ISO C9x compliant stdint.h and inttypes.h for Microsoft Visual Studio'
|
|
|
|
# http://msinttypes.googlecode.com/files/msinttypes-r26.zip
|
|
|
|
INTTYPES_INCL_DIR = /IC:\opensc\dependencies\msys\local
|
2002-06-14 12:52:56 +00:00
|
|
|
|
2010-12-09 09:16:03 +00:00
|
|
|
!IF "$(LINK_MODE)" != "STATIC"
|
2010-12-06 18:35:43 +00:00
|
|
|
COPTS = /D_CRT_SECURE_NO_DEPRECATE /Zi /MD /nologo /DHAVE_CONFIG_H /I$(TOPDIR)\win32 /I$(TOPDIR)\src $(OPENSSL_INCL_DIR) $(ZLIB_INCL_DIR) $(LIBLTDL_INCL) $(INTTYPES_INCL_DIR) /D_WIN32_WINNT=0x0400 /DWIN32_LEAN_AND_MEAN $(OPENSSL_DEF) $(ZLIB_DEF) /DOPENSC_FEATURES="\"$(OPENSC_FEATURES)\""
|
2010-05-01 12:15:36 +00:00
|
|
|
LINKFLAGS = /DEBUG /NOLOGO /INCREMENTAL:NO /MACHINE:IX86
|
2010-12-09 09:16:03 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IF "$(LINK_MODE)" == "STATIC"
|
|
|
|
COPTS = /D_CRT_SECURE_NO_DEPRECATE /MT /nologo /DHAVE_CONFIG_H /I$(TOPDIR)\win32 /I$(TOPDIR)\src /I$(TOPDIR)\src\include\opensc /I$(TOPDIR)\src\common $(OPENSSL_INCL_DIR) $(ZLIB_INCL_DIR) $(LIBLTDL_INCL) $(INTTYPES_INCL_DIR) /D_WIN32_WINNT=0x0400 /DWIN32_LEAN_AND_MEAN $(OPENSSL_DEF) $(ZLIB_DEF) /DOPENSC_FEATURES="\"$(OPENSC_FEATURES)\""
|
|
|
|
LINKFLAGS = /NOLOGO /INCREMENTAL:NO /MACHINE:IX86 /MANIFEST:NO /NODEFAULTLIB:MSVCRTD /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:LIBCMTD
|
|
|
|
!ENDIF
|
2002-12-17 16:00:40 +00:00
|
|
|
|
2002-06-14 12:52:56 +00:00
|
|
|
.c.obj::
|
|
|
|
cl $(COPTS) /c $<
|
2005-09-21 10:10:15 +00:00
|
|
|
|
2008-04-08 18:36:42 +00:00
|
|
|
.rc.res::
|
2008-04-29 06:09:00 +00:00
|
|
|
rc /l 0x0409 /r $<
|
2008-04-08 18:36:42 +00:00
|
|
|
|
2005-09-21 10:10:15 +00:00
|
|
|
clean::
|
2010-12-06 15:49:49 +00:00
|
|
|
del /Q *.obj *.dll *.exe *.pdb *.lib *.def *.manifest
|