1include $(top_srcdir)/Makefile.all.am 2 3dist_noinst_SCRIPTS = \ 4 change-copyright-year \ 5 dump_insn_ppc.sh \ 6 gen-mdg \ 7 gsl16test \ 8 gsl19test \ 9 make_or_upd_vgversion_h \ 10 nightly-build-summary \ 11 update-demangler \ 12 posixtestsuite-1.5.1-diff-results 13 14EXTRA_DIST = \ 15 docs/valgrind-listener-manpage.xml \ 16 DotToScc.hs \ 17 Merge3Way.hs \ 18 gsl16-badfree.patch \ 19 gsl16-wavelet.patch \ 20 posixtestsuite-1.5.1-diff.txt \ 21 ppcfround.c \ 22 ppc64shifts.c \ 23 primes.c 24 25#---------------------------------------------------------------------------- 26# valgrind_listener (built for the primary target only) 27# valgrind-di-server (ditto) 28#---------------------------------------------------------------------------- 29 30bin_PROGRAMS = valgrind-listener valgrind-di-server 31 32valgrind_listener_SOURCES = valgrind-listener.c 33valgrind_listener_CPPFLAGS = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind 34valgrind_listener_CFLAGS = $(AM_CFLAGS_PRI) 35valgrind_listener_CCASFLAGS = $(AM_CCASFLAGS_PRI) 36valgrind_listener_LDFLAGS = $(AM_CFLAGS_PRI) 37if VGCONF_PLATVARIANT_IS_ANDROID 38valgrind_listener_CFLAGS += -static 39endif 40# If there is no secondary platform, and the platforms include x86-darwin, 41# then the primary platform must be x86-darwin. Hence: 42if ! VGCONF_HAVE_PLATFORM_SEC 43if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 44valgrind_listener_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 45endif 46endif 47if VGCONF_OS_IS_SOLARIS 48valgrind_listener_LDADD = -lsocket -lnsl 49endif 50 51valgrind_di_server_SOURCES = valgrind-di-server.c 52valgrind_di_server_CPPFLAGS = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind 53valgrind_di_server_CFLAGS = $(AM_CFLAGS_PRI) 54valgrind_di_server_CCASFLAGS = $(AM_CCASFLAGS_PRI) 55valgrind_di_server_LDFLAGS = $(AM_CFLAGS_PRI) 56if VGCONF_PLATVARIANT_IS_ANDROID 57valgrind_di_server_CFLAGS += -static 58endif 59# If there is no secondary platform, and the platforms include x86-darwin, 60# then the primary platform must be x86-darwin. Hence: 61if ! VGCONF_HAVE_PLATFORM_SEC 62if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 63valgrind_di_server_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 64endif 65endif 66if VGCONF_OS_IS_SOLARIS 67valgrind_di_server_LDADD = -lsocket -lnsl 68endif 69 70#---------------------------------------------------------------------------- 71# getoff-<platform> 72# Used to retrieve user space various offsets, using user space libraries. 73#---------------------------------------------------------------------------- 74 75noinst_PROGRAMS = getoff-@VGCONF_ARCH_PRI@-@VGCONF_OS@ 76if VGCONF_HAVE_PLATFORM_SEC 77noinst_PROGRAMS += getoff-@VGCONF_ARCH_SEC@-@VGCONF_OS@ 78endif 79 80# The link flags for this are tricky, because we want to build it for 81# both the primary and secondary platforms, and add 82# "-Wl,-read_only_relocs -Wl,suppress" to whichever of those is x86-darwin, 83# if any. Hence there's a double-nested conditional that adds to the 84# LDFLAGS in both cases. 85 86getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = getoff.c 87getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 88getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 89getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_PRI) 90getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = $(AM_CFLAGS_PRI) @LIB_UBSAN@ 91if HAVE_DLINFO_RTLD_DI_TLS_MODID 92getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = $(LDADD) -ldl 93endif 94# If there is no secondary platform, and the platforms include x86-darwin, 95# then the primary platform must be x86-darwin. Hence: 96if ! VGCONF_HAVE_PLATFORM_SEC 97if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 98getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 99endif 100endif 101 102if VGCONF_HAVE_PLATFORM_SEC 103getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = getoff.c 104getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 105getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 106getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_SEC) 107getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = $(AM_CFLAGS_SEC) 108if HAVE_DLINFO_RTLD_DI_TLS_MODID 109getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = $(LDADD) -ldl 110endif 111endif 112# If there is a secondary platform, and the platforms include x86-darwin, 113# then the primary platform must be amd64-darwin and the secondary platform 114# must be x86-darwin. Hence: 115if VGCONF_HAVE_PLATFORM_SEC 116if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 117getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 118endif 119endif 120 121#---------------------------------------------------------------------------- 122# General stuff 123#---------------------------------------------------------------------------- 124 125all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS 126 127clean-local: clean-noinst_DSYMS 128 129install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS 130 131uninstall-local: uninstall-noinst_PROGRAMS uninstall-noinst_DSYMS 132