roentgen b75cab
# $Id: nmake.opt,v 1.18 2006/06/07 16:33:45 dron Exp $
roentgen b75cab
#
roentgen b75cab
# Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
</dron@ak4719.spb.edu>
roentgen b75cab
#
roentgen b75cab
# Permission to use, copy, modify, distribute, and sell this software and 
roentgen b75cab
# its documentation for any purpose is hereby granted without fee, provided
roentgen b75cab
# that (i) the above copyright notices and this permission notice appear in
roentgen b75cab
# all copies of the software and related documentation, and (ii) the names of
roentgen b75cab
# Sam Leffler and Silicon Graphics may not be used in any advertising or
roentgen b75cab
# publicity relating to the software without the specific, prior written
roentgen b75cab
# permission of Sam Leffler and Silicon Graphics.
roentgen b75cab
# 
roentgen b75cab
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
roentgen b75cab
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
roentgen b75cab
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
roentgen b75cab
# 
roentgen b75cab
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
roentgen b75cab
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
roentgen b75cab
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
roentgen b75cab
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
roentgen b75cab
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
roentgen b75cab
# OF THIS SOFTWARE.
roentgen b75cab

roentgen b75cab
# Compile time parameters for MS Visual C++ compiler.
roentgen b75cab
# You may edit this file to specify building options.
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
###### Edit the following lines to choose a feature set you need. #######
roentgen b75cab
#
roentgen b75cab

roentgen b75cab
# 
roentgen b75cab
# Select WINMODE_CONSOLE to build a library which reports errors to stderr, or
roentgen b75cab
# WINMODE_WINDOWED to build such that errors are reported via MessageBox().
roentgen b75cab
#
roentgen b75cab
WINMODE_CONSOLE = 1
roentgen b75cab
#WINMODE_WINDOWED = 1
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Comment out the following lines to disable internal codecs.
roentgen b75cab
#
roentgen b75cab
# Support for CCITT Group 3 & 4 algorithms
roentgen b75cab
CCITT_SUPPORT	= 1
roentgen b75cab
# Support for Macintosh PackBits algorithm
roentgen b75cab
PACKBITS_SUPPORT = 1
roentgen b75cab
# Support for LZW algorithm
roentgen b75cab
LZW_SUPPORT	= 1
roentgen b75cab
# Support for ThunderScan 4-bit RLE algorithm
roentgen b75cab
THUNDER_SUPPORT	= 1
roentgen b75cab
# Support for NeXT 2-bit RLE algorithm
roentgen b75cab
NEXT_SUPPORT	= 1
roentgen b75cab
# Support for LogLuv high dynamic range encoding
roentgen b75cab
LOGLUV_SUPPORT	= 1
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Uncomment and edit following lines to enable JPEG support.
roentgen b75cab
#
roentgen b75cab
#JPEG_SUPPORT	= 1
roentgen b75cab
#JPEGDIR 	= d:/projects/jpeg-6b
roentgen b75cab
#JPEG_INCLUDE	= -I$(JPEGDIR)
roentgen b75cab
#JPEG_LIB 	= $(JPEGDIR)/Release/jpeg.lib
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Uncomment and edit following lines to enable ZIP support
roentgen b75cab
# (required for Deflate compression and Pixar log-format)
roentgen b75cab
#
roentgen b75cab
#ZIP_SUPPORT	= 1
roentgen b75cab
#ZLIBDIR 	= d:/projects/zlib-1.2.1
roentgen b75cab
#ZLIB_INCLUDE	= -I$(ZLIBDIR)
roentgen b75cab
#ZLIB_LIB 	= $(ZLIBDIR)/zlib.lib
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Uncomment and edit following lines to enable ISO JBIG support
roentgen b75cab
#
roentgen b75cab
#JBIG_SUPPORT	= 1
roentgen b75cab
#JBIGDIR 	= d:/projects/jbigkit
roentgen b75cab
#JBIG_INCLUDE	= -I$(JBIGDIR)/libjbig
roentgen b75cab
#JBIG_LIB 	= $(JBIGDIR)/libjbig/jbig.lib
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Uncomment following line to enable Pixar log-format algorithm
roentgen b75cab
# (Zlib required).
roentgen b75cab
#
roentgen b75cab
#PIXARLOG_SUPPORT = 1
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Comment out the following lines to disable strip chopping
roentgen b75cab
# (whether or not to convert single-strip uncompressed images to mutiple
roentgen b75cab
# strips of specified size to reduce memory usage). Default strip size
roentgen b75cab
# is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter
roentgen b75cab
#
roentgen b75cab
STRIPCHOP_SUPPORT = 1
roentgen b75cab
STRIP_SIZE_DEFAULT = 8192
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Comment out the following lines to disable treating the fourth sample with
roentgen b75cab
# no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA
roentgen b75cab
# files but don't mark the alpha properly.
roentgen b75cab
#
roentgen b75cab
EXTRASAMPLE_AS_ALPHA_SUPPORT = 1
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Comment out the following lines to disable picking up YCbCr subsampling
roentgen b75cab
# info from the JPEG data stream to support files lacking the tag.
roentgen b75cab
# See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
roentgen b75cab
#
roentgen b75cab
CHECK_JPEG_YCBCR_SUBSAMPLING = 1
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
####################### Compiler related options. #######################
roentgen b75cab
#
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Pick debug or optimized build flags.  We default to an optimized build
roentgen b75cab
# with no debugging information.
roentgen b75cab
# NOTE: /EHsc option required if you want to build the C++ stream API
roentgen b75cab
#
roentgen b75cab
OPTFLAGS =	/Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
roentgen b75cab
#OPTFLAGS = 	/Zi 
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
# Uncomment following line to enable using Windows Common RunTime Library
roentgen b75cab
# instead of Windows specific system calls. See notes on top of tif_unix.c
roentgen b75cab
# module for details.
roentgen b75cab
#
roentgen b75cab
USE_WIN_CRT_LIB = 1
roentgen b75cab

roentgen b75cab
# Compiler specific options. You may probably want to adjust compilation
roentgen b75cab
# parameters in CFLAGS variable. Refer to your compiler documentation
roentgen b75cab
# for the option reference.
roentgen b75cab
#
roentgen b75cab
MAKE	=	nmake /nologo
roentgen b75cab
CC	=	cl /nologo
roentgen b75cab
CXX	=	cl /nologo
roentgen b75cab
AR	=	lib /nologo
roentgen b75cab
LD	=	link /nologo
roentgen b75cab

roentgen b75cab
CFLAGS  =	$(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
roentgen b75cab
CXXFLAGS =	$(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
roentgen b75cab
EXTRAFLAGS =
roentgen b75cab
LIBS	=
roentgen b75cab

roentgen b75cab
# Name of the output shared library
roentgen b75cab
DLLNAME	= libtiff.dll
roentgen b75cab

roentgen b75cab
#
roentgen b75cab
########### There is nothing to edit below this line normally. ###########
roentgen b75cab
#
roentgen b75cab

roentgen b75cab
# Set the native cpu bit order
roentgen b75cab
EXTRAFLAGS	= -DFILLODER_LSB2MSB $(EXTRAFLAGS)
roentgen b75cab

roentgen b75cab
!IFDEF WINMODE_WINDOWED
roentgen b75cab
EXTRAFLAGS	= -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)
roentgen b75cab
LIBS		= user32.lib $(LIBS)
roentgen b75cab
!ELSE
roentgen b75cab
EXTRAFLAGS	= -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
# Codec stuff
roentgen b75cab
!IFDEF CCITT_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DCCITT_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF PACKBITS_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DPACKBITS_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF LZW_SUPPORT
roentgen b75cab
EXTRAFLAGS	=  -DLZW_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF THUNDER_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DTHUNDER_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF NEXT_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DNEXT_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF LOGLUV_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DLOGLUV_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF JPEG_SUPPORT
roentgen b75cab
LIBS		= $(LIBS) $(JPEG_LIB)
roentgen b75cab
EXTRAFLAGS	= -DJPEG_SUPPORT -DOJPEG_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF ZIP_SUPPORT
roentgen b75cab
LIBS		= $(LIBS) $(ZLIB_LIB)
roentgen b75cab
EXTRAFLAGS	= -DZIP_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!IFDEF PIXARLOG_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF JBIG_SUPPORT
roentgen b75cab
LIBS		= $(LIBS) $(JBIG_LIB)
roentgen b75cab
EXTRAFLAGS	= -DJBIG_SUPPORT $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF STRIPCHOP_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
roentgen b75cab
EXTRAFLAGS	= -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING
roentgen b75cab
EXTRAFLAGS	= -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)
roentgen b75cab
!ENDIF
roentgen b75cab

roentgen b75cab
!IFDEF USE_WIN_CRT_LIB
roentgen b75cab
EXTRAFLAGS	= -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)
roentgen b75cab
!ELSE
roentgen b75cab
EXTRAFLAGS	= -DUSE_WIN32_FILEIO $(EXTRAFLAGS)
roentgen b75cab
!ENDIF