summaryrefslogtreecommitdiff
path: root/devel/covtool/files/patch-rules.FreeBSD
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-12-22 15:56:21 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-12-22 15:56:21 +0000
commit7897354104ea2a90a4916ae30fefe6e3fad0ee30 (patch)
tree6280478c5e7f7ef32c9bd11a841b1b6b6da34ef7 /devel/covtool/files/patch-rules.FreeBSD
parentKLEE is a symbolic virtual machine built on top of the (diff)
A free test coverage analysis tool for C++. Analogous to purecov but quite
different in implementation. This tool does its job by instrumenting the source as you compile. You can thus add your own instrumentation to every line on the fly. WWW: http://sourceforge.net/projects/covtool/ PR: ports/174234 Submitted by: novator24 <novator24@gmail.com>
Notes
Notes: svn path=/head/; revision=309395
Diffstat (limited to 'devel/covtool/files/patch-rules.FreeBSD')
-rw-r--r--devel/covtool/files/patch-rules.FreeBSD88
1 files changed, 88 insertions, 0 deletions
diff --git a/devel/covtool/files/patch-rules.FreeBSD b/devel/covtool/files/patch-rules.FreeBSD
new file mode 100644
index 000000000000..130b20b74b47
--- /dev/null
+++ b/devel/covtool/files/patch-rules.FreeBSD
@@ -0,0 +1,88 @@
+--- ./rules.FreeBSD.orig 2012-12-06 17:33:14.000000000 +0400
++++ ./rules.FreeBSD 2012-12-06 17:33:14.000000000 +0400
+@@ -0,0 +1,85 @@
++#
++# This file defines the compilation rules for building the covtool
++# programs and is used in tests in the subdirectories.
++#
++
++all::
++tests:: all
++clean::
++depend::
++
++INSTALL_DIR=$(PREFIX)
++MAKEFLAGS:=-j1
++INSTALL_PROGRAM=$(BSD_INSTALL_PROGRAM)
++INSTALL_DATA=$(BSD_INSTALL_DATA)
++INSTALL_SCRIPT=$(BSD_INSTALL_SCRIPT)
++
++#
++# select the optimization level -- optimization is the default
++# unless you change it to 1 -- or specify DEBUGGING=1 on the
++# command line
++#
++DEBUGGING=0
++ifeq ($(DEBUGGING),1)
++CCOPTS= %%CXXFLAGS%% -g -DDEBUGGING -Wall -pedantic
++else
++CCOPTS= %%CXXFLAGS%% -Wall -pedantic
++endif
++
++CCDEFS=
++CCINCS= -I. -I/usr/include/g++
++
++CCFLAGS= $(CCDEFS) \
++ $(CCOPTS) \
++ $(CCINCS)
++
++CC:=g++
++LN:=g++
++
++#
++# the following COVTOOL declarations speed up cov++ by suppressing its
++# need to read the .cfg file. You must override all 4 symbols for this
++# speed up to work.
++#
++COVTOOL_CC:= $(CC)
++COVTOOL_LN:= $(LN)
++COVTOOL_EXT:= .c
++COVTOOL_TMP:= .c++
++
++.EXPORT: COVTOOL_CC
++.EXPORT: COVTOOL_LN
++.EXPORT: COVTOOL_TMP
++.EXPORT: COVTOOL_EXT
++
++
++.SUFFIXES: .c .o .i .j .ii
++
++.c.o:
++ $(CC) -o $@ $(CCFLAGS) -fpermissive -c $<
++
++.c.i:
++ $(CC) "-D__extension__=" "-D__attribute__(X)=" -E $(CCDEFS) $(CCINCS) $< >$@
++
++
++CCDEFS:
++ echo $(CCDEFS)
++
++CCOPTS:
++ echo $(CCOPTS)
++
++CCINCS:
++ echo $(CCINCS)
++
++CCFLAGS:
++ echo $(CCFLAGS)
++
++CC:
++ echo $(CC)
++
++LN:
++ echo $(LN)
++
++
++clean::
++ rm -fr *.o *.exe *.i *.out *.diff *.a *.log *.bak *.j j.c k.c log
++ rm -fr remake.log *.covexp *.db *.ii *.c++ coverage_html