From: stewartamiles Date: Thu, 23 Jul 2009 16:35:37 +0000 (+0000) Subject: Modified the windows makefile for cmockery to enable debug mode. X-Git-Tag: cmocka-1.1.1~369 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eeee0e92862b3108b203bd2520562cf4b64a5df;p=platform%2Fupstream%2Fcmocka.git Modified the windows makefile for cmockery to enable debug mode. git-svn-id: http://cmockery.googlecode.com/svn/trunk@35 40f4469a-5155-0410-be90-2de3f0bae501 --- diff --git a/windows/makefile b/windows/makefile index a6580f3..cf679e3 100644 --- a/windows/makefile +++ b/windows/makefile @@ -58,6 +58,12 @@ CC_COMMAND=$(CC) /nologo /c /D_WIN32_WINNT=0x501 /DHAVE_MALLOC_H \ CC_COMMAND_UNIT_TEST=$(CC_COMMAND) /DUNIT_TESTING=1 \ /I$(EXAMPLE_SOURCE_DIRECTORY) +# If debugging is enabled compile with symbols and stop on exceptions. +!IFDEF UNIT_TESTING_DEBUG +CC_COMMAND=$(CC_COMMAND) /DUNIT_TESTING_DEBUG=1 /Zi /Od +LFLAGS=$(LFLAGS) /DEBUG +!ENDIF # UNIT_TESTING_DEBUG + LIBLINKFLAGS=/NOLOGO # Library archiver flags and command.