blob: 9ee6497d7dcf708c6a4633285660c0df5fa93be5 [file] [log] [blame]
sewardj4d7d8f52010-10-12 10:09:15 +00001include $(top_srcdir)/Makefile.tool.am
2
3#SUBDIRS += perf
4
sewardj5fce7562010-10-13 14:06:00 +00005EXTRA_DIST = docs/dh-manual.xml
sewardj4d7d8f52010-10-12 10:09:15 +00006
7#----------------------------------------------------------------------------
8# Headers, etc
9#----------------------------------------------------------------------------
10
11#bin_SCRIPTS = dh_print
12
13#----------------------------------------------------------------------------
14# exp_dhat-<platform>
15#----------------------------------------------------------------------------
16
17noinst_PROGRAMS = exp-dhat-@VGCONF_ARCH_PRI@-@VGCONF_OS@
18if VGCONF_HAVE_PLATFORM_SEC
19noinst_PROGRAMS += exp-dhat-@VGCONF_ARCH_SEC@-@VGCONF_OS@
20endif
21
22EXP_DHAT_SOURCES_COMMON = dh_main.c
23
24exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
25 $(EXP_DHAT_SOURCES_COMMON)
26exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
27 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
28exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \
29 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
30exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
31 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
32exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
33 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
34exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
35 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
36exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
37 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
38 @VALT_LOAD_ADDRESS_PRI@ \
39 $(LINK) \
40 $(exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
41 $(exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
42
43if VGCONF_HAVE_PLATFORM_SEC
44exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
45 $(EXP_DHAT_SOURCES_COMMON)
46exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
47 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
48exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \
49 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
50exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
51 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
52exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
53 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
54exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
55 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
56exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
57 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
58 @VALT_LOAD_ADDRESS_SEC@ \
59 $(LINK) \
60 $(exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
61 $(exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
62endif
63
64#----------------------------------------------------------------------------
65# vgpreload_exp_dhat-<platform>.so
66#----------------------------------------------------------------------------
67
68noinst_PROGRAMS += vgpreload_exp-dhat-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
69if VGCONF_HAVE_PLATFORM_SEC
70noinst_PROGRAMS += vgpreload_exp-dhat-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
71endif
72
73if VGCONF_OS_IS_DARWIN
74noinst_DSYMS = $(noinst_PROGRAMS)
75endif
76
77vgpreload_exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES =
78vgpreload_exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \
79 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
80vgpreload_exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \
81 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC)
82vgpreload_exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \
83 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@)
84vgpreload_exp_dhat_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \
85 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
86 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
87
88if VGCONF_HAVE_PLATFORM_SEC
89vgpreload_exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES =
90vgpreload_exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \
91 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
92vgpreload_exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \
93 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC)
94vgpreload_exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \
95 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@)
96vgpreload_exp_dhat_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \
97 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
98 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
99endif
100