1 include $(top_srcdir)/Makefile.tool.am
3 EXTRA_DIST = docs/drd-manual.xml docs/drd-xml-output.xsd
5 #----------------------------------------------------------------------------
7 #----------------------------------------------------------------------------
9 pkginclude_HEADERS = drd.h
22 drd_malloc_wrappers.h \
37 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@ \
45 #DRD_CFLAGS += -DENABLE_DRD_CONSISTENCY_CHECKS
47 #----------------------------------------------------------------------------
49 #----------------------------------------------------------------------------
51 noinst_PROGRAMS = drd-@VGCONF_ARCH_PRI@-@VGCONF_OS@
52 if VGCONF_HAVE_PLATFORM_SEC
53 noinst_PROGRAMS += drd-@VGCONF_ARCH_SEC@-@VGCONF_OS@
56 DRD_SOURCES_COMMON = \
61 drd_cond_initializer.c \
66 drd_malloc_wrappers.c \
72 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = \
74 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = \
75 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
76 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
77 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(DRD_CFLAGS)
78 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
79 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
80 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = \
81 $(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
82 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = \
83 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
84 drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
85 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
86 @VALT_LOAD_ADDRESS_PRI@ \
88 $(drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
89 $(drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
91 if VGCONF_HAVE_PLATFORM_SEC
92 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = \
94 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = \
95 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
96 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(LTO_CFLAGS) \
97 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(DRD_CFLAGS)
98 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
99 $(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
100 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = \
101 $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
102 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = \
103 $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
104 drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
105 $(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
106 @VALT_LOAD_ADDRESS_SEC@ \
108 $(drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
109 $(drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
112 #----------------------------------------------------------------------------
113 # vgpreload_drd-<platform>.so
114 #----------------------------------------------------------------------------
116 noinst_PROGRAMS += vgpreload_drd-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
117 if VGCONF_HAVE_PLATFORM_SEC
118 noinst_PROGRAMS += vgpreload_drd-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
121 if VGCONF_OS_IS_DARWIN
122 noinst_DSYMS = $(noinst_PROGRAMS)
125 VGPRELOAD_DRD_SOURCES_COMMON = \
126 drd_libstdcxx_intercepts.c \
127 drd_pthread_intercepts.c \
128 drd_qtcore_intercepts.c \
129 drd_strmem_intercepts.c
131 if VGCONF_OS_IS_DARWIN
132 VGPRELOAD_DRD_SOURCES_COMMON += drd_darwin_intercepts.c
135 vgpreload_drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = \
136 $(VGPRELOAD_DRD_SOURCES_COMMON)
137 vgpreload_drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \
138 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
139 vgpreload_drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \
140 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_PRI_CAPS@) $(DRD_CFLAGS)
141 vgpreload_drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \
142 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@)
143 vgpreload_drd_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \
144 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
145 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
147 if VGCONF_HAVE_PLATFORM_SEC
148 vgpreload_drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = \
149 $(VGPRELOAD_DRD_SOURCES_COMMON)
150 vgpreload_drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \
151 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
152 vgpreload_drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \
153 $(AM_CFLAGS_PSO_@VGCONF_PLATFORM_SEC_CAPS@) $(DRD_CFLAGS)
154 vgpreload_drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \
155 $(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@)
156 vgpreload_drd_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \
157 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
158 $(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)