Changeset 876

Show
Ignore:
Timestamp:
09/21/08 17:16:56 (4 months ago)
Author:
mloskot
Message:

Patched NMAKE makefiles: replaced lib.exe with link.exe /lib command to enabled compilation using Microsoft Visual C++ Toolkit 2003.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/nmake.opt

    r874 r876  
    3232PYDLL_DIR = $(LAS_HOME)\python 
    3333 
     34# Compilation flags for Release and Debug modes 
    3435!IF "$(BUILD_DEBUG)" == "YES" 
    3536OPTFLAGS= /nologo /MDd /EHsc /Zi /W4 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /DDEBUG /D_DEBUG /Fd$(LAS_ROOT)\las.pdb 
     
    4950CFLAGS = $(CFLAGS) /DHAVE_LIBGEOTIFF=1 
    5051!ENDIF 
     52# End of compilation flags settings 
     53 
     54# Compiler executable 
     55CC = cl.exe 
     56 
     57# Linker executable 
     58# - Dynamic-Linked Libraries 
     59# $(LINK) /dll 
     60# - Static Libraries (use of lib.exe wrapper is not portable, see VC++ Toolkit 2003) 
     61# $(LINK) /lib 
     62LINK = link.exe 
    5163 
    5264.c.obj:  
  • trunk/src/makefile.vc

    r841 r876  
    55!INCLUDE $(LAS_ROOT)\nmake.opt 
    66 
    7 LAS_OBJS        =       laswriter.obj \ 
    8                 lasreader.obj \ 
    9                 laserror.obj \ 
    10                 las_c_api.obj \ 
    11                 laspoint.obj \ 
    12                 lasheader.obj \ 
    13                 lasfile.obj \ 
    14                 lasrecordheader.obj \ 
    15                 detail\reader.obj \ 
    16                 detail\reader10.obj \ 
    17                 detail\reader11.obj \ 
    18                 detail\writer.obj \ 
    19                 detail\writer10.obj \ 
    20                 detail\writer11.obj \ 
    21                 detail\file.obj 
     7LAS_OBJS = \ 
     8    laswriter.obj \ 
     9    lasreader.obj \ 
     10    laserror.obj \ 
     11    las_c_api.obj \ 
     12    laspoint.obj \ 
     13    lasheader.obj \ 
     14    lasfile.obj \ 
     15    lasrecordheader.obj \ 
     16    detail\reader.obj \ 
     17    detail\reader10.obj \ 
     18    detail\reader11.obj \ 
     19    detail\writer.obj \ 
     20    detail\writer10.obj \ 
     21    detail\writer11.obj \ 
     22    detail\file.obj 
    2223 
    2324RES = Version.res 
     
    2930$(LAS_LIB):     $(LAS_OBJS) 
    3031    if exist $(LAS_LIB) del $(LAS_LIB) 
    31         lib /nologo /out:$(LAS_LIB) $(LAS_OBJS) $(GEOTIFF_LIB) 
     32    $(LINK) /lib /nologo /out:$(LAS_LIB) $(LAS_OBJS) $(GEOTIFF_LIB) 
    3233         
    3334$(LAS_DLL):     $(LAS_LIB) $(RES) 
    34         link /dll \ 
    35            $(LAS_OBJS) $(LAS_LIB) Version.res \ 
    36            /out:$(LAS_DLL) /implib:$(LAS_LIB_DLL) 
    37         if exist $(LAS_DLL).manifest mt -manifest $(LAS_DLL).manifest -outputresource:$(LAS_DLL);2    
     35    $(LINK) /dll \ 
     36            $(LAS_OBJS) $(LAS_LIB) Version.res \ 
     37            /out:$(LAS_DLL) /implib:$(LAS_LIB_DLL) 
     38    if exist $(LAS_DLL).manifest mt -manifest $(LAS_DLL).manifest -outputresource:$(LAS_DLL);2    
    3839 
    3940Version.res: