1 include $(top_srcdir)/Makefile.all.am
3 dist_noinst_SCRIPTS = \
4 change-copyright-year \
9 make_or_upd_vgversion_h \
10 nightly-build-summary \
12 posixtestsuite-1.5.1-diff-results
15 docs/valgrind-listener-manpage.xml \
18 posixtestsuite-1.5.1-diff.txt \
23 #----------------------------------------------------------------------------
24 # valgrind_listener (built for the primary target only)
25 # valgrind-di-server (ditto)
26 #----------------------------------------------------------------------------
28 bin_PROGRAMS = valgrind-listener valgrind-di-server
30 valgrind_listener_SOURCES = valgrind-listener.c
31 valgrind_listener_CPPFLAGS = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind
32 valgrind_listener_CFLAGS = $(AM_CFLAGS_PRI)
33 valgrind_listener_CCASFLAGS = $(AM_CCASFLAGS_PRI)
34 valgrind_listener_LDFLAGS = $(AM_CFLAGS_PRI)
35 if VGCONF_PLATVARIANT_IS_ANDROID
36 valgrind_listener_CFLAGS += -static
38 # If there is no secondary platform, and the platforms include x86-darwin,
39 # then the primary platform must be x86-darwin. Hence:
40 if ! VGCONF_HAVE_PLATFORM_SEC
41 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
42 valgrind_listener_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress
45 if VGCONF_OS_IS_SOLARIS
46 valgrind_listener_LDADD = -lsocket -lnsl
49 valgrind_di_server_SOURCES = valgrind-di-server.c
50 valgrind_di_server_CPPFLAGS = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind
51 valgrind_di_server_CFLAGS = $(AM_CFLAGS_PRI)
52 valgrind_di_server_CCASFLAGS = $(AM_CCASFLAGS_PRI)
53 valgrind_di_server_LDFLAGS = $(AM_CFLAGS_PRI)
54 if VGCONF_PLATVARIANT_IS_ANDROID
55 valgrind_di_server_CFLAGS += -static
57 # If there is no secondary platform, and the platforms include x86-darwin,
58 # then the primary platform must be x86-darwin. Hence:
59 if ! VGCONF_HAVE_PLATFORM_SEC
60 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
61 valgrind_di_server_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress
64 if VGCONF_OS_IS_SOLARIS
65 valgrind_di_server_LDADD = -lsocket -lnsl
68 #----------------------------------------------------------------------------
70 # Used to retrieve user space various offsets, using user space libraries.
71 #----------------------------------------------------------------------------
73 noinst_PROGRAMS = getoff-@VGCONF_ARCH_PRI@-@VGCONF_OS@
74 if VGCONF_HAVE_PLATFORM_SEC
75 noinst_PROGRAMS += getoff-@VGCONF_ARCH_SEC@-@VGCONF_OS@
78 # The link flags for this are tricky, because we want to build it for
79 # both the primary and secondary platforms, and add
80 # "-Wl,-read_only_relocs -Wl,suppress" to whichever of those is x86-darwin,
81 # if any. Hence there's a double-nested conditional that adds to the
82 # LDFLAGS in both cases.
84 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = getoff.c
85 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
86 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@)
87 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_PRI)
88 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = $(AM_CFLAGS_PRI) @LIB_UBSAN@
89 if HAVE_DLINFO_RTLD_DI_TLS_MODID
90 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = $(LDADD) -ldl
92 # If there is no secondary platform, and the platforms include x86-darwin,
93 # then the primary platform must be x86-darwin. Hence:
94 if ! VGCONF_HAVE_PLATFORM_SEC
95 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
96 getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress
100 if VGCONF_HAVE_PLATFORM_SEC
101 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = getoff.c
102 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
103 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
104 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_SEC)
105 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = $(AM_CFLAGS_SEC)
106 if HAVE_DLINFO_RTLD_DI_TLS_MODID
107 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = $(LDADD) -ldl
110 # If there is a secondary platform, and the platforms include x86-darwin,
111 # then the primary platform must be amd64-darwin and the secondary platform
112 # must be x86-darwin. Hence:
113 if VGCONF_HAVE_PLATFORM_SEC
114 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
115 getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress
119 #----------------------------------------------------------------------------
121 #----------------------------------------------------------------------------
123 all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS
125 clean-local: clean-noinst_DSYMS
127 install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS
129 uninstall-local: uninstall-noinst_PROGRAMS uninstall-noinst_DSYMS