[svn-commits] russell: branch 1.4 r2001 - /branches/1.4/Makefile
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 16 16:24:45 CDT 2010
Author: russell
Date: Thu Sep 16 16:24:40 2010
New Revision: 2001
URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2001
Log:
Makefile tweaks to allow building for code coverage analysis.
Modified:
branches/1.4/Makefile
Modified: branches/1.4/Makefile
URL: http://svnview.digium.com/svn/libpri/branches/1.4/Makefile?view=diff&rev=2001&r1=2000&r2=2001
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Thu Sep 16 16:24:40 2010
@@ -93,11 +93,11 @@
rose_qsig_mwi.lo \
rose_qsig_name.lo \
version.lo
-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS) $(LIBPRI_OPT)
+CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(ALERTING) $(LIBPRI_COUNTERS) $(LIBPRI_OPT) $(COVERAGE_CFLAGS)
INSTALL_PREFIX=$(DESTDIR)
INSTALL_BASE=/usr
libdir?=$(INSTALL_BASE)/lib
-SOFLAGS:=-Wl,-h$(DYNAMIC_LIBRARY)
+SOFLAGS=-Wl,-h$(DYNAMIC_LIBRARY) $(COVERAGE_LDFLAGS)
LDCONFIG = /sbin/ldconfig
ifneq (,$(findstring X$(OSARCH)X, XLinuxX XGNU/kFreeBSDX XGNUX))
LDCONFIG_FLAGS=-n
@@ -126,7 +126,13 @@
PROC=ultrasparc
LIBPRI_OPT = -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8
else
-LIBPRI_OPT = -O2
+ ifneq ($(CODE_COVERAGE),)
+ LIBPRI_OPT=
+ COVERAGE_CFLAGS=-ftest-coverage -fprofile-arcs
+ COVERAGE_LDFLAGS=-ftest-coverage -fprofile-arcs
+ else
+ LIBPRI_OPT=-O2
+ endif
endif
ifeq ($(CPUARCH),i686)
More information about the svn-commits
mailing list