sewardj | 5533424 | 2005-11-09 14:04:27 +0000 | [diff] [blame] | 1 | |
| 2 | # Be very careful when renaming any files, targets, whatever, in this |
njn | 3e65340 | 2009-02-06 07:12:57 +0000 | [diff] [blame] | 3 | # Makefile. Various parts of the system rely on these names having |
| 4 | # particular forms. |
sewardj | 5533424 | 2005-11-09 14:04:27 +0000 | [diff] [blame] | 5 | |
nethercote | 4388a40 | 2004-09-01 23:20:49 +0000 | [diff] [blame] | 6 | include $(top_srcdir)/Makefile.all.am |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 7 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 8 | #---------------------------------------------------------------------------- |
| 9 | # Basics, flags |
| 10 | #---------------------------------------------------------------------------- |
njn | f6f2ef8 | 2009-06-02 05:27:07 +0000 | [diff] [blame] | 11 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 12 | AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ += \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 13 | -I$(top_srcdir)/coregrind \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 14 | -DVG_LIBDIR="\"$(pkglibdir)"\" \ |
| 15 | -DVG_PLATFORM="\"@VGCONF_ARCH_PRI@-@VGCONF_OS@\"" |
| 16 | if VGCONF_HAVE_PLATFORM_SEC |
| 17 | AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@ += \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 18 | -I$(top_srcdir)/coregrind \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 19 | -DVG_LIBDIR="\"$(pkglibdir)"\" \ |
| 20 | -DVG_PLATFORM="\"@VGCONF_ARCH_SEC@-@VGCONF_OS@\"" |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 21 | endif |
| 22 | |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 23 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 24 | EXTRA_DIST = \ |
| 25 | m_debuginfo/UNUSED_STABS.txt \ |
florian | dfe1877 | 2011-10-23 13:51:34 +0000 | [diff] [blame] | 26 | m_debuginfo/README.txt \ |
| 27 | m_gdbserver/README_DEVELOPERS |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 28 | |
| 29 | #---------------------------------------------------------------------------- |
| 30 | # The launcher. Built for the primary target only. |
| 31 | #---------------------------------------------------------------------------- |
| 32 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 33 | bin_PROGRAMS = \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 34 | valgrind \ |
sewardj | 6e9de46 | 2011-06-28 07:25:29 +0000 | [diff] [blame] | 35 | vgdb |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 36 | |
njn | bdf957c | 2009-05-19 04:37:03 +0000 | [diff] [blame] | 37 | if VGCONF_OS_IS_LINUX |
| 38 | valgrind_SOURCES = \ |
| 39 | launcher-linux.c \ |
| 40 | m_debuglog.c |
| 41 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 42 | if VGCONF_OS_IS_DARWIN |
| 43 | valgrind_SOURCES = \ |
| 44 | launcher-darwin.c \ |
| 45 | m_debuglog.c |
| 46 | endif |
| 47 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 48 | valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) |
| 49 | valgrind_CFLAGS = $(AM_CFLAGS_PRI) |
| 50 | valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
| 51 | valgrind_LDFLAGS = $(AM_CFLAGS_PRI) |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 52 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 53 | valgrind_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 54 | endif |
sewardj | 1b3a7a4 | 2011-10-26 15:10:49 +0000 | [diff] [blame] | 55 | # On Android we must ask for non-executable stack, not sure why. |
sewardj | 1b3a7a4 | 2011-10-26 15:10:49 +0000 | [diff] [blame] | 56 | if VGCONF_PLATVARIANT_IS_ANDROID |
philippe | 5d5dd8e | 2012-08-05 00:08:25 +0000 | [diff] [blame] | 57 | valgrind_CFLAGS += -static |
sewardj | 1b3a7a4 | 2011-10-26 15:10:49 +0000 | [diff] [blame] | 58 | valgrind_LDFLAGS += -Wl,-z,noexecstack |
| 59 | endif |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 60 | |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 61 | vgdb_SOURCES = vgdb.c |
| 62 | vgdb_CPPFLAGS = $(AM_CPPFLAGS_PRI) |
| 63 | vgdb_CFLAGS = $(AM_CFLAGS_PRI) |
| 64 | vgdb_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
sewardj | 0ba37c9 | 2011-07-12 11:46:24 +0000 | [diff] [blame] | 65 | vgdb_LDFLAGS = $(AM_CFLAGS_PRI) |
philippe | 5d5dd8e | 2012-08-05 00:08:25 +0000 | [diff] [blame] | 66 | if VGCONF_PLATVARIANT_IS_ANDROID |
| 67 | vgdb_CFLAGS += -static |
| 68 | endif |
sewardj | 0ba37c9 | 2011-07-12 11:46:24 +0000 | [diff] [blame] | 69 | if !VGCONF_PLATVARIANT_IS_ANDROID |
bart | 2476b78 | 2011-10-15 07:52:46 +0000 | [diff] [blame] | 70 | vgdb_LDADD = -lpthread |
sewardj | 0ba37c9 | 2011-07-12 11:46:24 +0000 | [diff] [blame] | 71 | endif |
sewardj | 3602907 | 2011-05-09 21:33:32 +0000 | [diff] [blame] | 72 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 73 | vgdb_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 74 | endif |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 75 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 76 | #---------------------------------------------------------------------------- |
| 77 | # Darwin Mach stuff |
| 78 | #---------------------------------------------------------------------------- |
| 79 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 80 | # Mach RPC interface definitions |
| 81 | # Here are some more .defs files that are not used, but could be in the |
| 82 | # future: |
| 83 | # clock.defs \ |
| 84 | # clock_priv.defs \ |
| 85 | # clock_reply.defs \ |
| 86 | # exc.defs \ |
| 87 | # host_priv.defs \ |
| 88 | # host_security.defs \ |
| 89 | # ledger.defs \ |
| 90 | # lock_set.defs \ |
| 91 | # mach_host.defs \ |
| 92 | # mach_port.defs \ |
| 93 | # notify.defs \ |
| 94 | # processor.defs \ |
| 95 | # processor_set.defs \ |
| 96 | # |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 97 | mach_user_srcs = |
| 98 | mach_server_srcs = |
| 99 | mach_hdrs = |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 100 | mach_defs = |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 101 | if VGCONF_OS_IS_DARWIN |
| 102 | mach_user_srcs += \ |
| 103 | m_mach/mach_vmUser.c \ |
| 104 | m_mach/taskUser.c \ |
| 105 | m_mach/thread_actUser.c \ |
| 106 | m_mach/vm_mapUser.c |
| 107 | mach_server_srcs += \ |
| 108 | m_mach/mach_vmServer.c \ |
| 109 | m_mach/taskServer.c \ |
| 110 | m_mach/thread_actServer.c \ |
| 111 | m_mach/vm_mapServer.c |
| 112 | mach_hdrs += \ |
| 113 | m_mach/mach_vm.h \ |
| 114 | m_mach/task.h \ |
| 115 | m_mach/thread_act.h \ |
| 116 | m_mach/vm_map.h |
| 117 | mach_defs += \ |
| 118 | /usr/include/mach/mach_vm.defs \ |
| 119 | /usr/include/mach/task.defs \ |
| 120 | /usr/include/mach/thread_act.defs \ |
| 121 | /usr/include/mach/vm_map.defs |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 122 | endif |
| 123 | |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 124 | # Be careful w.r.t. parallel builds. See section 27.9 of the automake info |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 125 | # page, "Handling Tools that Produce many Outputs". |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 126 | $(abs_builddir)/m_mach: |
| 127 | mkdir -p $@ |
| 128 | $(mach_user_srcs): $(mach_defs) $(abs_builddir)/m_mach |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 129 | (cd m_mach && mig $(mach_defs)) |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 130 | $(mach_hdrs): $(mach_defs) $(mach_user_srcs) $(abs_builddir)/m_mach |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 131 | (cd m_mach && mig $(mach_defs)) |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 132 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 133 | #---------------------------------------------------------------------------- |
| 134 | # Headers |
| 135 | #---------------------------------------------------------------------------- |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame] | 136 | |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 137 | noinst_HEADERS = \ |
njn | ac1e033 | 2009-05-08 00:39:31 +0000 | [diff] [blame] | 138 | pub_core_aspacehl.h \ |
njn | 2521d32 | 2005-05-08 14:45:13 +0000 | [diff] [blame] | 139 | pub_core_aspacemgr.h \ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 140 | pub_core_basics.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 141 | pub_core_basics_asm.h \ |
| 142 | pub_core_clientstate.h \ |
njn | 93fe3b2 | 2005-12-21 20:22:52 +0000 | [diff] [blame] | 143 | pub_core_clreq.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 144 | pub_core_commandline.h \ |
njn | 03e3ee3 | 2005-09-30 02:17:16 +0000 | [diff] [blame] | 145 | pub_core_coredump.h \ |
njn | 6898086 | 2005-06-18 18:31:26 +0000 | [diff] [blame] | 146 | pub_core_cpuid.h \ |
njn | ea27e46 | 2005-05-31 02:38:09 +0000 | [diff] [blame] | 147 | pub_core_debuginfo.h \ |
njn | 75b65aa | 2005-06-19 19:25:44 +0000 | [diff] [blame] | 148 | pub_core_debugger.h \ |
njn | 2521d32 | 2005-05-08 14:45:13 +0000 | [diff] [blame] | 149 | pub_core_debuglog.h \ |
njn | 44e1368 | 2005-05-10 04:56:56 +0000 | [diff] [blame] | 150 | pub_core_demangle.h \ |
njn | 36b66df | 2005-05-12 05:13:04 +0000 | [diff] [blame] | 151 | pub_core_dispatch.h \ |
njn | a733b5f | 2005-05-12 13:15:38 +0000 | [diff] [blame] | 152 | pub_core_dispatch_asm.h \ |
njn | d2b1711 | 2005-04-19 04:10:25 +0000 | [diff] [blame] | 153 | pub_core_errormgr.h \ |
njn | d01fef7 | 2005-03-25 23:35:48 +0000 | [diff] [blame] | 154 | pub_core_execontext.h \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 155 | pub_core_gdbserver.h \ |
njn | 81c00df | 2005-05-14 21:28:43 +0000 | [diff] [blame] | 156 | pub_core_hashtable.h \ |
sewardj | 17c1104 | 2006-10-15 01:26:40 +0000 | [diff] [blame] | 157 | pub_core_initimg.h \ |
njn | 97405b2 | 2005-06-02 03:39:33 +0000 | [diff] [blame] | 158 | pub_core_libcbase.h \ |
njn | 132bfcc | 2005-06-04 19:16:06 +0000 | [diff] [blame] | 159 | pub_core_libcassert.h \ |
njn | eb8896b | 2005-06-04 20:03:55 +0000 | [diff] [blame] | 160 | pub_core_libcfile.h \ |
njn | 36a20fa | 2005-06-03 03:08:39 +0000 | [diff] [blame] | 161 | pub_core_libcprint.h \ |
njn | f39e9a3 | 2005-06-12 02:43:17 +0000 | [diff] [blame] | 162 | pub_core_libcproc.h \ |
sewardj | 6c591e1 | 2011-04-11 16:17:51 +0000 | [diff] [blame] | 163 | pub_core_libcsetjmp.h \ |
njn | de62cbf | 2005-06-10 22:08:14 +0000 | [diff] [blame] | 164 | pub_core_libcsignal.h \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 165 | pub_core_mach.h \ |
njn | f536bbb | 2005-06-13 04:21:38 +0000 | [diff] [blame] | 166 | pub_core_machine.h \ |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 167 | pub_core_mallocfree.h \ |
njn | 2024234 | 2005-05-16 23:31:24 +0000 | [diff] [blame] | 168 | pub_core_options.h \ |
njn | e1b2b96 | 2005-08-14 22:13:00 +0000 | [diff] [blame] | 169 | pub_core_oset.h \ |
njn | d1af003 | 2005-05-29 17:01:48 +0000 | [diff] [blame] | 170 | pub_core_redir.h \ |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 171 | pub_core_replacemalloc.h\ |
njn | 278b3d6 | 2005-05-30 23:20:51 +0000 | [diff] [blame] | 172 | pub_core_scheduler.h \ |
sewardj | d7a02db | 2008-12-12 08:07:49 +0000 | [diff] [blame] | 173 | pub_core_seqmatch.h \ |
sewardj | 1cf558c | 2005-04-25 01:36:56 +0000 | [diff] [blame] | 174 | pub_core_sigframe.h \ |
njn | 0c24647 | 2005-05-31 01:00:08 +0000 | [diff] [blame] | 175 | pub_core_signals.h \ |
sewardj | 78b7ecf | 2008-12-06 22:07:35 +0000 | [diff] [blame] | 176 | pub_core_sparsewa.h \ |
njn | 945ed2e | 2005-06-24 03:28:30 +0000 | [diff] [blame] | 177 | pub_core_stacks.h \ |
njn | 2521d32 | 2005-05-08 14:45:13 +0000 | [diff] [blame] | 178 | pub_core_stacktrace.h \ |
njn | c7e1071 | 2005-06-24 13:45:56 +0000 | [diff] [blame] | 179 | pub_core_syscall.h \ |
njn | c1b0181 | 2005-06-17 22:19:06 +0000 | [diff] [blame] | 180 | pub_core_syswrap.h \ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 181 | pub_core_threadstate.h \ |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 182 | pub_core_tooliface.h \ |
njn | a7598f6 | 2005-06-18 03:27:58 +0000 | [diff] [blame] | 183 | pub_core_trampoline.h \ |
njn | cf44351 | 2005-05-13 23:14:40 +0000 | [diff] [blame] | 184 | pub_core_translate.h \ |
njn | 8bddf58 | 2005-05-13 23:40:55 +0000 | [diff] [blame] | 185 | pub_core_transtab.h \ |
njn | 2e8f4ef | 2005-05-14 21:44:20 +0000 | [diff] [blame] | 186 | pub_core_transtab_asm.h \ |
njn | 08a2e17 | 2005-06-21 22:47:54 +0000 | [diff] [blame] | 187 | pub_core_ume.h \ |
sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 188 | pub_core_vki.h \ |
sewardj | 4eee476 | 2006-10-14 15:51:32 +0000 | [diff] [blame] | 189 | pub_core_vkiscnums.h \ |
njn | 1a1e95c | 2009-06-03 06:50:06 +0000 | [diff] [blame] | 190 | pub_core_vkiscnums_asm.h\ |
sewardj | 896f6f9 | 2008-08-19 08:38:52 +0000 | [diff] [blame] | 191 | pub_core_wordfm.h \ |
sewardj | d864eb9 | 2007-02-25 11:51:13 +0000 | [diff] [blame] | 192 | pub_core_xarray.h \ |
njn | 91772d1 | 2009-01-21 02:26:56 +0000 | [diff] [blame] | 193 | m_aspacemgr/priv_aspacemgr.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 194 | m_debuginfo/priv_misc.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 195 | m_debuginfo/priv_storage.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 196 | m_debuginfo/priv_tytypes.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 197 | m_debuginfo/priv_readstabs.h \ |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 198 | m_debuginfo/priv_readpdb.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 199 | m_debuginfo/priv_d3basics.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 200 | m_debuginfo/priv_readdwarf.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 201 | m_debuginfo/priv_readdwarf3.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 202 | m_debuginfo/priv_readelf.h \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 203 | m_debuginfo/priv_readmacho.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 204 | m_demangle/ansidecl.h \ |
sewardj | 4f2683a | 2008-10-26 11:53:30 +0000 | [diff] [blame] | 205 | m_demangle/cp-demangle.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 206 | m_demangle/dyn-string.h \ |
| 207 | m_demangle/demangle.h \ |
| 208 | m_demangle/safe-ctype.h \ |
sewardj | 4f2683a | 2008-10-26 11:53:30 +0000 | [diff] [blame] | 209 | m_demangle/vg_libciface.h \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 210 | m_gdbserver/regcache.h \ |
| 211 | m_gdbserver/regdef.h \ |
| 212 | m_gdbserver/server.h \ |
| 213 | m_gdbserver/target.h \ |
| 214 | m_gdbserver/valgrind_low.h \ |
| 215 | m_gdbserver/gdb/signals.h \ |
njn | 63ae69a | 2009-05-19 04:23:49 +0000 | [diff] [blame] | 216 | m_initimg/priv_initimg_pathscan.h \ |
| 217 | m_initimg/simple_huffman.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 218 | m_scheduler/priv_sema.h \ |
bart | 78bfc71 | 2011-12-08 16:14:59 +0000 | [diff] [blame] | 219 | m_scheduler/priv_sched-lock.h \ |
| 220 | m_scheduler/priv_sched-lock-impl.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 221 | m_syswrap/priv_types_n_macros.h \ |
| 222 | m_syswrap/priv_syswrap-generic.h \ |
| 223 | m_syswrap/priv_syswrap-linux.h \ |
sewardj | ce5a566 | 2005-10-06 03:19:49 +0000 | [diff] [blame] | 224 | m_syswrap/priv_syswrap-linux-variants.h \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 225 | m_syswrap/priv_syswrap-darwin.h \ |
sewardj | 297f6b0 | 2006-10-14 22:25:30 +0000 | [diff] [blame] | 226 | m_syswrap/priv_syswrap-main.h \ |
bart | 0ab84fe | 2012-09-09 18:30:17 +0000 | [diff] [blame] | 227 | m_syswrap/priv_syswrap-xen.h \ |
njn | 63ae69a | 2009-05-19 04:23:49 +0000 | [diff] [blame] | 228 | m_ume/priv_ume.h |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 229 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 230 | #---------------------------------------------------------------------------- |
| 231 | # libcoregrind-<platform>.a |
| 232 | #---------------------------------------------------------------------------- |
sewardj | 85a9dca | 2005-07-26 10:42:57 +0000 | [diff] [blame] | 233 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 234 | BUILT_SOURCES = $(mach_user_srcs) |
| 235 | CLEANFILES = $(mach_user_srcs) $(mach_server_srcs) $(mach_hdrs) |
| 236 | |
| 237 | pkglib_LIBRARIES = libcoregrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a |
| 238 | if VGCONF_HAVE_PLATFORM_SEC |
| 239 | pkglib_LIBRARIES += libcoregrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a |
| 240 | endif |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 241 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 242 | COREGRIND_SOURCES_COMMON = \ |
florian | 7862701 | 2012-10-07 19:47:04 +0000 | [diff] [blame] | 243 | m_cache.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 244 | m_commandline.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 245 | m_clientstate.c \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 246 | m_cpuid.S \ |
njn | 75b65aa | 2005-06-19 19:25:44 +0000 | [diff] [blame] | 247 | m_debugger.c \ |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 248 | m_debuglog.c \ |
sewardj | 267100d | 2005-04-24 12:33:12 +0000 | [diff] [blame] | 249 | m_errormgr.c \ |
| 250 | m_execontext.c \ |
philippe | 6643e96 | 2012-01-17 21:16:30 +0000 | [diff] [blame] | 251 | m_poolalloc.c \ |
njn | 81c00df | 2005-05-14 21:28:43 +0000 | [diff] [blame] | 252 | m_hashtable.c \ |
njn | 97405b2 | 2005-06-02 03:39:33 +0000 | [diff] [blame] | 253 | m_libcbase.c \ |
njn | 132bfcc | 2005-06-04 19:16:06 +0000 | [diff] [blame] | 254 | m_libcassert.c \ |
njn | eb8896b | 2005-06-04 20:03:55 +0000 | [diff] [blame] | 255 | m_libcfile.c \ |
njn | 36a20fa | 2005-06-03 03:08:39 +0000 | [diff] [blame] | 256 | m_libcprint.c \ |
njn | f39e9a3 | 2005-06-12 02:43:17 +0000 | [diff] [blame] | 257 | m_libcproc.c \ |
sewardj | 6c591e1 | 2011-04-11 16:17:51 +0000 | [diff] [blame] | 258 | m_libcsetjmp.c \ |
njn | de62cbf | 2005-06-10 22:08:14 +0000 | [diff] [blame] | 259 | m_libcsignal.c \ |
njn | f536bbb | 2005-06-13 04:21:38 +0000 | [diff] [blame] | 260 | m_machine.c \ |
njn | 04e1698 | 2005-05-31 00:23:43 +0000 | [diff] [blame] | 261 | m_main.c \ |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 262 | m_mallocfree.c \ |
njn | 2024234 | 2005-05-16 23:31:24 +0000 | [diff] [blame] | 263 | m_options.c \ |
njn | e1b2b96 | 2005-08-14 22:13:00 +0000 | [diff] [blame] | 264 | m_oset.c \ |
njn | d1af003 | 2005-05-29 17:01:48 +0000 | [diff] [blame] | 265 | m_redir.c \ |
sewardj | d7a02db | 2008-12-12 08:07:49 +0000 | [diff] [blame] | 266 | m_seqmatch.c \ |
njn | 0c24647 | 2005-05-31 01:00:08 +0000 | [diff] [blame] | 267 | m_signals.c \ |
sewardj | 78b7ecf | 2008-12-06 22:07:35 +0000 | [diff] [blame] | 268 | m_sparsewa.c \ |
njn | 945ed2e | 2005-06-24 03:28:30 +0000 | [diff] [blame] | 269 | m_stacks.c \ |
sewardj | 267100d | 2005-04-24 12:33:12 +0000 | [diff] [blame] | 270 | m_stacktrace.c \ |
njn | 9abd608 | 2005-06-17 21:31:45 +0000 | [diff] [blame] | 271 | m_syscall.c \ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 272 | m_threadstate.c \ |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 273 | m_tooliface.c \ |
njn | a7598f6 | 2005-06-18 03:27:58 +0000 | [diff] [blame] | 274 | m_trampoline.S \ |
njn | 3cbfbc1 | 2005-05-13 23:11:40 +0000 | [diff] [blame] | 275 | m_translate.c \ |
njn | 8bddf58 | 2005-05-13 23:40:55 +0000 | [diff] [blame] | 276 | m_transtab.c \ |
sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 277 | m_vki.c \ |
sewardj | 4eee476 | 2006-10-14 15:51:32 +0000 | [diff] [blame] | 278 | m_vkiscnums.c \ |
sewardj | 896f6f9 | 2008-08-19 08:38:52 +0000 | [diff] [blame] | 279 | m_wordfm.c \ |
sewardj | d864eb9 | 2007-02-25 11:51:13 +0000 | [diff] [blame] | 280 | m_xarray.c \ |
njn | ac1e033 | 2009-05-08 00:39:31 +0000 | [diff] [blame] | 281 | m_aspacehl.c \ |
sewardj | 297f6b0 | 2006-10-14 22:25:30 +0000 | [diff] [blame] | 282 | m_aspacemgr/aspacemgr-common.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 283 | m_aspacemgr/aspacemgr-linux.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 284 | m_coredump/coredump-elf.c \ |
| 285 | m_coredump/coredump-macho.c \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 286 | m_debuginfo/misc.c \ |
| 287 | m_debuginfo/d3basics.c \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 288 | m_debuginfo/debuginfo.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 289 | m_debuginfo/readdwarf.c \ |
| 290 | m_debuginfo/readdwarf3.c \ |
| 291 | m_debuginfo/readelf.c \ |
| 292 | m_debuginfo/readmacho.c \ |
| 293 | m_debuginfo/readpdb.c \ |
| 294 | m_debuginfo/readstabs.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 295 | m_debuginfo/storage.c \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 296 | m_debuginfo/tytypes.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 297 | m_demangle/cp-demangle.c \ |
| 298 | m_demangle/cplus-dem.c \ |
| 299 | m_demangle/demangle.c \ |
| 300 | m_demangle/dyn-string.c \ |
| 301 | m_demangle/safe-ctype.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 302 | m_dispatch/dispatch-x86-linux.S \ |
| 303 | m_dispatch/dispatch-amd64-linux.S \ |
| 304 | m_dispatch/dispatch-ppc32-linux.S \ |
| 305 | m_dispatch/dispatch-ppc64-linux.S \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 306 | m_dispatch/dispatch-arm-linux.S \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 307 | m_dispatch/dispatch-s390x-linux.S \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 308 | m_dispatch/dispatch-mips32-linux.S \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 309 | m_dispatch/dispatch-x86-darwin.S \ |
| 310 | m_dispatch/dispatch-amd64-darwin.S \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 311 | m_gdbserver/inferiors.c \ |
| 312 | m_gdbserver/m_gdbserver.c \ |
| 313 | m_gdbserver/regcache.c \ |
| 314 | m_gdbserver/remote-utils.c \ |
| 315 | m_gdbserver/server.c \ |
| 316 | m_gdbserver/signals.c \ |
| 317 | m_gdbserver/target.c \ |
| 318 | m_gdbserver/utils.c \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 319 | m_gdbserver/valgrind-low-x86.c \ |
| 320 | m_gdbserver/valgrind-low-amd64.c \ |
| 321 | m_gdbserver/valgrind-low-arm.c \ |
| 322 | m_gdbserver/valgrind-low-ppc32.c \ |
| 323 | m_gdbserver/valgrind-low-ppc64.c \ |
| 324 | m_gdbserver/valgrind-low-s390x.c \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 325 | m_gdbserver/valgrind-low-mips32.c \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 326 | m_gdbserver/version.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 327 | m_initimg/initimg-linux.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 328 | m_initimg/initimg-darwin.c \ |
| 329 | m_initimg/initimg-pathscan.c \ |
| 330 | m_mach/mach_basics.c \ |
| 331 | m_mach/mach_msg.c \ |
| 332 | m_mach/mach_traps-x86-darwin.S \ |
| 333 | m_mach/mach_traps-amd64-darwin.S \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 334 | m_replacemalloc/replacemalloc_core.c \ |
| 335 | m_scheduler/scheduler.c \ |
| 336 | m_scheduler/sema.c \ |
bart | 78bfc71 | 2011-12-08 16:14:59 +0000 | [diff] [blame] | 337 | m_scheduler/sched-lock.c \ |
| 338 | m_scheduler/sched-lock-generic.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 339 | m_sigframe/sigframe-x86-linux.c \ |
| 340 | m_sigframe/sigframe-amd64-linux.c \ |
| 341 | m_sigframe/sigframe-ppc32-linux.c \ |
| 342 | m_sigframe/sigframe-ppc64-linux.c \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 343 | m_sigframe/sigframe-arm-linux.c \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 344 | m_sigframe/sigframe-s390x-linux.c \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 345 | m_sigframe/sigframe-mips32-linux.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 346 | m_sigframe/sigframe-x86-darwin.c \ |
| 347 | m_sigframe/sigframe-amd64-darwin.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 348 | m_syswrap/syscall-x86-linux.S \ |
| 349 | m_syswrap/syscall-amd64-linux.S \ |
| 350 | m_syswrap/syscall-ppc32-linux.S \ |
| 351 | m_syswrap/syscall-ppc64-linux.S \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 352 | m_syswrap/syscall-arm-linux.S \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 353 | m_syswrap/syscall-s390x-linux.S \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 354 | m_syswrap/syscall-mips32-linux.S \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 355 | m_syswrap/syscall-x86-darwin.S \ |
| 356 | m_syswrap/syscall-amd64-darwin.S \ |
njn | 9f0205a | 2009-05-19 04:55:00 +0000 | [diff] [blame] | 357 | m_syswrap/syswrap-main.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 358 | m_syswrap/syswrap-generic.c \ |
| 359 | m_syswrap/syswrap-linux.c \ |
| 360 | m_syswrap/syswrap-linux-variants.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 361 | m_syswrap/syswrap-darwin.c \ |
| 362 | m_syswrap/syswrap-x86-linux.c \ |
| 363 | m_syswrap/syswrap-amd64-linux.c \ |
| 364 | m_syswrap/syswrap-ppc32-linux.c \ |
| 365 | m_syswrap/syswrap-ppc64-linux.c \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 366 | m_syswrap/syswrap-arm-linux.c \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 367 | m_syswrap/syswrap-s390x-linux.c \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 368 | m_syswrap/syswrap-mips32-linux.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 369 | m_syswrap/syswrap-x86-darwin.c \ |
| 370 | m_syswrap/syswrap-amd64-darwin.c \ |
bart | 51e61da | 2012-10-23 18:03:28 +0000 | [diff] [blame] | 371 | m_syswrap/syswrap-xen.c \ |
njn | 9f0205a | 2009-05-19 04:55:00 +0000 | [diff] [blame] | 372 | m_ume/elf.c \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 373 | m_ume/macho.c \ |
njn | 9f0205a | 2009-05-19 04:55:00 +0000 | [diff] [blame] | 374 | m_ume/main.c \ |
| 375 | m_ume/script.c |
nethercote | b77dee6 | 2004-11-16 17:13:24 +0000 | [diff] [blame] | 376 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 377 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ |
| 378 | $(COREGRIND_SOURCES_COMMON) |
| 379 | nodist_libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ |
| 380 | $(BUILT_SOURCES) |
| 381 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 382 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 383 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ |
bart | 51e61da | 2012-10-23 18:03:28 +0000 | [diff] [blame] | 384 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 385 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CCASFLAGS = \ |
| 386 | $(AM_CCASFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
bart | 78bfc71 | 2011-12-08 16:14:59 +0000 | [diff] [blame] | 387 | if ENABLE_LINUX_TICKET_LOCK_PRIMARY |
| 388 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES += \ |
| 389 | m_scheduler/ticket-lock-linux.c |
| 390 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS += \ |
| 391 | -DENABLE_LINUX_TICKET_LOCK |
| 392 | endif |
| 393 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 394 | if VGCONF_HAVE_PLATFORM_SEC |
| 395 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ |
| 396 | $(COREGRIND_SOURCES_COMMON) |
| 397 | nodist_libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ |
| 398 | $(BUILT_SOURCES) |
| 399 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 400 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 401 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ |
| 402 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 403 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CCASFLAGS = \ |
| 404 | $(AM_CCASFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
bart | 78bfc71 | 2011-12-08 16:14:59 +0000 | [diff] [blame] | 405 | if ENABLE_LINUX_TICKET_LOCK_SECONDARY |
| 406 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES += \ |
| 407 | m_scheduler/ticket-lock-linux.c |
| 408 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS += \ |
| 409 | -DENABLE_LINUX_TICKET_LOCK |
| 410 | endif |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 411 | endif |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 412 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 413 | #---------------------------------------------------------------------------- |
| 414 | # libreplacemalloc_toolpreload-<platform>.a |
| 415 | #---------------------------------------------------------------------------- |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 416 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 417 | pkglib_LIBRARIES += libreplacemalloc_toolpreload-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a |
| 418 | if VGCONF_HAVE_PLATFORM_SEC |
| 419 | pkglib_LIBRARIES += libreplacemalloc_toolpreload-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a |
| 420 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 421 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 422 | libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ |
| 423 | m_replacemalloc/vg_replace_malloc.c |
| 424 | libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 425 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 426 | libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ |
| 427 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) |
| 428 | if VGCONF_HAVE_PLATFORM_SEC |
| 429 | libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ |
| 430 | m_replacemalloc/vg_replace_malloc.c |
| 431 | libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 432 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 433 | libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ |
| 434 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) |
| 435 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 436 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 437 | #---------------------------------------------------------------------------- |
| 438 | # vgpreload_core-<platform>.a |
| 439 | #---------------------------------------------------------------------------- |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 440 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 441 | noinst_PROGRAMS = vgpreload_core-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so |
| 442 | if VGCONF_HAVE_PLATFORM_SEC |
| 443 | noinst_PROGRAMS += vgpreload_core-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so |
| 444 | endif |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 445 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 446 | if VGCONF_OS_IS_DARWIN |
| 447 | noinst_DSYMS = $(noinst_PROGRAMS) |
| 448 | endif |
njn | f6f2ef8 | 2009-06-02 05:27:07 +0000 | [diff] [blame] | 449 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 450 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = vg_preloaded.c |
| 451 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \ |
| 452 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 453 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \ |
| 454 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) |
| 455 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \ |
| 456 | $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 457 | if VGCONF_HAVE_PLATFORM_SEC |
| 458 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = vg_preloaded.c |
| 459 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \ |
| 460 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 461 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \ |
| 462 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) |
| 463 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \ |
| 464 | $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 465 | endif |
njn | f6f2ef8 | 2009-06-02 05:27:07 +0000 | [diff] [blame] | 466 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 467 | #---------------------------------------------------------------------------- |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 468 | # gdbserver xml target descriptions |
| 469 | #---------------------------------------------------------------------------- |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 470 | |
sewardj | a5d978e | 2011-06-27 23:31:07 +0000 | [diff] [blame] | 471 | GDBSERVER_XML_FILES = \ |
| 472 | m_gdbserver/32bit-core-valgrind-s1.xml \ |
| 473 | m_gdbserver/32bit-core-valgrind-s2.xml \ |
| 474 | m_gdbserver/32bit-core.xml \ |
| 475 | m_gdbserver/32bit-linux-valgrind-s1.xml \ |
| 476 | m_gdbserver/32bit-linux-valgrind-s2.xml \ |
| 477 | m_gdbserver/32bit-linux.xml \ |
| 478 | m_gdbserver/32bit-sse-valgrind-s1.xml \ |
| 479 | m_gdbserver/32bit-sse-valgrind-s2.xml \ |
| 480 | m_gdbserver/32bit-sse.xml \ |
philippe | 419d5f2 | 2012-05-24 21:33:17 +0000 | [diff] [blame] | 481 | m_gdbserver/64bit-avx-valgrind-s2.xml \ |
| 482 | m_gdbserver/64bit-avx-valgrind-s1.xml \ |
| 483 | m_gdbserver/64bit-avx.xml \ |
sewardj | a5d978e | 2011-06-27 23:31:07 +0000 | [diff] [blame] | 484 | m_gdbserver/64bit-core-valgrind-s1.xml \ |
| 485 | m_gdbserver/64bit-core-valgrind-s2.xml \ |
| 486 | m_gdbserver/64bit-core.xml \ |
| 487 | m_gdbserver/64bit-linux-valgrind-s1.xml \ |
| 488 | m_gdbserver/64bit-linux-valgrind-s2.xml \ |
| 489 | m_gdbserver/64bit-linux.xml \ |
| 490 | m_gdbserver/64bit-sse-valgrind-s1.xml \ |
| 491 | m_gdbserver/64bit-sse-valgrind-s2.xml \ |
| 492 | m_gdbserver/64bit-sse.xml \ |
philippe | 419d5f2 | 2012-05-24 21:33:17 +0000 | [diff] [blame] | 493 | m_gdbserver/amd64-avx-coresse-valgrind.xml \ |
| 494 | m_gdbserver/amd64-avx-coresse.xml \ |
| 495 | m_gdbserver/amd64-avx-linux-valgrind.xml \ |
| 496 | m_gdbserver/amd64-avx-linux.xml \ |
sewardj | a5d978e | 2011-06-27 23:31:07 +0000 | [diff] [blame] | 497 | m_gdbserver/amd64-coresse-valgrind.xml \ |
| 498 | m_gdbserver/amd64-linux-valgrind.xml \ |
| 499 | m_gdbserver/arm-core-valgrind-s1.xml \ |
| 500 | m_gdbserver/arm-core-valgrind-s2.xml \ |
| 501 | m_gdbserver/arm-core.xml \ |
| 502 | m_gdbserver/arm-vfpv3-valgrind-s1.xml \ |
| 503 | m_gdbserver/arm-vfpv3-valgrind-s2.xml \ |
| 504 | m_gdbserver/arm-vfpv3.xml \ |
| 505 | m_gdbserver/arm-with-vfpv3-valgrind.xml \ |
| 506 | m_gdbserver/arm-with-vfpv3.xml \ |
| 507 | m_gdbserver/i386-coresse-valgrind.xml \ |
| 508 | m_gdbserver/i386-linux-valgrind.xml \ |
| 509 | m_gdbserver/power64-core-valgrind-s1.xml \ |
| 510 | m_gdbserver/power64-core-valgrind-s2.xml \ |
| 511 | m_gdbserver/power64-core.xml \ |
| 512 | m_gdbserver/power64-linux-valgrind-s1.xml \ |
| 513 | m_gdbserver/power64-linux-valgrind-s2.xml \ |
| 514 | m_gdbserver/power64-linux.xml \ |
| 515 | m_gdbserver/power-altivec-valgrind-s1.xml \ |
| 516 | m_gdbserver/power-altivec-valgrind-s2.xml \ |
| 517 | m_gdbserver/power-altivec.xml \ |
philippe | b7a0e59 | 2012-05-25 23:22:39 +0000 | [diff] [blame] | 518 | m_gdbserver/power-core-valgrind-s1.xml \ |
| 519 | m_gdbserver/power-core-valgrind-s2.xml \ |
sewardj | a5d978e | 2011-06-27 23:31:07 +0000 | [diff] [blame] | 520 | m_gdbserver/power-core.xml \ |
| 521 | m_gdbserver/power-fpu-valgrind-s1.xml \ |
| 522 | m_gdbserver/power-fpu-valgrind-s2.xml \ |
| 523 | m_gdbserver/power-fpu.xml \ |
| 524 | m_gdbserver/power-linux-valgrind-s1.xml \ |
| 525 | m_gdbserver/power-linux-valgrind-s2.xml \ |
| 526 | m_gdbserver/power-linux.xml \ |
| 527 | m_gdbserver/powerpc-altivec32l-valgrind.xml \ |
| 528 | m_gdbserver/powerpc-altivec32l.xml \ |
| 529 | m_gdbserver/powerpc-altivec64l-valgrind.xml \ |
florian | e2b8aa4 | 2012-03-13 02:13:50 +0000 | [diff] [blame] | 530 | m_gdbserver/powerpc-altivec64l.xml \ |
| 531 | m_gdbserver/s390-acr-valgrind-s1.xml \ |
| 532 | m_gdbserver/s390-acr-valgrind-s2.xml \ |
| 533 | m_gdbserver/s390-acr.xml \ |
| 534 | m_gdbserver/s390-fpr-valgrind-s1.xml \ |
| 535 | m_gdbserver/s390-fpr-valgrind-s2.xml \ |
| 536 | m_gdbserver/s390-fpr.xml \ |
| 537 | m_gdbserver/s390x-core64-valgrind-s1.xml \ |
| 538 | m_gdbserver/s390x-core64-valgrind-s2.xml \ |
| 539 | m_gdbserver/s390x-core64.xml \ |
| 540 | m_gdbserver/s390x-generic-valgrind.xml \ |
| 541 | m_gdbserver/s390x-generic.xml \ |
| 542 | m_gdbserver/s390x-linux64-valgrind-s1.xml \ |
| 543 | m_gdbserver/s390x-linux64-valgrind-s2.xml \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 544 | m_gdbserver/s390x-linux64.xml \ |
| 545 | m_gdbserver/mips-cp0-valgrind-s1.xml \ |
| 546 | m_gdbserver/mips-cp0-valgrind-s2.xml \ |
| 547 | m_gdbserver/mips-cp0.xml \ |
| 548 | m_gdbserver/mips-cpu-valgrind-s1.xml \ |
| 549 | m_gdbserver/mips-cpu-valgrind-s2.xml \ |
| 550 | m_gdbserver/mips-cpu.xml \ |
| 551 | m_gdbserver/mips-linux.xml \ |
| 552 | m_gdbserver/mips-linux-valgrind.xml \ |
| 553 | m_gdbserver/mips-fpu-valgrind-s1.xml \ |
| 554 | m_gdbserver/mips-fpu-valgrind-s2.xml \ |
| 555 | m_gdbserver/mips-fpu.xml |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 556 | |
sewardj | a5d978e | 2011-06-27 23:31:07 +0000 | [diff] [blame] | 557 | # so as to make sure these get copied into the install tree |
tom | d5f4826 | 2012-02-21 15:53:35 +0000 | [diff] [blame] | 558 | vglibdir = $(pkglibdir) |
| 559 | vglib_DATA = $(GDBSERVER_XML_FILES) |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 560 | |
sewardj | a5d978e | 2011-06-27 23:31:07 +0000 | [diff] [blame] | 561 | # so as to make sure these get copied into the tarball |
| 562 | EXTRA_DIST += $(GDBSERVER_XML_FILES) |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 563 | |
| 564 | #---------------------------------------------------------------------------- |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 565 | # General stuff |
| 566 | #---------------------------------------------------------------------------- |
njn | e7494bd | 2009-06-02 04:58:03 +0000 | [diff] [blame] | 567 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 568 | all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 569 | mkdir -p $(inplacedir); \ |
philippe | 5528e5e | 2012-02-24 08:33:56 +0000 | [diff] [blame] | 570 | for f in $(vglib_DATA); do \ |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 571 | rm -f $(inplacedir)/$$f; \ |
| 572 | ln -f -s ../$(subdir)/$$f $(inplacedir); \ |
| 573 | done |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 574 | |
| 575 | clean-local: clean-noinst_DSYMS |
sewardj | 85a9dca | 2005-07-26 10:42:57 +0000 | [diff] [blame] | 576 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 577 | install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS |
njn | 3e65340 | 2009-02-06 07:12:57 +0000 | [diff] [blame] | 578 | |
sewardj | 08f5a27 | 2011-04-06 11:17:16 +0000 | [diff] [blame] | 579 | #---------------------------------------------------------------------------- |
| 580 | # Darwin linker kludges |
| 581 | #---------------------------------------------------------------------------- |
| 582 | |
| 583 | if VGCONF_OS_IS_DARWIN |
| 584 | |
| 585 | BUILT_SOURCES += fixup_macho_loadcmds |
| 586 | fixup_macho_loadcmds: fixup_macho_loadcmds.c |
| 587 | $(CC) -g -Wall -o fixup_macho_loadcmds fixup_macho_loadcmds.c |
| 588 | |
| 589 | CLEANFILES += fixup_macho_loadcmds |
| 590 | |
| 591 | endif |
| 592 | |
| 593 | EXTRA_DIST += fixup_macho_loadcmds.c |