nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 1 | include $(top_srcdir)/Makefile.all.am |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 2 | |
| 3 | dist_noinst_SCRIPTS = \ |
florian | 82a0371 | 2011-10-24 00:03:52 +0000 | [diff] [blame] | 4 | change-copyright-year \ |
| 5 | dump_insn_ppc.sh \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 6 | gen-mdg \ |
| 7 | gsl16test \ |
| 8 | gsl19test \ |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame] | 9 | make_or_upd_vgversion_h \ |
florian | b0f4ce8 | 2011-10-25 20:01:41 +0000 | [diff] [blame] | 10 | nightly-build-summary \ |
florian | e44b9cd | 2011-12-10 16:03:57 +0000 | [diff] [blame] | 11 | update-demangler \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 12 | posixtestsuite-1.5.1-diff-results |
| 13 | |
| 14 | EXTRA_DIST = \ |
mjw | 3e8d634 | 2013-07-03 10:00:19 +0000 | [diff] [blame] | 15 | docs/valgrind-listener-manpage.xml \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 16 | DotToScc.hs \ |
| 17 | Merge3Way.hs \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 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 | #---------------------------------------------------------------------------- |
sewardj | 5d616df | 2013-07-02 08:07:15 +0000 | [diff] [blame] | 26 | # valgrind_listener (built for the primary target only) |
| 27 | # valgrind-di-server (ditto) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 28 | #---------------------------------------------------------------------------- |
njn | 7a6e746 | 2002-11-09 17:53:30 +0000 | [diff] [blame] | 29 | |
sewardj | 5d616df | 2013-07-02 08:07:15 +0000 | [diff] [blame] | 30 | bin_PROGRAMS = valgrind-listener valgrind-di-server |
njn | 7a6e746 | 2002-11-09 17:53:30 +0000 | [diff] [blame] | 31 | |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 32 | valgrind_listener_SOURCES = valgrind-listener.c |
njn | f6ded8c | 2009-02-06 04:49:14 +0000 | [diff] [blame] | 33 | valgrind_listener_CPPFLAGS = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame] | 34 | valgrind_listener_CFLAGS = $(AM_CFLAGS_PRI) |
| 35 | valgrind_listener_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
| 36 | valgrind_listener_LDFLAGS = $(AM_CFLAGS_PRI) |
philippe | 5d5dd8e | 2012-08-05 00:08:25 +0000 | [diff] [blame] | 37 | if VGCONF_PLATVARIANT_IS_ANDROID |
| 38 | valgrind_listener_CFLAGS += -static |
| 39 | endif |
rhyskidd | 9c8e198 | 2015-07-25 05:50:10 +0000 | [diff] [blame] | 40 | # If there is no secondary platform, and the platforms include x86-darwin, |
| 41 | # then the primary platform must be x86-darwin. Hence: |
| 42 | if ! VGCONF_HAVE_PLATFORM_SEC |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 43 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 44 | valgrind_listener_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 45 | endif |
rhyskidd | 9c8e198 | 2015-07-25 05:50:10 +0000 | [diff] [blame] | 46 | endif |
sewardj | 8eb8bab | 2015-07-21 14:44:28 +0000 | [diff] [blame] | 47 | if VGCONF_OS_IS_SOLARIS |
| 48 | valgrind_listener_LDADD = -lsocket -lnsl |
| 49 | endif |
sewardj | 5d616df | 2013-07-02 08:07:15 +0000 | [diff] [blame] | 50 | |
| 51 | valgrind_di_server_SOURCES = valgrind-di-server.c |
| 52 | valgrind_di_server_CPPFLAGS = $(AM_CPPFLAGS_PRI) -I$(top_srcdir)/coregrind |
| 53 | valgrind_di_server_CFLAGS = $(AM_CFLAGS_PRI) |
| 54 | valgrind_di_server_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
| 55 | valgrind_di_server_LDFLAGS = $(AM_CFLAGS_PRI) |
| 56 | if VGCONF_PLATVARIANT_IS_ANDROID |
| 57 | valgrind_di_server_CFLAGS += -static |
| 58 | endif |
rhyskidd | 9c8e198 | 2015-07-25 05:50:10 +0000 | [diff] [blame] | 59 | # If there is no secondary platform, and the platforms include x86-darwin, |
| 60 | # then the primary platform must be x86-darwin. Hence: |
| 61 | if ! VGCONF_HAVE_PLATFORM_SEC |
sewardj | 5d616df | 2013-07-02 08:07:15 +0000 | [diff] [blame] | 62 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 63 | valgrind_di_server_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 64 | endif |
rhyskidd | 9c8e198 | 2015-07-25 05:50:10 +0000 | [diff] [blame] | 65 | endif |
sewardj | 8eb8bab | 2015-07-21 14:44:28 +0000 | [diff] [blame] | 66 | if VGCONF_OS_IS_SOLARIS |
| 67 | valgrind_di_server_LDADD = -lsocket -lnsl |
| 68 | endif |
philippe | 1670b05 | 2014-08-15 10:27:52 +0000 | [diff] [blame] | 69 | |
| 70 | #---------------------------------------------------------------------------- |
| 71 | # getoff-<platform> |
| 72 | # Used to retrieve user space various offsets, using user space libraries. |
| 73 | #---------------------------------------------------------------------------- |
sewardj | 68a8bb9 | 2014-08-17 12:23:56 +0000 | [diff] [blame] | 74 | |
philippe | 1670b05 | 2014-08-15 10:27:52 +0000 | [diff] [blame] | 75 | noinst_PROGRAMS = getoff-@VGCONF_ARCH_PRI@-@VGCONF_OS@ |
| 76 | if VGCONF_HAVE_PLATFORM_SEC |
| 77 | noinst_PROGRAMS += getoff-@VGCONF_ARCH_SEC@-@VGCONF_OS@ |
| 78 | endif |
| 79 | |
sewardj | 68a8bb9 | 2014-08-17 12:23:56 +0000 | [diff] [blame] | 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 | |
philippe | 1670b05 | 2014-08-15 10:27:52 +0000 | [diff] [blame] | 86 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_SOURCES = getoff.c |
| 87 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CPPFLAGS = $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 88 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CFLAGS = $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 89 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
florian | bb1a787 | 2015-03-10 16:13:59 +0000 | [diff] [blame] | 90 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS = $(AM_CFLAGS_PRI) @LIB_UBSAN@ |
philippe | 1670b05 | 2014-08-15 10:27:52 +0000 | [diff] [blame] | 91 | if HAVE_DLINFO_RTLD_DI_TLS_MODID |
| 92 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDADD = $(LDADD) -ldl |
| 93 | endif |
sewardj | 68a8bb9 | 2014-08-17 12:23:56 +0000 | [diff] [blame] | 94 | # If there is no secondary platform, and the platforms include x86-darwin, |
| 95 | # then the primary platform must be x86-darwin. Hence: |
| 96 | if ! VGCONF_HAVE_PLATFORM_SEC |
| 97 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 98 | getoff_@VGCONF_ARCH_PRI@_@VGCONF_OS@_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 99 | endif |
| 100 | endif |
philippe | 1670b05 | 2014-08-15 10:27:52 +0000 | [diff] [blame] | 101 | |
| 102 | if VGCONF_HAVE_PLATFORM_SEC |
| 103 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_SOURCES = getoff.c |
| 104 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CPPFLAGS = $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 105 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CFLAGS = $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 106 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_CCASFLAGS = $(AM_CCASFLAGS_SEC) |
| 107 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS = $(AM_CFLAGS_SEC) |
| 108 | if HAVE_DLINFO_RTLD_DI_TLS_MODID |
| 109 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDADD = $(LDADD) -ldl |
| 110 | endif |
| 111 | endif |
sewardj | 68a8bb9 | 2014-08-17 12:23:56 +0000 | [diff] [blame] | 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: |
| 115 | if VGCONF_HAVE_PLATFORM_SEC |
| 116 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 117 | getoff_@VGCONF_ARCH_SEC@_@VGCONF_OS@_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 118 | endif |
| 119 | endif |
philippe | 1670b05 | 2014-08-15 10:27:52 +0000 | [diff] [blame] | 120 | |
| 121 | #---------------------------------------------------------------------------- |
| 122 | # General stuff |
| 123 | #---------------------------------------------------------------------------- |
| 124 | |
| 125 | all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS |
| 126 | |
| 127 | clean-local: clean-noinst_DSYMS |
| 128 | |
| 129 | install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS |
| 130 | |
| 131 | uninstall-local: uninstall-noinst_PROGRAMS uninstall-noinst_DSYMS |