Modified the windows makefile for cmockery to enable debug mode.
authorstewartamiles <stewartamiles@40f4469a-5155-0410-be90-2de3f0bae501>
Thu, 23 Jul 2009 16:35:37 +0000 (16:35 +0000)
committerstewartamiles <stewartamiles@40f4469a-5155-0410-be90-2de3f0bae501>
Thu, 23 Jul 2009 16:35:37 +0000 (16:35 +0000)
git-svn-id: http://cmockery.googlecode.com/svn/trunk@35 40f4469a-5155-0410-be90-2de3f0bae501

windows/makefile

index a6580f3..cf679e3 100644 (file)
@@ -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.