~ubuntu-branches/ubuntu/breezy/judy/breezy

« back to all changes in this revision

Viewing changes to make_includes/flavor.cov.mk

  • Committer: Bazaar Package Importer
  • Author(s): Theodore Y. Ts'o
  • Date: 2004-01-17 00:04:53 UTC
  • Revision ID: james.westby@ubuntu.com-20040117000453-d5sj6uoon2v1g4gf
Tags: upstream-0.0.4
ImportĀ upstreamĀ versionĀ 0.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# @(#) $Revision: 4.18 $ $Source: /judy/make_includes/flavor.cov.mk $
 
2
 
 
3
# Makefile fragment for Judy* for "cov" flavor object files.  This is intended
 
4
# to be as close to "product" as possible while building with ccover.  See
 
5
# flavor.product.mk for more comments.
 
6
 
 
7
FLAVOR = cov
 
8
 
 
9
# $COVC is a prefix to $CC or $ACC.  Use the full path, rather than relying on
 
10
# $PATH, just as for other tools, so there's no ambiguity about what was run,
 
11
# even in logfiles.
 
12
#
 
13
# Explicitly pass $COVFILE so it's unambiguous, but build using a local (top of
 
14
# source tree) file so source file paths are shorter.  WARNING!  This means the
 
15
# top test.cov file is not flavor-specific.  Be careful to remove it and the
 
16
# corresponding build tree, if necessary, and rebuild all from scratch, so the
 
17
# $COVFILE has exactly what you want, no more, no less.
 
18
#
 
19
# Note:  Use default covc, which does not measure trinary statements involving
 
20
# strings (?).  See the -C option to covc.
 
21
#
 
22
# Note:  The covc command automatically sets -DCCOVER.
 
23
 
 
24
COVFILE =       test.cov_$(LIB_SUFFIX)
 
25
COVFILE_DEL =   $(DELDIR_LIB)/$(COVFILE)
 
26
 
 
27
# Set target name so covfiles are constructed:
 
28
 
 
29
COV_RECURSE_PREP =      $(COV_RECURSE_PREP_VALUE)
 
30
COV_RECURSE_FINISH =    $(COV_RECURSE_FINISH_VALUE)
 
31
 
 
32
COVC =          /opt/ccover/bin/covc -f"$(COVFILE)" --no-banner
 
33
 
 
34
CC_OPTS =       $(CC_OPTS_LIB) $(CC_OPTS_cov)     $(EXTCCOPTS)
 
35
CC_OPTS_NOALL = $(CC_OPTS_LIB) $(CC_OPTS_cov)     $(EXTCCOPTS)
 
36
CC_OPTS_TOOL =                 $(CC_OPTS_product) $(EXTCCOPTS)
 
37
 
 
38
# For cov flavor, force $CCPRE to reference the ccpre tool, so cov builds use
 
39
# preprocessed (separated) *.c files, because otherwise C-Cover doesn't know to
 
40
# count the common code separately in multi-compiled functions.
 
41
 
 
42
CCPRE =         $(SRCDIR_TOOL)/ccpre
 
43
 
 
44
CC =            $(CCPRE) $(COVC) $(CCPATH)      $(CC_OPTS)
 
45
CC_NOALL =      $(CCPRE) $(COVC) $(CCPATH)      $(CC_OPTS_NOALL)
 
46
CC_TOOL =                        $(CCPATH_TOOL) $(CC_OPTS_TOOL)