diff --git a/src/pkcs15init/Makefile.mak b/src/pkcs15init/Makefile.mak new file mode 100644 index 00000000..3a4a11ec --- /dev/null +++ b/src/pkcs15init/Makefile.mak @@ -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 + diff --git a/src/scrandom/Makefile.mak b/src/scrandom/Makefile.mak new file mode 100644 index 00000000..b3919361 --- /dev/null +++ b/src/scrandom/Makefile.mak @@ -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 + + diff --git a/src/tests/Makefile.mak b/src/tests/Makefile.mak new file mode 100644 index 00000000..e97c8686 --- /dev/null +++ b/src/tests/Makefile.mak @@ -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 + diff --git a/win32/readme.txt b/win32/readme.txt new file mode 100644 index 00000000..0de0dd34 --- /dev/null +++ b/win32/readme.txt @@ -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 + +