Changeset 147


Ignore:
Timestamp:
04/10/08 16:28:55 (4 years ago)
Author:
alonbl
Message:

Fixup MSVC resource build.
By Douglas E. Engert

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.mak

    r144 r147  
    1212         @for %i in ( $(SUBDIRS) ) do \ 
    1313                @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@" 
    14  
    15 SUBDIRS = src 
    16  
    17 all:: 
    18  
    19 all:: config.h 
    20  
    21 config.h: winconfig.h 
    22        @copy /y winconfig.h config.h 
    23  
    24 all depend install clean:: 
    25         @for %i in ( $(SUBDIRS) ) do \ 
    26                @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@" 
    27  
    28 SUBDIRS = src 
    29  
    30 all:: 
    31  
    32 all:: config.h 
    33  
    34 config.h: winconfig.h 
    35        @copy /y winconfig.h config.h 
    36  
    37 all depend install clean:: 
    38         @for %i in ( $(SUBDIRS) ) do \ 
    39                @cmd /c "cd %i && $(MAKE) /nologo /f Makefile.mak $@" 
  • trunk/src/Makefile.mak

    r144 r147  
    1313        p11_key.obj p11_load.obj p11_misc.obj p11_rsa.obj p11_slot.obj p11_ops.obj 
    1414 
    15 all: $(TARGET) 
     15all: $(TARGET) versioninfo.res 
     16 
     17RSC_PROJ=/l 0x809 /r /fo"versioninfo.res" 
     18 
     19versioninfo.res: versioninfo.rc 
     20        rc $(RSC_PROJ) versioninfo.rc 
     21  
    1622 
    1723.c.obj:: 
    1824        cl $(COPTS) /c $< 
    1925 
    20 $(TARGET): $(OBJECTS)  
     26$(TARGET): $(OBJECTS) versioninfo.res 
    2127        echo LIBRARY $* > $*.def 
    2228        echo EXPORTS >> $*.def 
    2329        type $*.exports >> $*.def 
    2430        link $(LINKFLAGS) /dll /def:$*.def /implib:$*.lib /out:$(TARGET) \ 
    25                 $(OBJECTS) $(OPENSSL_LIB) $(LIBLTDL_LIB) 
     31                $(OBJECTS) $(OPENSSL_LIB) $(LIBLTDL_LIB) versioninfo.res 
    2632        if EXIST $*.dll.manifest mt -manifest $*.dll.manifest -outputresource:$*.dll;2 
    2733 
Note: See TracChangeset for help on using the changeset viewer.