Changeset 841 for trunk/src/makefile.vc

Show
Ignore:
Timestamp:
08/18/08 22:21:18 (5 months ago)
Author:
hobu
Message:

support embedding version information in the DLL when building on windows #70

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/makefile.vc

    r813 r841  
    2020                detail\writer11.obj \ 
    2121                detail\file.obj 
    22                  
    23 default: $(LAS_DLL) 
     22 
     23RES = Version.res 
     24 
     25default: $(LAS_DLL) $(RES) 
    2426 
    2527all: default 
     
    2931        lib /nologo /out:$(LAS_LIB) $(LAS_OBJS) $(GEOTIFF_LIB) 
    3032         
    31 $(LAS_DLL):     $(LAS_LIB) 
     33$(LAS_DLL):     $(LAS_LIB) $(RES) 
    3234        link /dll  \ 
    33            $(LAS_OBJS) $(LAS_LIB) \ 
     35           $(LAS_OBJS) $(LAS_LIB) Version.res \ 
    3436           /out:$(LAS_DLL) /implib:$(LAS_LIB_DLL) 
    3537        if exist $(LAS_DLL).manifest mt -manifest $(LAS_DLL).manifest -outputresource:$(LAS_DLL);2    
    3638 
     39Version.res: 
     40    rc -fo Version.res -r -I..\include\liblas\capi -I..\include -D_MSC_VER Version.rc 
     41     
    3742clean: 
    3843        -del *.bak 
     
    4247        -del *.obj  
    4348        -del *.manifest 
     49        -del *.res 
    4450        for %d in ( $(LAS_OBJS) ) do \ 
    4551                del %d