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 bin_SCRIPTS = cg_annotate cg_diff
20 #----------------------------------------------------------------------------
21 # cg_merge (built for the primary target only)
22 #----------------------------------------------------------------------------
24 bin_PROGRAMS = cg_merge
26 cg_merge_SOURCES = cg_merge.c
27 cg_merge_CPPFLAGS = $(AM_CPPFLAGS_PRI)
28 cg_merge_CFLAGS = $(AM_CFLAGS_PRI)
29 cg_merge_CCASFLAGS = $(AM_CCASFLAGS_PRI)
30 cg_merge_LDFLAGS = $(AM_CFLAGS_PRI)
31 # If there is no secondary platform, and the platforms include x86-darwin,
32 # then the primary platform must be x86-darwin. Hence:
33 if ! VGCONF_HAVE_PLATFORM_SEC
34 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
35 cg_merge_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress
39 #----------------------------------------------------------------------------
40 # cachegrind-<platform>
41 #----------------------------------------------------------------------------
43 noinst_PROGRAMS = cachegrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
44 if VGCONF_HAVE_PLATFORM_SEC
45 noinst_PROGRAMS += cachegrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
48 CACHEGRIND_SOURCES_COMMON = \
52 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
53 $(CACHEGRIND_SOURCES_COMMON)
54 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
55 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
56 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
57 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
58 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
59 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
60 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
61 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
62 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
63 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
64 cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
65 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
66 @VALT_LOAD_ADDRESS_PRI@ \
68 $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
69 $(cachegrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
71 if VGCONF_HAVE_PLATFORM_SEC
72 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
73 $(CACHEGRIND_SOURCES_COMMON)
74 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
75 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
76 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS)\
77 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
78 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
79 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
80 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
81 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
82 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
83 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
84 cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
85 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
86 @VALT_LOAD_ADDRESS_SEC@ \
88 $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
89 $(cachegrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)