1 include $(top_srcdir)/Makefile.tool.am
5 EXTRA_DIST = docs/dh-manual.xml dh_view.html dh_view.css dh_view.js
7 #----------------------------------------------------------------------------
9 #----------------------------------------------------------------------------
11 # Ensure the viewer components get copied into the install tree.
12 dhatdir = $(pkglibexecdir)
13 dhat_DATA = dh_view.html dh_view.css dh_view.js
15 #----------------------------------------------------------------------------
17 #----------------------------------------------------------------------------
19 noinst_PROGRAMS = dhat-@VGCONF_ARCH_PRI@-@VGCONF_OS@
20 if VGCONF_HAVE_PLATFORM_SEC
21 noinst_PROGRAMS += dhat-@VGCONF_ARCH_SEC@-@VGCONF_OS@
24 EXP_DHAT_SOURCES_COMMON = dh_main.c
26 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
27 $(EXP_DHAT_SOURCES_COMMON)
28 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
29 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
30 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
31 -DDHAT_VIEW_DIR=\"$(dhatdir)\" \
32 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
33 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
34 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
35 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
36 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
37 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
38 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
39 dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
40 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
41 @VALT_LOAD_ADDRESS_PRI@ \
43 $(dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
44 $(dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
46 if VGCONF_HAVE_PLATFORM_SEC
47 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
48 $(EXP_DHAT_SOURCES_COMMON)
49 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
50 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
51 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
52 -DDHAT_VIEW_DIR=\"$(dhatdir)\" \
53 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
54 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
55 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
56 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
57 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
58 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
59 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
60 dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
61 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
62 @VALT_LOAD_ADDRESS_SEC@ \
64 $(dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
65 $(dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
68 #----------------------------------------------------------------------------
69 # vgpreload_dhat-<platform>.so
70 #----------------------------------------------------------------------------
72 noinst_PROGRAMS += vgpreload_dhat-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
73 if VGCONF_HAVE_PLATFORM_SEC
74 noinst_PROGRAMS += vgpreload_dhat-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
77 if VGCONF_OS_IS_DARWIN
78 noinst_DSYMS = $(noinst_PROGRAMS)
81 vgpreload_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES =
82 vgpreload_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \
83 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
84 vgpreload_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \
85 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_PRI_CAPS@)
86 vgpreload_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \
87 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@)
88 vgpreload_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \
89 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
90 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
92 if VGCONF_HAVE_PLATFORM_SEC
93 vgpreload_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES =
94 vgpreload_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \
95 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
96 vgpreload_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \
97 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_SEC_CAPS@)
98 vgpreload_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \
99 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@)
100 vgpreload_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \
101 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
102 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)