diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-05 19:54:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:36:32 -0500 |
commit | 46ca543e198d96598521ac809db9c21ff467e588 (patch) | |
tree | 1ffdcb1be111ec7021e063d734322b5979b5a882 /source4/build | |
parent | 3ca370b3db92c12d6dc649e93b33febd248a945f (diff) | |
download | samba-46ca543e198d96598521ac809db9c21ff467e588.tar.gz samba-46ca543e198d96598521ac809db9c21ff467e588.tar.bz2 samba-46ca543e198d96598521ac809db9c21ff467e588.zip |
r10041: Add 'gcov' make target. Run
'make clean gcov' to generate a set of files describing the test coverage
of the Samba 4 code.
(This used to be commit 72bb84add469ad4f027ddbd8d73bb846b0609fa2)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/m4/check_cc.m4 | 2 | ||||
-rw-r--r-- | source4/build/smb_build/makefile.pm | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index 8e402f102c..eaf40f1b53 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -127,3 +127,5 @@ fi # allow for --with-hostcc=gcc AC_ARG_WITH(hostcc,[ --with-hostcc=compiler choose host compiler],[HOSTCC=$withval],[HOSTCC=$CC]) AC_SUBST(HOSTCC) + +AC_PATH_PROG(GCOV,gcov) diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 82bcd90b22..f6619416ab 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -77,13 +77,14 @@ CC=$config{CC} CFLAGS=-I\$(srcdir)/include -I\$(srcdir) -D_SAMBA_BUILD_ -DHAVE_CONFIG_H -I\$(srcdir)/lib $config{CFLAGS} $config{CPPFLAGS} LD=$config{LD} -LD_FLAGS=$config{LDFLAGS} -Lbin +GCOV=$config{GCOV} +LD_FLAGS=$config{LDFLAGS} STLD=$config{AR} STLD_FLAGS=-rc SHLD=$config{CC} -SHLD_FLAGS=$config{LDSHFLAGS} -Lbin +SHLD_FLAGS=$config{LDSHFLAGS} XSLTPROC=$config{XSLTPROC} |