2006-03-23 09:54:00 -05:00
|
|
|
# $Id: nmake.opt,v 1.16 2006-03-23 14:54:01 dron Exp $
|
2004-04-16 04:12:54 -04:00
|
|
|
#
|
2006-03-23 09:54:00 -05:00
|
|
|
# Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
|
2004-04-16 04:12:54 -04:00
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, distribute, and sell this software and
|
|
|
|
# its documentation for any purpose is hereby granted without fee, provided
|
|
|
|
# that (i) the above copyright notices and this permission notice appear in
|
|
|
|
# all copies of the software and related documentation, and (ii) the names of
|
|
|
|
# Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
|
|
# publicity relating to the software without the specific, prior written
|
|
|
|
# permission of Sam Leffler and Silicon Graphics.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
|
|
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
#
|
|
|
|
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
|
|
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
|
|
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
|
|
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
|
|
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
|
|
# OF THIS SOFTWARE.
|
|
|
|
|
2004-04-15 05:48:25 -04:00
|
|
|
# Compile time parameters for MS Visual C++ compiler.
|
|
|
|
# You may edit this file to specify building options.
|
|
|
|
|
2005-03-04 06:48:22 -05:00
|
|
|
#
|
|
|
|
###### Edit the following lines to choose a feature set you need. #######
|
|
|
|
#
|
|
|
|
|
2004-04-15 05:48:25 -04:00
|
|
|
#
|
2004-12-04 06:08:43 -05:00
|
|
|
# Select WINMODE_CONSOLE to build a library which reports errors to stderr, or
|
|
|
|
# WINMODE_WINDOWED to build such that errors are reported via MessageBox().
|
2004-04-15 05:48:25 -04:00
|
|
|
#
|
2004-12-04 06:08:43 -05:00
|
|
|
WINMODE_CONSOLE = 1
|
|
|
|
#WINMODE_WINDOWED = 1
|
2004-04-15 05:48:25 -04:00
|
|
|
|
2004-04-16 04:12:54 -04:00
|
|
|
#
|
|
|
|
# Comment out the following lines to disable internal codecs.
|
|
|
|
#
|
|
|
|
# Support for CCITT Group 3 & 4 algorithms
|
|
|
|
CCITT_SUPPORT = 1
|
|
|
|
# Support for Macintosh PackBits algorithm
|
|
|
|
PACKBITS_SUPPORT = 1
|
|
|
|
# Support for LZW algorithm
|
|
|
|
LZW_SUPPORT = 1
|
|
|
|
# Support for ThunderScan 4-bit RLE algorithm
|
|
|
|
THUNDER_SUPPORT = 1
|
|
|
|
# Support for NeXT 2-bit RLE algorithm
|
|
|
|
NEXT_SUPPORT = 1
|
|
|
|
# Support for LogLuv high dynamic range encoding
|
|
|
|
LOGLUV_SUPPORT = 1
|
|
|
|
|
2004-04-15 05:48:25 -04:00
|
|
|
#
|
|
|
|
# Uncomment and edit following lines to enable JPEG support.
|
|
|
|
#
|
|
|
|
#JPEG_SUPPORT = 1
|
|
|
|
#JPEGDIR = d:/projects/jpeg-6b
|
2004-05-19 06:49:16 -04:00
|
|
|
#JPEG_INCLUDE = -I$(JPEGDIR)
|
2004-04-15 05:48:25 -04:00
|
|
|
#JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
|
|
|
|
|
|
|
|
#
|
|
|
|
# Uncomment following lines to enable Old JPEG support
|
2004-11-28 09:40:49 -05:00
|
|
|
# (modified IJG JPEG library required, read the contrib\ojpeg\README first).
|
2004-04-15 05:48:25 -04:00
|
|
|
#
|
|
|
|
#OJPEG_SUPPORT = 1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Uncomment and edit following lines to enable ZIP support
|
2004-04-16 04:12:54 -04:00
|
|
|
# (required for Deflate compression and Pixar log-format)
|
2004-04-15 05:48:25 -04:00
|
|
|
#
|
|
|
|
#ZIP_SUPPORT = 1
|
|
|
|
#ZLIBDIR = d:/projects/zlib-1.2.1
|
2004-05-19 06:49:16 -04:00
|
|
|
#ZLIB_INCLUDE = -I$(ZLIBDIR)
|
2004-04-15 05:48:25 -04:00
|
|
|
#ZLIB_LIB = $(ZLIBDIR)/zlib.lib
|
|
|
|
|
|
|
|
#
|
2004-04-16 04:12:54 -04:00
|
|
|
# Uncomment following line to enable Pixar log-format algorithm
|
|
|
|
# (Zlib required).
|
|
|
|
#
|
2004-11-24 06:24:20 -05:00
|
|
|
#PIXARLOG_SUPPORT = 1
|
2004-04-16 04:12:54 -04:00
|
|
|
|
2004-04-20 10:21:06 -04:00
|
|
|
#
|
|
|
|
# Comment out the following lines to disable strip chopping
|
|
|
|
# (whether or not to convert single-strip uncompressed images to mutiple
|
2005-10-07 13:27:09 -04:00
|
|
|
# strips of specified size to reduce memory usage). Default strip size
|
|
|
|
# is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter
|
2004-04-20 10:21:06 -04:00
|
|
|
#
|
|
|
|
STRIPCHOP_SUPPORT = 1
|
2005-10-07 13:27:09 -04:00
|
|
|
STRIP_SIZE_DEFAULT = 8192
|
2004-04-20 10:21:06 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Comment out the following lines to disable treating the fourth sample with
|
|
|
|
# no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA
|
|
|
|
# files but don't mark the alpha properly.
|
2004-05-19 06:49:16 -04:00
|
|
|
#
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRASAMPLE_AS_ALPHA_SUPPORT = 1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Comment out the following lines to disable picking up YCbCr subsampling
|
|
|
|
# info from the JPEG data stream to support files lacking the tag.
|
|
|
|
# See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
|
2004-05-19 06:49:16 -04:00
|
|
|
#
|
2004-04-20 10:21:06 -04:00
|
|
|
CHECK_JPEG_YCBCR_SUBSAMPLING = 1
|
|
|
|
|
2005-03-04 06:48:22 -05:00
|
|
|
#
|
|
|
|
####################### Compiler related options. #######################
|
|
|
|
#
|
|
|
|
|
2004-04-16 04:12:54 -04:00
|
|
|
#
|
2004-11-02 16:00:26 -05:00
|
|
|
# Pick debug or optimized build flags. We default to an optimized build
|
|
|
|
# with no debugging information.
|
2004-11-13 06:21:17 -05:00
|
|
|
# NOTE: /GX option required if you want to build the C++ stream API
|
2004-11-02 16:00:26 -05:00
|
|
|
#
|
2004-11-13 06:21:17 -05:00
|
|
|
OPTFLAGS = /Ox /MD /GX /W3
|
2004-11-02 16:00:26 -05:00
|
|
|
#OPTFLAGS = /Zi
|
|
|
|
|
2005-03-04 06:48:22 -05:00
|
|
|
#
|
|
|
|
# Uncomment following line to enable using Windows Common RunTime Library
|
2005-03-17 09:38:54 -05:00
|
|
|
# instead of Windows specific system calls. See notes on top of tif_unix.c
|
|
|
|
# module for details.
|
2005-03-04 06:48:22 -05:00
|
|
|
#
|
2005-03-17 09:38:54 -05:00
|
|
|
USE_WIN_CRT_LIB = 1
|
2005-03-04 06:48:22 -05:00
|
|
|
|
2004-09-08 14:01:29 -04:00
|
|
|
# Compiler specific options. You may probably want to adjust compilation
|
|
|
|
# parameters in CFLAGS variable. Refer to your compiler documentation
|
|
|
|
# for the option reference.
|
2004-04-15 05:48:25 -04:00
|
|
|
#
|
|
|
|
MAKE = nmake /nologo
|
|
|
|
CC = cl /nologo
|
2004-11-13 06:21:17 -05:00
|
|
|
CXX = cl /nologo
|
2004-07-03 12:01:29 -04:00
|
|
|
AR = lib /nologo
|
|
|
|
LD = link /nologo
|
2004-04-15 05:48:25 -04:00
|
|
|
|
2004-12-04 06:08:43 -05:00
|
|
|
CFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
|
|
|
|
CXXFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
|
2004-11-13 06:21:17 -05:00
|
|
|
EXTRAFLAGS =
|
2004-07-03 12:01:29 -04:00
|
|
|
LIBS =
|
2004-04-15 05:48:25 -04:00
|
|
|
|
2004-11-28 09:40:49 -05:00
|
|
|
# Name of the output shared library
|
|
|
|
DLLNAME = libtiff.dll
|
|
|
|
|
2004-09-08 14:01:29 -04:00
|
|
|
#
|
|
|
|
########### There is nothing to edit below this line normally. ###########
|
|
|
|
#
|
|
|
|
|
2004-04-16 04:12:54 -04:00
|
|
|
# Set the native cpu bit order
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DFILLODER_LSB2MSB $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
|
2004-12-04 06:08:43 -05:00
|
|
|
!IFDEF WINMODE_WINDOWED
|
|
|
|
EXTRAFLAGS = -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)
|
|
|
|
LIBS = user32.lib $(LIBS)
|
|
|
|
!ELSE
|
|
|
|
EXTRAFLAGS = -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
2004-04-16 04:12:54 -04:00
|
|
|
# Codec stuff
|
|
|
|
!IFDEF CCITT_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DCCITT_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF PACKBITS_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DPACKBITS_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF LZW_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DLZW_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF THUNDER_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DTHUNDER_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF NEXT_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DNEXT_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF LOGLUV_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DLOGLUV_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
|
2004-04-15 05:48:25 -04:00
|
|
|
!IFDEF JPEG_SUPPORT
|
|
|
|
LIBS = $(LIBS) $(JPEG_LIB)
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DJPEG_SUPPORT $(EXTRAFLAGS)
|
2004-04-15 05:48:25 -04:00
|
|
|
!IFDEF OJPEG_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DOJPEG_SUPPORT $(EXTRAFLAGS)
|
2004-04-15 05:48:25 -04:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2004-04-16 04:12:54 -04:00
|
|
|
!IFDEF ZIP_SUPPORT
|
|
|
|
LIBS = $(LIBS) $(ZLIB_LIB)
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DZIP_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!IFDEF PIXARLOG_SUPPORT
|
2004-04-20 10:21:06 -04:00
|
|
|
EXTRAFLAGS = -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
|
2004-04-16 04:12:54 -04:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2004-04-20 10:21:06 -04:00
|
|
|
!IFDEF STRIPCHOP_SUPPORT
|
2005-10-07 13:27:09 -04:00
|
|
|
EXTRAFLAGS = -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
|
2004-04-20 10:21:06 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
|
|
|
|
EXTRAFLAGS = -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING
|
|
|
|
EXTRAFLAGS = -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
2006-03-21 11:37:51 -05:00
|
|
|
!IFDEF USE_WIN_CRT_LIB
|
|
|
|
EXTRAFLAGS = -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)
|
|
|
|
!ELSE
|
|
|
|
EXTRAFLAGS = -DUSE_WIN32_FILEIO $(EXTRAFLAGS)
|
|
|
|
!ENDIF
|