• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include $(top_srcdir)/Makefile.tool.am
2
3EXTRA_DIST = docs/sg-manual.xml
4
5#----------------------------------------------------------------------------
6# Headers, etc
7#----------------------------------------------------------------------------
8
9noinst_HEADERS = \
10	h_main.h \
11	pc_common.h \
12	sg_main.h
13
14#----------------------------------------------------------------------------
15# exp-sgcheck-<platform>
16#----------------------------------------------------------------------------
17
18noinst_PROGRAMS  = exp-sgcheck-@VGCONF_ARCH_PRI@-@VGCONF_OS@
19if VGCONF_HAVE_PLATFORM_SEC
20noinst_PROGRAMS += exp-sgcheck-@VGCONF_ARCH_SEC@-@VGCONF_OS@
21endif
22
23EXP_PTRCHECK_SOURCES_COMMON = \
24	h_main.c \
25	pc_common.c \
26	pc_main.c \
27	sg_main.c
28
29exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES      = \
30	$(EXP_PTRCHECK_SOURCES_COMMON)
31exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS     = \
32	$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
33exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS       = \
34	$(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
35exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_DEPENDENCIES = \
36	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_PRI_CAPS@)
37exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD        = \
38	$(TOOL_LDADD_@VGCONF_PLATFORM_PRI_CAPS@)
39exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS      = \
40	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
41exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LINK = \
42	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
43	@VALT_LOAD_ADDRESS_PRI@ \
44	$(LINK) \
45	$(exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS) \
46	$(exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS)
47
48if VGCONF_HAVE_PLATFORM_SEC
49exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES      = \
50	$(EXP_PTRCHECK_SOURCES_COMMON)
51exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS     = \
52	$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
53exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS       = \
54	$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
55exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_DEPENDENCIES = \
56	$(TOOL_DEPENDENCIES_@VGCONF_PLATFORM_SEC_CAPS@)
57exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD        = \
58	$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
59exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS      = \
60	$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
61exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LINK = \
62	$(top_builddir)/coregrind/link_tool_exe_@VGCONF_OS@ \
63	@VALT_LOAD_ADDRESS_SEC@ \
64	$(LINK) \
65	$(exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS) \
66	$(exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS)
67endif
68
69#----------------------------------------------------------------------------
70# vgpreload_exp-sgcheck-<platform>.so
71#----------------------------------------------------------------------------
72
73noinst_PROGRAMS += vgpreload_exp-sgcheck-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so
74if VGCONF_HAVE_PLATFORM_SEC
75noinst_PROGRAMS += vgpreload_exp-sgcheck-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so
76endif
77
78if VGCONF_OS_IS_DARWIN
79noinst_DSYMS = $(noinst_PROGRAMS)
80endif
81
82VGPRELOAD_EXP_PTRCHECK_SOURCES_COMMON = h_intercepts.c
83
84vgpreload_exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES      = \
85	$(VGPRELOAD_EXP_PTRCHECK_SOURCES_COMMON)
86vgpreload_exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS     = \
87	$(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
88vgpreload_exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS       = \
89	$(AM_CFLAGS_PSO_@VGCONF_PLATFORM_PRI_CAPS@) -O2
90vgpreload_exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_DEPENDENCIES = \
91	$(LIBREPLACEMALLOC_@VGCONF_PLATFORM_PRI_CAPS@)
92vgpreload_exp_sgcheck_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS      = \
93	$(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
94	$(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
95
96if VGCONF_HAVE_PLATFORM_SEC
97vgpreload_exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES      = \
98	$(VGPRELOAD_EXP_PTRCHECK_SOURCES_COMMON)
99vgpreload_exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS     = \
100	$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
101vgpreload_exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS       = \
102	$(AM_CFLAGS_PSO_@VGCONF_PLATFORM_SEC_CAPS@) -O2
103vgpreload_exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_DEPENDENCIES = \
104	$(LIBREPLACEMALLOC_@VGCONF_PLATFORM_SEC_CAPS@)
105vgpreload_exp_sgcheck_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS      = \
106	$(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
107	$(LIBREPLACEMALLOC_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
108endif
109
110