1 include $(top_srcdir)/Makefile.tool.am
5 docs/cg_annotate-manpage.xml \
6 docs/cg_diff-manpage.xml \
7 docs/cg_merge-manpage.xml
9 #----------------------------------------------------------------------------
11 #----------------------------------------------------------------------------
13 pkginclude_HEADERS = cachegrind.h
15 bin_SCRIPTS = cg_annotate cg_diff cg_merge
22 #----------------------------------------------------------------------------
23 # cachegrind-<platform>
24 #----------------------------------------------------------------------------
26 noinst_PROGRAMS = cachegrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
27 if VGCONF_HAVE_PLATFORM_SEC
28 noinst_PROGRAMS += cachegrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
31 CACHEGRIND_SOURCES_COMMON = \
35 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
36 $(CACHEGRIND_SOURCES_COMMON)
37 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
38 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
39 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
40 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
41 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
42 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
43 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
44 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
45 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
46 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
47 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
48 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
49 @VALT_LOAD_ADDRESS_PRI@ \
51 $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
52 $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
54 if VGCONF_HAVE_PLATFORM_SEC
55 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
56 $(CACHEGRIND_SOURCES_COMMON)
57 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
58 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
59 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS)\
60 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
61 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
62 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
63 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
64 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
65 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
66 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
67 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
68 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
69 @VALT_LOAD_ADDRESS_SEC@ \
71 $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
72 $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
75 #----------------------------------------------------------------------------
77 #----------------------------------------------------------------------------
79 # "Build" `cg_annotate`. The `+` avoids warnings about the jobserver.
81 +../auxprogs/pybuild.sh ../auxprogs cg_annotate.in cg_annotate
83 # "Build" `cg_diff`. The `+` avoids warnings about the jobserver.
85 +../auxprogs/pybuild.sh ../auxprogs cg_diff.in cg_diff
87 # "Build" `cg_merge`. The `+` avoids warnings about the jobserver.
89 +../auxprogs/pybuild.sh ../auxprogs cg_merge.in cg_merge
91 .PHONY: pyann pydiff pymerge