1 include $(top_srcdir)/Makefile.tool.am
8 #----------------------------------------------------------------------------
10 #----------------------------------------------------------------------------
12 pkginclude_HEADERS = helgrind.h
22 #----------------------------------------------------------------------------
24 #----------------------------------------------------------------------------
26 noinst_PROGRAMS = helgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@
27 if VGCONF_HAVE_PLATFORM_SEC
28 noinst_PROGRAMS += helgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@
31 HELGRIND_SOURCES_COMMON = \
40 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
41 $(HELGRIND_SOURCES_COMMON)
42 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
43 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
44 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = \
45 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -O2
46 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
47 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
48 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
49 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
50 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
51 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
52 helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
53 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
54 @VALT_LOAD_ADDRESS_PRI@ \
56 $(helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
57 $(helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
59 if VGCONF_HAVE_PLATFORM_SEC
60 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
61 $(HELGRIND_SOURCES_COMMON)
62 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
63 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
64 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = \
65 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -O2
66 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
67 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
68 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
69 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
70 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
71 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
72 helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
73 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
74 @VALT_LOAD_ADDRESS_SEC@ \
76 $(helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
77 $(helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
80 #----------------------------------------------------------------------------
81 # vgpreload_helgrind-<platform>.so
82 #----------------------------------------------------------------------------
84 noinst_PROGRAMS += vgpreload_helgrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
85 if VGCONF_HAVE_PLATFORM_SEC
86 noinst_PROGRAMS += vgpreload_helgrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
89 if VGCONF_OS_IS_DARWIN
90 noinst_DSYMS = $(noinst_PROGRAMS)
93 VGPRELOAD_HELGRIND_SOURCES_COMMON = hg_intercepts.c
95 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = \
96 $(VGPRELOAD_HELGRIND_SOURCES_COMMON)
97 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \
98 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
99 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \
100 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_PRI_CAPS@)
101 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \
102 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@)
103 vgpreload_helgrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \
104 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
105 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
107 if VGCONF_HAVE_PLATFORM_SEC
108 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = \
109 $(VGPRELOAD_HELGRIND_SOURCES_COMMON)
110 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \
111 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
112 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \
113 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_SEC_CAPS@)
114 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \
115 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@)
116 vgpreload_helgrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \
117 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
118 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)