1 include $(top_srcdir)/Makefile.tool.am
4 docs/callgrind_annotate-manpage.xml \
5 docs/callgrind_control-manpage.xml \
9 #----------------------------------------------------------------------------
11 #----------------------------------------------------------------------------
13 pkginclude_HEADERS = callgrind.h
24 #----------------------------------------------------------------------------
25 # callgrind-<platform>
26 #----------------------------------------------------------------------------
28 noinst_PROGRAMS = callgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
29 if VGCONF_HAVE_PLATFORM_SEC
30 noinst_PROGRAMS += callgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
33 CALLGRIND_SOURCES_COMMON = \
49 # We sneakily include "cg_branchpred.c" and "cg_arch.c" from cachegrind
50 CALLGRIND_CFLAGS_COMMON = -I$(top_srcdir)/cachegrind
52 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
53 $(CALLGRIND_SOURCES_COMMON)
54 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
55 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
56 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
57 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
58 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
59 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
60 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
61 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
62 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
63 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
64 callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
65 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
66 @VALT_LOAD_ADDRESS_PRI@ \
68 $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
69 $(callgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
71 if VGCONF_HAVE_PLATFORM_SEC
72 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
73 $(CALLGRIND_SOURCES_COMMON)
74 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
75 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
76 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
77 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(CALLGRIND_CFLAGS_COMMON)
78 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
79 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
80 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
81 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
82 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
83 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
84 callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
85 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
86 @VALT_LOAD_ADDRESS_SEC@ \
88 $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
89 $(callgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)