nmake.opt 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. # $Id: nmake.opt,v 1.18 2006-06-07 16:33:45 dron Exp $
  2. #
  3. # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
  4. #
  5. # Permission to use, copy, modify, distribute, and sell this software and
  6. # its documentation for any purpose is hereby granted without fee, provided
  7. # that (i) the above copyright notices and this permission notice appear in
  8. # all copies of the software and related documentation, and (ii) the names of
  9. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  10. # publicity relating to the software without the specific, prior written
  11. # permission of Sam Leffler and Silicon Graphics.
  12. #
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  22. # OF THIS SOFTWARE.
  23. # Compile time parameters for MS Visual C++ compiler.
  24. # You may edit this file to specify building options.
  25. #
  26. ###### Edit the following lines to choose a feature set you need. #######
  27. #
  28. #
  29. # Select WINMODE_CONSOLE to build a library which reports errors to stderr, or
  30. # WINMODE_WINDOWED to build such that errors are reported via MessageBox().
  31. #
  32. WINMODE_CONSOLE = 1
  33. #WINMODE_WINDOWED = 1
  34. #
  35. # Comment out the following lines to disable internal codecs.
  36. #
  37. # Support for CCITT Group 3 & 4 algorithms
  38. CCITT_SUPPORT = 1
  39. # Support for Macintosh PackBits algorithm
  40. PACKBITS_SUPPORT = 1
  41. # Support for LZW algorithm
  42. LZW_SUPPORT = 1
  43. # Support for ThunderScan 4-bit RLE algorithm
  44. THUNDER_SUPPORT = 1
  45. # Support for NeXT 2-bit RLE algorithm
  46. NEXT_SUPPORT = 1
  47. # Support for LogLuv high dynamic range encoding
  48. LOGLUV_SUPPORT = 1
  49. #
  50. # Uncomment and edit following lines to enable JPEG support.
  51. #
  52. #JPEG_SUPPORT = 1
  53. #JPEGDIR = d:/projects/jpeg-6b
  54. #JPEG_INCLUDE = -I$(JPEGDIR)
  55. #JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
  56. #
  57. # Uncomment and edit following lines to enable ZIP support
  58. # (required for Deflate compression and Pixar log-format)
  59. #
  60. #ZIP_SUPPORT = 1
  61. #ZLIBDIR = d:/projects/zlib-1.2.1
  62. #ZLIB_INCLUDE = -I$(ZLIBDIR)
  63. #ZLIB_LIB = $(ZLIBDIR)/zlib.lib
  64. #
  65. # Uncomment and edit following lines to enable ISO JBIG support
  66. #
  67. #JBIG_SUPPORT = 1
  68. #JBIGDIR = d:/projects/jbigkit
  69. #JBIG_INCLUDE = -I$(JBIGDIR)/libjbig
  70. #JBIG_LIB = $(JBIGDIR)/libjbig/jbig.lib
  71. #
  72. # Uncomment following line to enable Pixar log-format algorithm
  73. # (Zlib required).
  74. #
  75. #PIXARLOG_SUPPORT = 1
  76. #
  77. # Comment out the following lines to disable strip chopping
  78. # (whether or not to convert single-strip uncompressed images to mutiple
  79. # strips of specified size to reduce memory usage). Default strip size
  80. # is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter
  81. #
  82. STRIPCHOP_SUPPORT = 1
  83. STRIP_SIZE_DEFAULT = 8192
  84. #
  85. # Comment out the following lines to disable treating the fourth sample with
  86. # no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA
  87. # files but don't mark the alpha properly.
  88. #
  89. EXTRASAMPLE_AS_ALPHA_SUPPORT = 1
  90. #
  91. # Comment out the following lines to disable picking up YCbCr subsampling
  92. # info from the JPEG data stream to support files lacking the tag.
  93. # See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
  94. #
  95. CHECK_JPEG_YCBCR_SUBSAMPLING = 1
  96. #
  97. ####################### Compiler related options. #######################
  98. #
  99. #
  100. # Pick debug or optimized build flags. We default to an optimized build
  101. # with no debugging information.
  102. # NOTE: /EHsc option required if you want to build the C++ stream API
  103. #
  104. OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
  105. #OPTFLAGS = /Zi
  106. #
  107. # Uncomment following line to enable using Windows Common RunTime Library
  108. # instead of Windows specific system calls. See notes on top of tif_unix.c
  109. # module for details.
  110. #
  111. USE_WIN_CRT_LIB = 1
  112. # Compiler specific options. You may probably want to adjust compilation
  113. # parameters in CFLAGS variable. Refer to your compiler documentation
  114. # for the option reference.
  115. #
  116. MAKE = nmake /nologo
  117. CC = cl /nologo
  118. CXX = cl /nologo
  119. AR = lib /nologo
  120. LD = link /nologo
  121. CFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
  122. CXXFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
  123. EXTRAFLAGS =
  124. LIBS =
  125. # Name of the output shared library
  126. DLLNAME = libtiff.dll
  127. #
  128. ########### There is nothing to edit below this line normally. ###########
  129. #
  130. # Set the native cpu bit order
  131. EXTRAFLAGS = -DFILLODER_LSB2MSB $(EXTRAFLAGS)
  132. !IFDEF WINMODE_WINDOWED
  133. EXTRAFLAGS = -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)
  134. LIBS = user32.lib $(LIBS)
  135. !ELSE
  136. EXTRAFLAGS = -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)
  137. !ENDIF
  138. # Codec stuff
  139. !IFDEF CCITT_SUPPORT
  140. EXTRAFLAGS = -DCCITT_SUPPORT $(EXTRAFLAGS)
  141. !ENDIF
  142. !IFDEF PACKBITS_SUPPORT
  143. EXTRAFLAGS = -DPACKBITS_SUPPORT $(EXTRAFLAGS)
  144. !ENDIF
  145. !IFDEF LZW_SUPPORT
  146. EXTRAFLAGS = -DLZW_SUPPORT $(EXTRAFLAGS)
  147. !ENDIF
  148. !IFDEF THUNDER_SUPPORT
  149. EXTRAFLAGS = -DTHUNDER_SUPPORT $(EXTRAFLAGS)
  150. !ENDIF
  151. !IFDEF NEXT_SUPPORT
  152. EXTRAFLAGS = -DNEXT_SUPPORT $(EXTRAFLAGS)
  153. !ENDIF
  154. !IFDEF LOGLUV_SUPPORT
  155. EXTRAFLAGS = -DLOGLUV_SUPPORT $(EXTRAFLAGS)
  156. !ENDIF
  157. !IFDEF JPEG_SUPPORT
  158. LIBS = $(LIBS) $(JPEG_LIB)
  159. EXTRAFLAGS = -DJPEG_SUPPORT -DOJPEG_SUPPORT $(EXTRAFLAGS)
  160. !ENDIF
  161. !IFDEF ZIP_SUPPORT
  162. LIBS = $(LIBS) $(ZLIB_LIB)
  163. EXTRAFLAGS = -DZIP_SUPPORT $(EXTRAFLAGS)
  164. !IFDEF PIXARLOG_SUPPORT
  165. EXTRAFLAGS = -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
  166. !ENDIF
  167. !ENDIF
  168. !IFDEF JBIG_SUPPORT
  169. LIBS = $(LIBS) $(JBIG_LIB)
  170. EXTRAFLAGS = -DJBIG_SUPPORT $(EXTRAFLAGS)
  171. !ENDIF
  172. !IFDEF STRIPCHOP_SUPPORT
  173. EXTRAFLAGS = -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
  174. !ENDIF
  175. !IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
  176. EXTRAFLAGS = -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)
  177. !ENDIF
  178. !IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING
  179. EXTRAFLAGS = -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)
  180. !ENDIF
  181. !IFDEF USE_WIN_CRT_LIB
  182. EXTRAFLAGS = -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)
  183. !ELSE
  184. EXTRAFLAGS = -DUSE_WIN32_FILEIO $(EXTRAFLAGS)
  185. !ENDIF