- win32 patch from Stef Hoeben

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@770 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-12-10 17:53:58 +00:00
parent 23158d7a96
commit f984a3fd97
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,18 @@
TOPDIR = ..\..
TARGET = pkcs15init.lib
HEADERS = pkcs15-init.h
HEADERSDIR = $(TOPDIR)\src\include\opensc
OBJECTS = profile.obj pkcs15-lib.obj \
pkcs15-miocos.obj pkcs15-gpk.obj pkcs15-cflex.obj
pkcs15-etoken.obj
all: install-headers $(TARGET)
$(TARGET): $(OBJECTS)
lib /nologo /machine:ix86 /out:$(TARGET) $(OBJECTS)
!INCLUDE $(TOPDIR)\win32\Make.rules.mak

16
src/scrandom/Makefile.mak Normal file
View File

@ -0,0 +1,16 @@
TOPDIR = ..\..
HEADERS = scrandom.h
HEADERSDIR = $(TOPDIR)\src\include\opensc
TARGET = scrandom.lib
OBJECTS = scrandom.obj
all: install-headers $(TARGET)
$(TARGET): $(OBJECTS)
lib /nologo /machine:ix86 /out:$(TARGET) $(OBJECTS)
!INCLUDE $(TOPDIR)\win32\Make.rules.mak

18
src/tests/Makefile.mak Normal file
View File

@ -0,0 +1,18 @@
TOPDIR = ..\..
TARGETS = base64.exe p15dump.exe \
p15dump.exe pintest.exe # prngtest.exe lottery.exe
all: print.obj sc-test.obj $(TARGETS)
!INCLUDE $(TOPDIR)\win32\Make.rules.mak
.c.obj:
cl $(COPTS) /c $<
.c.exe:
cl $(COPTS) /c $<
link $(LINKFLAGS) /pdb:$*.pdb /out:$@ $*.obj sc-test.obj print.obj
..\common\common.lib ..\libopensc\opensc.lib

16
win32/readme.txt Normal file
View File

@ -0,0 +1,16 @@
How to compile src\tools\pkcs15-init.c:
- download and compile the openssl sources from
http://www.openssl.org/source/
- Add the inc32\ dir to your include path,
the out32dll\ to your lib path and your executable path
set include=%include%;.....\inc32
set lib=%lib%;.....\out32dll
set path=%path%;....\out32dll
- In src/tools/Makefile.mak
- uncomment pkcs15-init.exe in the "TARGETS" line
- Add libeay32.lib to the "link" line