src/3rdparty/libtiff/nmake.opt
changeset 30 5dc02b23752f
parent 0 1918ee327afb
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
     1 # $Id: nmake.opt,v 1.16 2006/03/23 14:54:01 dron Exp $
     1 # $Id: nmake.opt,v 1.18 2006/06/07 16:33:45 dron Exp $
     2 #
     2 #
     3 # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
     3 # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
     4 #
     4 #
     5 # Permission to use, copy, modify, distribute, and sell this software and 
     5 # Permission to use, copy, modify, distribute, and sell this software and 
     6 # its documentation for any purpose is hereby granted without fee, provided
     6 # its documentation for any purpose is hereby granted without fee, provided
    58 #JPEGDIR 	= d:/projects/jpeg-6b
    58 #JPEGDIR 	= d:/projects/jpeg-6b
    59 #JPEG_INCLUDE	= -I$(JPEGDIR)
    59 #JPEG_INCLUDE	= -I$(JPEGDIR)
    60 #JPEG_LIB 	= $(JPEGDIR)/Release/jpeg.lib
    60 #JPEG_LIB 	= $(JPEGDIR)/Release/jpeg.lib
    61 
    61 
    62 #
    62 #
    63 # Uncomment following lines to enable Old JPEG support
       
    64 # (modified IJG JPEG library required, read the contrib\ojpeg\README first).
       
    65 #
       
    66 #OJPEG_SUPPORT = 1
       
    67 
       
    68 #
       
    69 # Uncomment and edit following lines to enable ZIP support
    63 # Uncomment and edit following lines to enable ZIP support
    70 # (required for Deflate compression and Pixar log-format)
    64 # (required for Deflate compression and Pixar log-format)
    71 #
    65 #
    72 #ZIP_SUPPORT	= 1
    66 #ZIP_SUPPORT	= 1
    73 #ZLIBDIR 	= d:/projects/zlib-1.2.1
    67 #ZLIBDIR 	= d:/projects/zlib-1.2.1
    74 #ZLIB_INCLUDE	= -I$(ZLIBDIR)
    68 #ZLIB_INCLUDE	= -I$(ZLIBDIR)
    75 #ZLIB_LIB 	= $(ZLIBDIR)/zlib.lib
    69 #ZLIB_LIB 	= $(ZLIBDIR)/zlib.lib
    76 
    70 
    77 #
    71 #
       
    72 # Uncomment and edit following lines to enable ISO JBIG support
       
    73 #
       
    74 #JBIG_SUPPORT	= 1
       
    75 #JBIGDIR 	= d:/projects/jbigkit
       
    76 #JBIG_INCLUDE	= -I$(JBIGDIR)/libjbig
       
    77 #JBIG_LIB 	= $(JBIGDIR)/libjbig/jbig.lib
       
    78 
       
    79 #
    78 # Uncomment following line to enable Pixar log-format algorithm
    80 # Uncomment following line to enable Pixar log-format algorithm
    79 # (Zlib required).
    81 # (Zlib required).
    80 #
    82 #
    81 #PIXARLOG_SUPPORT = 1
    83 #PIXARLOG_SUPPORT = 1
    82 
    84 
   108 #
   110 #
   109 
   111 
   110 #
   112 #
   111 # Pick debug or optimized build flags.  We default to an optimized build
   113 # Pick debug or optimized build flags.  We default to an optimized build
   112 # with no debugging information.
   114 # with no debugging information.
   113 # NOTE: /GX option required if you want to build the C++ stream API
   115 # NOTE: /EHsc option required if you want to build the C++ stream API
   114 #
   116 #
   115 OPTFLAGS =	/Ox /MD /GX /W3
   117 OPTFLAGS =	/Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
   116 #OPTFLAGS = 	/Zi 
   118 #OPTFLAGS = 	/Zi 
   117 
   119 
   118 #
   120 #
   119 # Uncomment following line to enable using Windows Common RunTime Library
   121 # Uncomment following line to enable using Windows Common RunTime Library
   120 # instead of Windows specific system calls. See notes on top of tif_unix.c
   122 # instead of Windows specific system calls. See notes on top of tif_unix.c
   179 EXTRAFLAGS	= -DLOGLUV_SUPPORT $(EXTRAFLAGS)
   181 EXTRAFLAGS	= -DLOGLUV_SUPPORT $(EXTRAFLAGS)
   180 !ENDIF
   182 !ENDIF
   181 
   183 
   182 !IFDEF JPEG_SUPPORT
   184 !IFDEF JPEG_SUPPORT
   183 LIBS		= $(LIBS) $(JPEG_LIB)
   185 LIBS		= $(LIBS) $(JPEG_LIB)
   184 EXTRAFLAGS	= -DJPEG_SUPPORT $(EXTRAFLAGS)
   186 EXTRAFLAGS	= -DJPEG_SUPPORT -DOJPEG_SUPPORT $(EXTRAFLAGS)
   185 !IFDEF OJPEG_SUPPORT
       
   186 EXTRAFLAGS	= -DOJPEG_SUPPORT $(EXTRAFLAGS)
       
   187 !ENDIF
       
   188 !ENDIF
   187 !ENDIF
   189 
   188 
   190 !IFDEF ZIP_SUPPORT
   189 !IFDEF ZIP_SUPPORT
   191 LIBS		= $(LIBS) $(ZLIB_LIB)
   190 LIBS		= $(LIBS) $(ZLIB_LIB)
   192 EXTRAFLAGS	= -DZIP_SUPPORT $(EXTRAFLAGS)
   191 EXTRAFLAGS	= -DZIP_SUPPORT $(EXTRAFLAGS)
   193 !IFDEF PIXARLOG_SUPPORT
   192 !IFDEF PIXARLOG_SUPPORT
   194 EXTRAFLAGS	= -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
   193 EXTRAFLAGS	= -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
   195 !ENDIF
   194 !ENDIF
   196 !ENDIF
   195 !ENDIF
   197 
   196 
       
   197 !IFDEF JBIG_SUPPORT
       
   198 LIBS		= $(LIBS) $(JBIG_LIB)
       
   199 EXTRAFLAGS	= -DJBIG_SUPPORT $(EXTRAFLAGS)
       
   200 !ENDIF
       
   201 
   198 !IFDEF STRIPCHOP_SUPPORT
   202 !IFDEF STRIPCHOP_SUPPORT
   199 EXTRAFLAGS	= -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
   203 EXTRAFLAGS	= -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
   200 !ENDIF
   204 !ENDIF
   201 
   205 
   202 !IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
   206 !IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT