diff options
author | Even Rouault <even.rouault@spatialys.com> | 2017-10-10 14:39:43 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2017-10-10 14:39:43 +0000 |
commit | 7c1a32bb9f3060ed867fae8f1474675e0b3bced8 (patch) | |
tree | 8ec1e01a7d7c97b2abcb1de59ca39ee8ff05dd60 | |
parent | 76a2b9d619a78996529e53e08dbe5e56fac497ff (diff) | |
download | libtiff-git-7c1a32bb9f3060ed867fae8f1474675e0b3bced8.tar.gz |
* nmake.opt: support a DEBUG=1 option, so as to adjust OPTFLAGS and use
/MDd runtime in debug mode.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | nmake.opt | 13 |
2 files changed, 17 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2017-10-10 Even Rouault <even.rouault at spatialys.com> + + * nmake.opt: support a DEBUG=1 option, so as to adjust OPTFLAGS and use + /MDd runtime in debug mode. + 2017-10-01 Even Rouault <even.rouault at spatialys.com> * tools/tiffset.c: fix setting a single value for the ExtraSamples tag @@ -1,4 +1,4 @@ -# $Id: nmake.opt,v 1.19 2015-08-28 22:19:26 bfriesen Exp $ +# $Id: nmake.opt,v 1.20 2017-10-10 14:39:43 erouault Exp $ # # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu> # @@ -24,6 +24,13 @@ # Compile time parameters for MS Visual C++ compiler. # You may edit this file to specify building options. +# Options: +# DEBUG - set to disable optimizations and link with debug runtimes +# +# Usage examples (see details below): +# nmake -f makefile.vc +# nmake -f makefile.vc DEBUG=1 +# # ###### Edit the following lines to choose a feature set you need. ####### # @@ -114,7 +121,11 @@ CHECK_JPEG_YCBCR_SUBSAMPLING = 1 # with no debugging information. # NOTE: /EHsc option required if you want to build the C++ stream API # +!IFDEF DEBUG +OPTFLAGS = /MDd /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE +!ELSE OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE +!ENDIF #OPTFLAGS = /Zi # |