1 # $Id: nmake.opt,v 1.18 2006/06/07 16:33:45 dron Exp $
\r
3 # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
\r
5 # Permission to use, copy, modify, distribute, and sell this software and
\r
6 # its documentation for any purpose is hereby granted without fee, provided
\r
7 # that (i) the above copyright notices and this permission notice appear in
\r
8 # all copies of the software and related documentation, and (ii) the names of
\r
9 # Sam Leffler and Silicon Graphics may not be used in any advertising or
\r
10 # publicity relating to the software without the specific, prior written
\r
11 # permission of Sam Leffler and Silicon Graphics.
\r
13 # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
\r
14 # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
\r
15 # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
\r
17 # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
\r
18 # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
\r
19 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
\r
20 # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
\r
21 # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
\r
24 # Compile time parameters for MS Visual C++ compiler.
\r
25 # You may edit this file to specify building options.
\r
28 ###### Edit the following lines to choose a feature set you need. #######
\r
32 # Select WINMODE_CONSOLE to build a library which reports errors to stderr, or
\r
33 # WINMODE_WINDOWED to build such that errors are reported via MessageBox().
\r
36 #WINMODE_WINDOWED = 1
\r
39 # Comment out the following lines to disable internal codecs.
\r
41 # Support for CCITT Group 3 & 4 algorithms
\r
43 # Support for Macintosh PackBits algorithm
\r
44 PACKBITS_SUPPORT = 1
\r
45 # Support for LZW algorithm
\r
47 # Support for ThunderScan 4-bit RLE algorithm
\r
49 # Support for NeXT 2-bit RLE algorithm
\r
51 # Support for LogLuv high dynamic range encoding
\r
55 # Uncomment and edit following lines to enable JPEG support.
\r
58 #JPEGDIR = d:/projects/jpeg-6b
\r
59 #JPEG_INCLUDE = -I$(JPEGDIR)
\r
60 #JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
\r
63 # Uncomment and edit following lines to enable ZIP support
\r
64 # (required for Deflate compression and Pixar log-format)
\r
67 #ZLIBDIR = d:/projects/zlib-1.2.1
\r
68 #ZLIB_INCLUDE = -I$(ZLIBDIR)
\r
69 #ZLIB_LIB = $(ZLIBDIR)/zlib.lib
\r
72 # Uncomment and edit following lines to enable ISO JBIG support
\r
75 #JBIGDIR = d:/projects/jbigkit
\r
76 #JBIG_INCLUDE = -I$(JBIGDIR)/libjbig
\r
77 #JBIG_LIB = $(JBIGDIR)/libjbig/jbig.lib
\r
80 # Uncomment following line to enable Pixar log-format algorithm
\r
83 #PIXARLOG_SUPPORT = 1
\r
86 # Comment out the following lines to disable strip chopping
\r
87 # (whether or not to convert single-strip uncompressed images to mutiple
\r
88 # strips of specified size to reduce memory usage). Default strip size
\r
89 # is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter
\r
91 STRIPCHOP_SUPPORT = 1
\r
92 STRIP_SIZE_DEFAULT = 8192
\r
95 # Comment out the following lines to disable treating the fourth sample with
\r
96 # no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA
\r
97 # files but don't mark the alpha properly.
\r
99 EXTRASAMPLE_AS_ALPHA_SUPPORT = 1
\r
102 # Comment out the following lines to disable picking up YCbCr subsampling
\r
103 # info from the JPEG data stream to support files lacking the tag.
\r
104 # See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
\r
106 CHECK_JPEG_YCBCR_SUBSAMPLING = 1
\r
109 ####################### Compiler related options. #######################
\r
113 # Pick debug or optimized build flags. We default to an optimized build
\r
114 # with no debugging information.
\r
115 # NOTE: /EHsc option required if you want to build the C++ stream API
\r
117 OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
\r
121 # Uncomment following line to enable using Windows Common RunTime Library
\r
122 # instead of Windows specific system calls. See notes on top of tif_unix.c
\r
123 # module for details.
\r
125 USE_WIN_CRT_LIB = 1
\r
127 # Compiler specific options. You may probably want to adjust compilation
\r
128 # parameters in CFLAGS variable. Refer to your compiler documentation
\r
129 # for the option reference.
\r
131 MAKE = nmake /nologo
\r
137 CFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
\r
138 CXXFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
\r
142 # Name of the output shared library
\r
143 DLLNAME = libtiff.dll
\r
146 ########### There is nothing to edit below this line normally. ###########
\r
149 # Set the native cpu bit order
\r
150 EXTRAFLAGS = -DFILLODER_LSB2MSB $(EXTRAFLAGS)
\r
152 !IFDEF WINMODE_WINDOWED
\r
153 EXTRAFLAGS = -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)
\r
154 LIBS = user32.lib $(LIBS)
\r
156 EXTRAFLAGS = -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)
\r
160 !IFDEF CCITT_SUPPORT
\r
161 EXTRAFLAGS = -DCCITT_SUPPORT $(EXTRAFLAGS)
\r
164 !IFDEF PACKBITS_SUPPORT
\r
165 EXTRAFLAGS = -DPACKBITS_SUPPORT $(EXTRAFLAGS)
\r
169 EXTRAFLAGS = -DLZW_SUPPORT $(EXTRAFLAGS)
\r
172 !IFDEF THUNDER_SUPPORT
\r
173 EXTRAFLAGS = -DTHUNDER_SUPPORT $(EXTRAFLAGS)
\r
176 !IFDEF NEXT_SUPPORT
\r
177 EXTRAFLAGS = -DNEXT_SUPPORT $(EXTRAFLAGS)
\r
180 !IFDEF LOGLUV_SUPPORT
\r
181 EXTRAFLAGS = -DLOGLUV_SUPPORT $(EXTRAFLAGS)
\r
184 !IFDEF JPEG_SUPPORT
\r
185 LIBS = $(LIBS) $(JPEG_LIB)
\r
186 EXTRAFLAGS = -DJPEG_SUPPORT -DOJPEG_SUPPORT $(EXTRAFLAGS)
\r
190 LIBS = $(LIBS) $(ZLIB_LIB)
\r
191 EXTRAFLAGS = -DZIP_SUPPORT $(EXTRAFLAGS)
\r
192 !IFDEF PIXARLOG_SUPPORT
\r
193 EXTRAFLAGS = -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
\r
197 !IFDEF JBIG_SUPPORT
\r
198 LIBS = $(LIBS) $(JBIG_LIB)
\r
199 EXTRAFLAGS = -DJBIG_SUPPORT $(EXTRAFLAGS)
\r
202 !IFDEF STRIPCHOP_SUPPORT
\r
203 EXTRAFLAGS = -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
\r
206 !IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
\r
207 EXTRAFLAGS = -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)
\r
210 !IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING
\r
211 EXTRAFLAGS = -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)
\r
214 !IFDEF USE_WIN_CRT_LIB
\r
215 EXTRAFLAGS = -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)
\r
217 EXTRAFLAGS = -DUSE_WIN32_FILEIO $(EXTRAFLAGS)
\r