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