CompilingInstalling: Make.rules.mak

File Make.rules.mak, 1.6 kB (added by wiredland@…, 3 years ago)

Sample of opensc-0.10.0\win32\Make.rules.mak

Line 
1# Note: these instructions obsolete the instructions in opensc.html
2
3# You first need to download the gnuwin32 libtool (e.g. the "Binaries" and "Developer
4# files" from http://gnuwin32.sourceforge.net/packages/libtool.htm)
5# Then fill in the directory path to ltdl.h on the LIBLTDL_INCL line below, preceeded
6# by an "/I"; and fill in the path to the libltdl.lib on the LIBLTDL_LIB line below.
7# Then you can build this OpenSC package; and afterwards you'll need to copy the
8# libltdl3.dll somewhere on your execution path.
9LIBLTDL_INCL = /IC:\libtool-1.5.8-lib\include
10LIBLTDL_LIB =  C:\libtool-1.5.8-lib\lib\libltdl.lib
11
12# If you want support for OpenSSL (needed for a.o. pkcs15-init tool and openssl engine):
13# - download and build OpenSSL
14# - uncomment the line starting with OPENSSL_DEF
15# - set the OPENSSL_INCL_DIR below to your openssl include directory, preceded by "/I"
16# - set the OPENSSL_LIB below to your openssl lib file
17#OPENSSL_DEF = /DHAVE_OPENSSL
18!IF "$(OPENSSL_DEF)" == "/DHAVE_OPENSSL"
19OPENSSL_INCL_DIR = /IC:\openssl\include
20OPENSSL_LIB = C:\openssl\out32dll\libeay32.lib
21PKCS15_INIT = pkcs15-init.exe
22!ENDIF
23
24COPTS = /Zi /MD /nologo /DHAVE_CONFIG_H /I$(TOPDIR)\src\include /I$(TOPDIR)\src\include\opensc $(OPENSSL_INCL_DIR) $(LIBLTDL_INCL) /D_WIN32_WINNT=0x0400 $(OPENSSL_DEF)
25LINKFLAGS = /DEBUG /NOLOGO /INCREMENTAL:NO /MACHINE:IX86
26
27
28install-headers:
29        @for %i in ( $(HEADERS) ) do \
30                @xcopy /d /q /y %i $(HEADERSDIR) > nul
31
32install-headers-dir:
33        @for %i in ( $(HEADERSDIRFROM2) ) do \
34                @xcopy /d /q /y %i\*.h $(HEADERSDIR2)\*.h > nul
35
36.c.obj::
37        cl $(COPTS) /c $<
38
39clean::
40        del /Q *.obj *.dll *.exe
41