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