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