File: Makefile.purify.in

package info (click to toggle)
cpl-plugin-xshoo 2.8.4+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,168 kB
  • sloc: ansic: 146,236; sh: 11,433; python: 2,342; makefile: 1,024
file content (108 lines) | stat: -rw-r--r-- 2,195 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#*******************************************************************************
# E.S.O. - VLT project
#
# "@(#) $Id: Makefile.purify.in,v 1.1 2007-11-13 12:54:17 amodigli Exp $"
#
# Makefile of Pipeline subsystem.
#
# who       when        what
# --------  ----------  ----------------------------------------------
#


ifdef MAKE_PURE
  ENABLE_PURIFY=on
  ENABLE_PURECOV=on
  ENABLE_PURE=on
endif

ifdef MAKE_PUREGUI
  ENABLE_PURIFY=on
  ENABLE_PURECOV=on
endif

ifdef MAKE_PURIFY
  ENABLE_PURIFY=on
endif

ifdef MAKE_PURECOV
  ENABLE_PURECOV=on
endif

#           -user-path="../test:../src:src:test" \


ifdef ENABLE_PURIFY
  PURIFY = purify \
           -always-use-cache-dir \
           -g++=yes \
           -log-file=./.purifydir/MemoryReport \
           -linker=$(GNU_ROOT)/bin/ld \
           -append-logfile=yes \
           -messages=batch \
           -view-file=./.purifydir/purify-%v.pv \
           -chain-length=100

else
  PURIFY =
endif

ifdef MAKE_PUREGUI
  PURIFY = purify \
           -always-use-cache-dir \
           -user-path="../test:../src:src:test" \
           -g++=yes \
           -linker=$(GNU_ROOT)/bin/ld
endif

ifdef ENABLE_PURECOV
  PURECOV = purecov \
	    -always-use-cache-dir \
	    -counts-file=./.purifydir/purecov-%v.pcv
  ifdef MAKE_PUREGUI
    PURECOV = purecov -always-use-cache-dir
  endif
else
  PURECOV =
endif 

ifdef ENABLE_PURIFY
   CCLD = "$(PURIFY)" $(CC)
endif

ifdef ENABLE_PURECOV
   CCLD = "$(PURECOV)" $(CC)
endif

ifdef ENABLE_PURE
   CCLD = "$(PURIFY) $(PURECOV)" $(CC)
endif


pureReport:
	@ purecov -export=.purifydir/CoverageReport .purifydir/*.pcv
	@ echo "== Purify coverage report in '.purifydir/CoverageReport'."

pureGUI:
	@ ls purecov*.pcv > /dev/null 2>&1; if [ $$? = "0" ]; then purecov -view purecov*.pcv &; fi
	@ ls purify*.pv > /dev/null 2>&1; if [ $$? = "0" ]; then \
	for member in `ls purify*.pv`; \
	do purify -view $$member &  \
	done \
	fi

check-am: make_links

make_links:
ifeq ($(ENABLE_PURIFY),on)
	-@if  [ ! -d .purifydir ]; then mkdir .purifydir ; fi
endif

ifeq ($(ENABLE_PURECOV),on)
	-@if  [ ! -d .purifydir ]; then mkdir .purifydir ;fi
endif

clean-am: pureClean

pureClean:
	-@ rm -rf .purifydir/*