From 5eeee0e92862b3108b203bd2520562cf4b64a5df Mon Sep 17 00:00:00 2001 From: stewartamiles Date: Thu, 23 Jul 2009 16:35:37 +0000 Subject: [PATCH] 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 --- windows/makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.34.1