1 # $Id: nmake.opt,v 1.20 2017-10-10 14:39:43 erouault Exp $
3 # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
5 # Permission to use, copy, modify, distribute, and sell this software and
6 # its documentation for any purpose is hereby granted without fee, provided
7 # that (i) the above copyright notices and this permission notice appear in
8 # all copies of the software and related documentation, and (ii) the names of
9 # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 # publicity relating to the software without the specific, prior written
11 # permission of Sam Leffler and Silicon Graphics.
13 # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
24 # Compile time parameters for MS Visual C++ compiler.
25 # You may edit this file to specify building options.
28 # DEBUG - set to disable optimizations and link with debug runtimes
30 # Usage examples (see details below):
31 # nmake -f makefile.vc
32 # nmake -f makefile.vc DEBUG=1
35 ###### Edit the following lines to choose a feature set you need. #######
39 # Select WINMODE_CONSOLE to build a library which reports errors to stderr, or
40 # WINMODE_WINDOWED to build such that errors are reported via MessageBox().
46 # Comment out the following lines to disable internal codecs.
48 # Support for CCITT Group 3 & 4 algorithms
50 # Support for Macintosh PackBits algorithm
52 # Support for LZW algorithm
54 # Support for ThunderScan 4-bit RLE algorithm
56 # Support for NeXT 2-bit RLE algorithm
58 # Support for LogLuv high dynamic range encoding
62 # Uncomment and edit following lines to enable JPEG support.
65 #JPEGDIR = d:/projects/jpeg-6b
66 #JPEG_INCLUDE = -I$(JPEGDIR)
67 #JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
70 # Uncomment and edit following lines to enable ZIP support
71 # (required for Deflate compression and Pixar log-format)
74 #ZLIBDIR = d:/projects/zlib-1.2.1
75 #ZLIB_INCLUDE = -I$(ZLIBDIR)
76 #ZLIB_LIB = $(ZLIBDIR)/zlib.lib
79 # Uncomment and edit following lines to enable ISO JBIG support
82 #JBIGDIR = d:/projects/jbigkit
83 #JBIG_INCLUDE = -I$(JBIGDIR)/libjbig
84 #JBIG_LIB = $(JBIGDIR)/libjbig/jbig.lib
87 # Uncomment following line to enable Pixar log-format algorithm
93 # Comment out the following lines to disable strip chopping
94 # (whether or not to convert single-strip uncompressed images to mutiple
95 # strips of specified size to reduce memory usage). Default strip size
96 # is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter
99 STRIP_SIZE_DEFAULT = 8192
102 # Comment out the following lines to disable treating the fourth sample with
103 # no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA
104 # files but don't mark the alpha properly.
106 EXTRASAMPLE_AS_ALPHA_SUPPORT = 1
109 # Comment out the following lines to disable picking up YCbCr subsampling
110 # info from the JPEG data stream to support files lacking the tag.
111 # See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
113 CHECK_JPEG_YCBCR_SUBSAMPLING = 1
116 ####################### Compiler related options. #######################
120 # Pick debug or optimized build flags. We default to an optimized build
121 # with no debugging information.
122 # NOTE: /EHsc option required if you want to build the C++ stream API
125 OPTFLAGS = /MDd /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
127 OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
132 # Uncomment following line to enable using Windows Common RunTime Library
133 # instead of Windows specific system calls. See notes on top of tif_unix.c
134 # module for details.
138 # Compiler specific options. You may probably want to adjust compilation
139 # parameters in CFLAGS variable. Refer to your compiler documentation
140 # for the option reference.
148 CFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
149 CXXFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
153 # Name of the output shared library
154 DLLNAME = libtiff.dll
157 ########### There is nothing to edit below this line normally. ###########
160 # Set the native cpu bit order
161 EXTRAFLAGS = -DFILLODER_LSB2MSB $(EXTRAFLAGS)
163 !IFDEF WINMODE_WINDOWED
164 EXTRAFLAGS = -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)
165 LIBS = user32.lib $(LIBS)
167 EXTRAFLAGS = -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)
172 EXTRAFLAGS = -DCCITT_SUPPORT $(EXTRAFLAGS)
175 !IFDEF PACKBITS_SUPPORT
176 EXTRAFLAGS = -DPACKBITS_SUPPORT $(EXTRAFLAGS)
180 EXTRAFLAGS = -DLZW_SUPPORT $(EXTRAFLAGS)
183 !IFDEF THUNDER_SUPPORT
184 EXTRAFLAGS = -DTHUNDER_SUPPORT $(EXTRAFLAGS)
188 EXTRAFLAGS = -DNEXT_SUPPORT $(EXTRAFLAGS)
191 !IFDEF LOGLUV_SUPPORT
192 EXTRAFLAGS = -DLOGLUV_SUPPORT $(EXTRAFLAGS)
196 LIBS = $(LIBS) $(JPEG_LIB)
197 EXTRAFLAGS = -DJPEG_SUPPORT -DOJPEG_SUPPORT $(EXTRAFLAGS)
201 LIBS = $(LIBS) $(ZLIB_LIB)
202 EXTRAFLAGS = -DZIP_SUPPORT $(EXTRAFLAGS)
203 !IFDEF PIXARLOG_SUPPORT
204 EXTRAFLAGS = -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
209 LIBS = $(LIBS) $(JBIG_LIB)
210 EXTRAFLAGS = -DJBIG_SUPPORT $(EXTRAFLAGS)
213 !IFDEF STRIPCHOP_SUPPORT
214 EXTRAFLAGS = -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
217 !IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
218 EXTRAFLAGS = -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)
221 !IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING
222 EXTRAFLAGS = -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)
225 !IFDEF USE_WIN_CRT_LIB
226 EXTRAFLAGS = -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)
228 EXTRAFLAGS = -DUSE_WIN32_FILEIO $(EXTRAFLAGS)