Show
Ignore:
Timestamp:
04/07/08 21:42:43 (8 months ago)
Author:
alonbl
Message:

Attached are the latest mode to OpenSC svn 3462 to use the Makefile.mak
files to build on Windows.

I got rutoken to compile, and took out the #ifdef's I had in last week.
The rutoken programmer declared some variables in the middle of a block
rather then having all the declare statements at the beginning of a block
as is normally done in C. The Microsoft compile treats this as an error.
(Actual many errors.)

The makedef.pl is no longer needed, as the exports files can be used.
Note that in the original Makefile.mak files only opensc.def and
pkcs15init.def were created.

winconfig.h has a number of changes. As discussed last week this could
be created by autoconf. I also noted that the Active State Perl that
was required for the makedef.pl has a psed command that could be used
like sed to update winconfig.h. I did not attempt to do this.

win32/Make.rules.mak - Use ENABLE_OPENSSL and ENABLE_ZLIB

src/tools/Makefile.mak - add the rutoken.tool.exe

src/tools/eidenv.c - use PACKAGE_VERSION

src/pkcs11/Makefile.mak - reorder the objest to match the list in the

Makefile.am. Makes it easier to read.

src/include/winconfig.h - The windows version of the config.h

Changes based on discussions on the list last week.

src/common/Makefile.mak - renamed modules.

src/pkcs15init/Makefile.mak - reordered, and added back the rutoken modules

replaced the use of makdef.pl to sue the exports file.

src/scconf/Makefile.mak - reordered objects.

src/libopensc/card-rutoken.c -

error. Moved the declares to the beginning of blocks.

src/libopensc/Makefile.mak - reorder names, and add rutoken.

Use the libopensc.exports file.

src/libopensc/pkcs15-prkey-rutoken.c - more moving of declare statements.

By Douglas E. Engert

http://www.opensc-project.org/pipermail/opensc-devel/2008-April/011011.html

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/Makefile.mak

    r3265 r3464  
    55 
    66HEADERS                 = \ 
    7         opensc.h pkcs15.h emv.h \ 
    8         cardctl.h cards.h asn1.h \ 
    9         log.h ui.h errors.h types.h 
     7        asn1.h cardctl.h cards.h emv.h errors.h \ 
     8        log.h opensc.h pkcs15.h rutoken.h types.h ui.h 
    109 
    1110HEADERSDIR              = $(TOPDIR)\src\include\opensc 
     
    1312OBJECTS                 = \ 
    1413        sc.obj ctx.obj ui.obj log.obj errors.obj \ 
    15         asn1.obj base64.obj sec.obj card.obj iso7816.obj dir.obj padding.obj \ 
    16         apdu.obj \ 
     14        asn1.obj base64.obj sec.obj card.obj iso7816.obj dir.obj padding.obj apdu.obj \ 
    1715        \ 
    1816        pkcs15.obj pkcs15-cert.obj pkcs15-data.obj pkcs15-pin.obj \ 
    1917        pkcs15-prkey.obj pkcs15-pubkey.obj pkcs15-sec.obj \ 
    2018        pkcs15-wrap.obj pkcs15-algo.obj pkcs15-cache.obj pkcs15-syn.obj \ 
     19        pkcs15-gemsafeV1.obj \ 
    2120        \ 
    22         emv.obj \ 
     21        emv.obj muscle.obj muscle-filesystem.obj \ 
    2322        \ 
    24         ctbcs.obj reader-ctapi.obj reader-pcsc.obj \ 
     23        ctbcs.obj reader-ctapi.obj reader-pcsc.obj reader-openct.obj \ 
    2524        \ 
    2625        card-setcos.obj card-miocos.obj card-flex.obj card-gpk.obj \ 
    2726        card-cardos.obj card-tcos.obj card-emv.obj card-default.obj \ 
    2827        card-mcrd.obj card-starcos.obj card-openpgp.obj card-jcop.obj \ 
    29         card-oberthur.obj card-belpic.obj card-atrust-acos.obj card-akis.obj \ 
    30         card-incrypto34.obj card-piv.obj card-acos5.obj card-asepcos.obj \ 
    31         muscle.obj card-muscle.obj muscle-filesystem.obj \ 
    32         compression.obj p15card-helper.obj \ 
     28        card-oberthur.obj card-belpic.obj card-atrust-acos.obj \ 
     29        card-incrypto34.obj card-piv.obj card-muscle.obj card-acos5.obj \ 
     30        card-asepcos.obj card-akis.obj card-gemsafeV1.obj card-rutoken.obj \ 
    3331        \ 
    3432        pkcs15-openpgp.obj pkcs15-infocamere.obj pkcs15-starcert.obj \ 
    35         pkcs15-tcos.obj pkcs15-esteid.obj pkcs15-postecert.obj \ 
    36         pkcs15-gemsafe.obj pkcs15-actalis.obj pkcs15-atrust-acos.obj \ 
    37         pkcs15-tccardos.obj pkcs15-piv.obj\ 
    38         \ 
     33        pkcs15-tcos.obj pkcs15-esteid.obj pkcs15-postecert.obj pkcs15-gemsafeGPK.obj \ 
     34        pkcs15-actalis.obj pkcs15-atrust-acos.obj pkcs15-tccardos.obj pkcs15-piv.obj \ 
     35        pkcs15-rutoken.obj pkcs15-prkey-rutoken.obj \ 
     36        compression.obj p15card-helper.obj \ 
    3937        $(TOPDIR)\win32\version.res 
    4038 
     
    4442 
    4543opensc.dll: $(OBJECTS) ..\scconf\scconf.lib ..\common\common.lib 
    46         perl $(TOPDIR)\win32\makedef.pl $*.def $* $(OBJECTS) 
     44        echo LIBRARY $* > $*.def 
     45        echo EXPORTS >> $*.def 
     46        type lib$*.exports >> $*.def 
    4747        link $(LINKFLAGS) /dll /def:$*.def /implib:$*.lib /out:opensc.dll $(OBJECTS) ..\scconf\scconf.lib ..\common\common.lib winscard.lib $(OPENSSL_LIB) $(ZLIB_LIB) gdi32.lib $(LIBLTDL_LIB) advapi32.lib ws2_32.lib 
    4848        if EXIST opensc.dll.manifest mt -manifest opensc.dll.manifest -outputresource:opensc.dll;2