Engine PKCS#11 initial commit
[keystone-linux/engine-pkcs11.git] / src / Makefile.mak
1 # - set the OPENSSL_INCL_DIR below to your openssl include directory, preceded by "/I"
2 # - set the OPENSSL_LIB below to your openssl lib file
3 # Note: these instructions obsolete the instructions in opensc.html
5 OPENSSL_INC = /IC:\openssl\include
6 OPENSSL_LIB = C:\openssl\lib\libeay32.lib
7 LIBP11_INC = /IC:\libp11\include
8 LIBP11_LIB = C:\libp11\lib\libp11.lib
10 COPTS = /Zi /MD /nologo /I..\ /DHAVE_CONFIG_H $(OPENSSL_INC) $(LIBP11_INC) /D_WIN32_WINNT=0x0400 /DWIN32_LEAN_AND_MEAN /DHAVE_OPENSSL
11 LINKFLAGS = /DEBUG /NOLOGO /INCREMENTAL:NO /MACHINE:IX86
14 TARGET                  = engine_pkcs11.dll
16 OBJECTS                 = engine_pkcs11.obj hw_pkcs11.obj
18 all: $(TARGET)
20 .c.obj::
21         cl $(COPTS) /c $<
23 $(TARGET): $(OBJECTS) .
24         echo LIBRARY $* > $*.def
25         echo EXPORTS >> $*.def
26         type $*.exports >> $*.def
27         link $(LINKFLAGS) /dll /def:$*.def /implib:$*.lib /out:$(TARGET) $(OBJECTS) $(OPENSSL_LIB) $(LIBP11_LIB) gdi32.lib
28         if EXIST $*.dll.manifest mt -manifest $*.dll.manifest -outputresource:$*.dll;2