Alon Bar-Lev wrote:
On 4/9/08, Alon Bar-Lev <[EMAIL PROTECTED]> wrote:
On 4/8/08, Douglas E. Engert <[EMAIL PROTECTED]> wrote:

 I can get libp11 to build the dll and add the .res file. But I needed
 >  to use #include <mfc/afxres.h>
 >  rather then #include <afxres.h> in the versioninfo.rc
 >  Would this effect the ming build?


Please add -I <whatever>/mfc in Makefile so it will find afxres if not available
 in regular path. If I remember correctly rc support this.
 And send again.

Just found that this include file is not needed at my side!
I removed it.
Can you please see if it compiles OK at your side?

It is not needed. But I still need the attached changes to build the
versioninfo.res and clean up the top Makefiel.mak





Thanks,
Alon.



--

 Douglas E. Engert  <[EMAIL PROTECTED]>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
Index: Makefile.mak
===================================================================
--- Makefile.mak        (revision 146)
+++ Makefile.mak        (working copy)
@@ -11,29 +11,3 @@
 all depend install clean::
         @for %i in ( $(SUBDIRS) ) do \
                @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"
-
-SUBDIRS = src
-
-all::
-
-all:: config.h
-
-config.h: winconfig.h
-       @copy /y winconfig.h config.h
-
-all depend install clean::
-        @for %i in ( $(SUBDIRS) ) do \
-               @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"
-
-SUBDIRS = src
-
-all::
-
-all:: config.h
-
-config.h: winconfig.h
-       @copy /y winconfig.h config.h
-
-all depend install clean::
-        @for %i in ( $(SUBDIRS) ) do \
-               @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@"
Index: src/Makefile.mak
===================================================================
--- src/Makefile.mak    (revision 146)
+++ src/Makefile.mak    (working copy)
@@ -12,16 +12,22 @@
 OBJECTS                 = libpkcs11.obj p11_attr.obj p11_cert.obj p11_err.obj \
        p11_key.obj p11_load.obj p11_misc.obj p11_rsa.obj p11_slot.obj 
p11_ops.obj
 
-all: $(TARGET)
+all: $(TARGET) versioninfo.res
 
+RSC_PROJ=/l 0x809 /r /fo"versioninfo.res"
+
+versioninfo.res: versioninfo.rc
+       rc $(RSC_PROJ) versioninfo.rc
+ 
+
 .c.obj::
        cl $(COPTS) /c $<
 
-$(TARGET): $(OBJECTS) 
+$(TARGET): $(OBJECTS) versioninfo.res
        echo LIBRARY $* > $*.def
        echo EXPORTS >> $*.def
        type $*.exports >> $*.def
        link $(LINKFLAGS) /dll /def:$*.def /implib:$*.lib /out:$(TARGET) \
-               $(OBJECTS) $(OPENSSL_LIB) $(LIBLTDL_LIB)
+               $(OBJECTS) $(OPENSSL_LIB) $(LIBLTDL_LIB) versioninfo.res
        if EXIST $*.dll.manifest mt -manifest $*.dll.manifest 
-outputresource:$*.dll;2
 
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to