~ubuntu-branches/ubuntu/utopic/esorex/utopic

« back to all changes in this revision

Viewing changes to Makefile.purify.in

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2011-11-25 12:08:00 UTC
  • Revision ID: package-import@ubuntu.com-20111125120800-hb8qatpoxkhv0fne
Tags: upstream-3.9.0
ImportĀ upstreamĀ versionĀ 3.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#*******************************************************************************
 
2
# E.S.O. - VLT project
 
3
#
 
4
# "@(#) $Id: Makefile.purify.in,v 1.2 2008/05/09 14:01:27 cguirao Exp $"
 
5
#
 
6
# Makefile of Pipeline subsystem.
 
7
#
 
8
# who       when        what
 
9
# --------  ----------  ----------------------------------------------
 
10
#
 
11
 
 
12
 
 
13
ifdef MAKE_PURE
 
14
  ENABLE_PURIFY=on
 
15
  ENABLE_PURECOV=on
 
16
  ENABLE_PURE=on
 
17
endif
 
18
 
 
19
ifdef MAKE_PUREGUI
 
20
  ENABLE_PURIFY=on
 
21
  ENABLE_PURECOV=on
 
22
endif
 
23
 
 
24
ifdef MAKE_PURIFY
 
25
  ENABLE_PURIFY=on
 
26
endif
 
27
 
 
28
ifdef MAKE_PURECOV
 
29
  ENABLE_PURECOV=on
 
30
endif
 
31
 
 
32
#           -user-path="../test:../src:src:test" \
 
33
 
 
34
 
 
35
ifdef ENABLE_PURIFY
 
36
  PURIFY = purify \
 
37
           -always-use-cache-dir \
 
38
           -g++=yes \
 
39
           -log-file=./.purifydir/MemoryReport \
 
40
           -linker=$(GNU_ROOT)/bin/ld \
 
41
           -append-logfile=yes \
 
42
           -messages=batch \
 
43
           -dlclose-mode=2 \
 
44
           -view-file=./.purifydir/purify-%v.pv \
 
45
           -chain-length=100
 
46
 
 
47
else
 
48
  PURIFY =
 
49
endif
 
50
 
 
51
ifdef MAKE_PUREGUI
 
52
  PURIFY = purify \
 
53
           -always-use-cache-dir \
 
54
           -user-path="../test:../src:src:test" \
 
55
           -g++=yes \
 
56
           -linker=$(GNU_ROOT)/bin/ld
 
57
endif
 
58
 
 
59
ifdef ENABLE_PURECOV
 
60
  PURECOV = purecov \
 
61
            -always-use-cache-dir \
 
62
            -counts-file=./.purifydir/purecov-%v.pcv
 
63
  ifdef MAKE_PUREGUI
 
64
    PURECOV = purecov -always-use-cache-dir
 
65
  endif
 
66
else
 
67
  PURECOV =
 
68
endif 
 
69
 
 
70
ifdef ENABLE_PURIFY
 
71
   CCLD = "$(PURIFY)" $(CC)
 
72
endif
 
73
 
 
74
ifdef ENABLE_PURECOV
 
75
   CCLD = "$(PURECOV)" $(CC)
 
76
endif
 
77
 
 
78
ifdef ENABLE_PURE
 
79
   CCLD = "$(PURIFY) $(PURECOV)" $(CC)
 
80
endif
 
81
 
 
82
 
 
83
pureReport:
 
84
        @ purecov -export=.purifydir/CoverageReport .purifydir/*.pcv
 
85
        @ echo "== Purify coverage report in '.purifydir/CoverageReport'."
 
86
 
 
87
pureGUI:
 
88
        @ ls purecov*.pcv > /dev/null 2>&1; if [ $$? = "0" ]; then purecov -view purecov*.pcv &; fi
 
89
        @ ls purify*.pv > /dev/null 2>&1; if [ $$? = "0" ]; then \
 
90
        for member in `ls purify*.pv`; \
 
91
        do purify -view $$member &  \
 
92
        done \
 
93
        fi
 
94
 
 
95
check-am: make_links
 
96
 
 
97
make_links:
 
98
ifeq ($(ENABLE_PURIFY),on)
 
99
        -@if  [ ! -d .purifydir ]; then mkdir .purifydir ; fi
 
100
endif
 
101
 
 
102
ifeq ($(ENABLE_PURECOV),on)
 
103
        -@if  [ ! -d .purifydir ]; then mkdir .purifydir ;fi
 
104
endif
 
105
 
 
106
clean-am: pureClean
 
107
 
 
108
pureClean:
 
109
        -@ rm -rf .purifydir/*