OSDN Git Service

add gcov option
authorbols <bols-blue@lnc.jp>
Thu, 18 Aug 2011 10:58:26 +0000 (19:58 +0900)
committerbols <bols-blue@lnc.jp>
Thu, 18 Aug 2011 10:58:26 +0000 (19:58 +0900)
USB_Keybord_MAX3421E/src/Makefile

index ed3605a..ee6a79a 100644 (file)
@@ -5,12 +5,15 @@ SPI_controler.nsl
 CPP_SRCS=\
 SPI_controler_test_case.cpp\
 SPI_controler_top.cpp
+
+CXXFLAGS=-fprofile-arcs -ftest-coverage
+
 ifdef JENKINS_URL
 LDFLAGS= -L/opt/systemc-2.2.0/lib-linux64
-CXXFLAGS= -I/opt/systemc-2.2.0/include
+CXXFLAGS+= -I/opt/systemc-2.2.0/include
 else
 LDFLAGS= -L/home/bols/systemc-2.2.0/lib-linux 
-CXXFLAGS= -I/home/bols/systemc-2.2.0/include 
+CXXFLAGS+= -I/home/bols/systemc-2.2.0/include 
 endif
 LDLIBS= -lcppunit -lsystemc -ldl
 SC_SRCS=$(patsubst %.nsl,%.sc,$(filter %.nsl,$(SRCS)))