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 \ |
| 26 | m_debuginfo/README.txt |
| 27 | |
| 28 | #---------------------------------------------------------------------------- |
| 29 | # The launcher. Built for the primary target only. |
| 30 | #---------------------------------------------------------------------------- |
| 31 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 32 | bin_PROGRAMS = \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 33 | valgrind \ |
| 34 | no_op_client_for_valgrind |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 35 | |
njn | bdf957c | 2009-05-19 04:37:03 +0000 | [diff] [blame] | 36 | if VGCONF_OS_IS_LINUX |
| 37 | valgrind_SOURCES = \ |
| 38 | launcher-linux.c \ |
| 39 | m_debuglog.c |
| 40 | endif |
njn | 7fd6d38 | 2009-01-22 21:56:32 +0000 | [diff] [blame] | 41 | if VGCONF_OS_IS_AIX5 |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame] | 42 | valgrind_SOURCES = \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 43 | launcher-aix5.c \ |
| 44 | m_debuglog.c \ |
| 45 | m_vkiscnums.c |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 46 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 47 | if VGCONF_OS_IS_DARWIN |
| 48 | valgrind_SOURCES = \ |
| 49 | launcher-darwin.c \ |
| 50 | m_debuglog.c |
| 51 | endif |
| 52 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 53 | valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) |
| 54 | valgrind_CFLAGS = $(AM_CFLAGS_PRI) |
| 55 | valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
| 56 | valgrind_LDFLAGS = $(AM_CFLAGS_PRI) |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 57 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 58 | valgrind_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 59 | endif |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 60 | |
| 61 | no_op_client_for_valgrind_SOURCES = no_op_client_for_valgrind.c |
| 62 | no_op_client_for_valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) |
| 63 | no_op_client_for_valgrind_CFLAGS = $(AM_CFLAGS_PRI) |
| 64 | no_op_client_for_valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) |
| 65 | no_op_client_for_valgrind_LDFLAGS = $(AM_CFLAGS_PRI) |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 66 | if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN |
| 67 | no_op_client_for_valgrind_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress |
| 68 | endif |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 69 | |
| 70 | #---------------------------------------------------------------------------- |
| 71 | # Darwin Mach stuff |
| 72 | #---------------------------------------------------------------------------- |
| 73 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 74 | # Mach RPC interface definitions |
| 75 | # Here are some more .defs files that are not used, but could be in the |
| 76 | # future: |
| 77 | # clock.defs \ |
| 78 | # clock_priv.defs \ |
| 79 | # clock_reply.defs \ |
| 80 | # exc.defs \ |
| 81 | # host_priv.defs \ |
| 82 | # host_security.defs \ |
| 83 | # ledger.defs \ |
| 84 | # lock_set.defs \ |
| 85 | # mach_host.defs \ |
| 86 | # mach_port.defs \ |
| 87 | # notify.defs \ |
| 88 | # processor.defs \ |
| 89 | # processor_set.defs \ |
| 90 | # |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 91 | mach_user_srcs = |
| 92 | mach_server_srcs = |
| 93 | mach_hdrs = |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 94 | mach_defs = |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 95 | if VGCONF_OS_IS_DARWIN |
| 96 | mach_user_srcs += \ |
| 97 | m_mach/mach_vmUser.c \ |
| 98 | m_mach/taskUser.c \ |
| 99 | m_mach/thread_actUser.c \ |
| 100 | m_mach/vm_mapUser.c |
| 101 | mach_server_srcs += \ |
| 102 | m_mach/mach_vmServer.c \ |
| 103 | m_mach/taskServer.c \ |
| 104 | m_mach/thread_actServer.c \ |
| 105 | m_mach/vm_mapServer.c |
| 106 | mach_hdrs += \ |
| 107 | m_mach/mach_vm.h \ |
| 108 | m_mach/task.h \ |
| 109 | m_mach/thread_act.h \ |
| 110 | m_mach/vm_map.h |
| 111 | mach_defs += \ |
| 112 | /usr/include/mach/mach_vm.defs \ |
| 113 | /usr/include/mach/task.defs \ |
| 114 | /usr/include/mach/thread_act.defs \ |
| 115 | /usr/include/mach/vm_map.defs |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 116 | endif |
| 117 | |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 118 | # 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] | 119 | # page, "Handling Tools that Produce many Outputs". |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 120 | $(abs_builddir)/m_mach: |
| 121 | mkdir -p $@ |
| 122 | $(mach_user_srcs): $(mach_defs) $(abs_builddir)/m_mach |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 123 | (cd m_mach && mig $(mach_defs)) |
njn | ea2d6fd | 2010-07-01 00:20:20 +0000 | [diff] [blame] | 124 | $(mach_hdrs): $(mach_defs) $(mach_user_srcs) $(abs_builddir)/m_mach |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 125 | (cd m_mach && mig $(mach_defs)) |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 126 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 127 | #---------------------------------------------------------------------------- |
| 128 | # Headers |
| 129 | #---------------------------------------------------------------------------- |
sewardj | 0126214 | 2006-01-04 01:20:28 +0000 | [diff] [blame] | 130 | |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 131 | noinst_HEADERS = \ |
njn | 63ae69a | 2009-05-19 04:23:49 +0000 | [diff] [blame] | 132 | launcher-aix5-bootblock.h \ |
njn | ac1e033 | 2009-05-08 00:39:31 +0000 | [diff] [blame] | 133 | pub_core_aspacehl.h \ |
njn | 2521d32 | 2005-05-08 14:45:13 +0000 | [diff] [blame] | 134 | pub_core_aspacemgr.h \ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 135 | pub_core_basics.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 136 | pub_core_basics_asm.h \ |
| 137 | pub_core_clientstate.h \ |
njn | 93fe3b2 | 2005-12-21 20:22:52 +0000 | [diff] [blame] | 138 | pub_core_clreq.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 139 | pub_core_commandline.h \ |
njn | 03e3ee3 | 2005-09-30 02:17:16 +0000 | [diff] [blame] | 140 | pub_core_coredump.h \ |
njn | 6898086 | 2005-06-18 18:31:26 +0000 | [diff] [blame] | 141 | pub_core_cpuid.h \ |
njn | ea27e46 | 2005-05-31 02:38:09 +0000 | [diff] [blame] | 142 | pub_core_debuginfo.h \ |
njn | 75b65aa | 2005-06-19 19:25:44 +0000 | [diff] [blame] | 143 | pub_core_debugger.h \ |
njn | 2521d32 | 2005-05-08 14:45:13 +0000 | [diff] [blame] | 144 | pub_core_debuglog.h \ |
njn | 44e1368 | 2005-05-10 04:56:56 +0000 | [diff] [blame] | 145 | pub_core_demangle.h \ |
njn | 36b66df | 2005-05-12 05:13:04 +0000 | [diff] [blame] | 146 | pub_core_dispatch.h \ |
njn | a733b5f | 2005-05-12 13:15:38 +0000 | [diff] [blame] | 147 | pub_core_dispatch_asm.h \ |
njn | d2b1711 | 2005-04-19 04:10:25 +0000 | [diff] [blame] | 148 | pub_core_errormgr.h \ |
njn | d01fef7 | 2005-03-25 23:35:48 +0000 | [diff] [blame] | 149 | pub_core_execontext.h \ |
njn | 81c00df | 2005-05-14 21:28:43 +0000 | [diff] [blame] | 150 | pub_core_hashtable.h \ |
sewardj | 17c1104 | 2006-10-15 01:26:40 +0000 | [diff] [blame] | 151 | pub_core_initimg.h \ |
njn | 97405b2 | 2005-06-02 03:39:33 +0000 | [diff] [blame] | 152 | pub_core_libcbase.h \ |
njn | 132bfcc | 2005-06-04 19:16:06 +0000 | [diff] [blame] | 153 | pub_core_libcassert.h \ |
njn | eb8896b | 2005-06-04 20:03:55 +0000 | [diff] [blame] | 154 | pub_core_libcfile.h \ |
njn | 36a20fa | 2005-06-03 03:08:39 +0000 | [diff] [blame] | 155 | pub_core_libcprint.h \ |
njn | f39e9a3 | 2005-06-12 02:43:17 +0000 | [diff] [blame] | 156 | pub_core_libcproc.h \ |
njn | de62cbf | 2005-06-10 22:08:14 +0000 | [diff] [blame] | 157 | pub_core_libcsignal.h \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 158 | pub_core_mach.h \ |
njn | f536bbb | 2005-06-13 04:21:38 +0000 | [diff] [blame] | 159 | pub_core_machine.h \ |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 160 | pub_core_mallocfree.h \ |
njn | 2024234 | 2005-05-16 23:31:24 +0000 | [diff] [blame] | 161 | pub_core_options.h \ |
njn | e1b2b96 | 2005-08-14 22:13:00 +0000 | [diff] [blame] | 162 | pub_core_oset.h \ |
njn | d1af003 | 2005-05-29 17:01:48 +0000 | [diff] [blame] | 163 | pub_core_redir.h \ |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 164 | pub_core_replacemalloc.h\ |
njn | 278b3d6 | 2005-05-30 23:20:51 +0000 | [diff] [blame] | 165 | pub_core_scheduler.h \ |
sewardj | d7a02db | 2008-12-12 08:07:49 +0000 | [diff] [blame] | 166 | pub_core_seqmatch.h \ |
sewardj | 1cf558c | 2005-04-25 01:36:56 +0000 | [diff] [blame] | 167 | pub_core_sigframe.h \ |
njn | 0c24647 | 2005-05-31 01:00:08 +0000 | [diff] [blame] | 168 | pub_core_signals.h \ |
sewardj | 78b7ecf | 2008-12-06 22:07:35 +0000 | [diff] [blame] | 169 | pub_core_sparsewa.h \ |
njn | 945ed2e | 2005-06-24 03:28:30 +0000 | [diff] [blame] | 170 | pub_core_stacks.h \ |
njn | 2521d32 | 2005-05-08 14:45:13 +0000 | [diff] [blame] | 171 | pub_core_stacktrace.h \ |
njn | c7e1071 | 2005-06-24 13:45:56 +0000 | [diff] [blame] | 172 | pub_core_syscall.h \ |
njn | c1b0181 | 2005-06-17 22:19:06 +0000 | [diff] [blame] | 173 | pub_core_syswrap.h \ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 174 | pub_core_threadstate.h \ |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 175 | pub_core_tooliface.h \ |
njn | a7598f6 | 2005-06-18 03:27:58 +0000 | [diff] [blame] | 176 | pub_core_trampoline.h \ |
njn | cf44351 | 2005-05-13 23:14:40 +0000 | [diff] [blame] | 177 | pub_core_translate.h \ |
njn | 8bddf58 | 2005-05-13 23:40:55 +0000 | [diff] [blame] | 178 | pub_core_transtab.h \ |
njn | 2e8f4ef | 2005-05-14 21:44:20 +0000 | [diff] [blame] | 179 | pub_core_transtab_asm.h \ |
njn | 08a2e17 | 2005-06-21 22:47:54 +0000 | [diff] [blame] | 180 | pub_core_ume.h \ |
sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 181 | pub_core_vki.h \ |
sewardj | 4eee476 | 2006-10-14 15:51:32 +0000 | [diff] [blame] | 182 | pub_core_vkiscnums.h \ |
njn | 1a1e95c | 2009-06-03 06:50:06 +0000 | [diff] [blame] | 183 | pub_core_vkiscnums_asm.h\ |
sewardj | 896f6f9 | 2008-08-19 08:38:52 +0000 | [diff] [blame] | 184 | pub_core_wordfm.h \ |
sewardj | d864eb9 | 2007-02-25 11:51:13 +0000 | [diff] [blame] | 185 | pub_core_xarray.h \ |
njn | 91772d1 | 2009-01-21 02:26:56 +0000 | [diff] [blame] | 186 | m_aspacemgr/priv_aspacemgr.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 187 | m_debuginfo/priv_misc.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 188 | m_debuginfo/priv_storage.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 189 | m_debuginfo/priv_tytypes.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 190 | m_debuginfo/priv_readstabs.h \ |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 191 | m_debuginfo/priv_readpdb.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 192 | m_debuginfo/priv_d3basics.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 193 | m_debuginfo/priv_readdwarf.h \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 194 | m_debuginfo/priv_readdwarf3.h \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 195 | m_debuginfo/priv_readelf.h \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 196 | m_debuginfo/priv_readmacho.h \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 197 | m_debuginfo/priv_readxcoff.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 198 | m_demangle/ansidecl.h \ |
sewardj | 4f2683a | 2008-10-26 11:53:30 +0000 | [diff] [blame] | 199 | m_demangle/cp-demangle.h \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 200 | m_demangle/dyn-string.h \ |
| 201 | m_demangle/demangle.h \ |
| 202 | m_demangle/safe-ctype.h \ |
sewardj | 4f2683a | 2008-10-26 11:53:30 +0000 | [diff] [blame] | 203 | m_demangle/vg_libciface.h \ |
njn | 63ae69a | 2009-05-19 04:23:49 +0000 | [diff] [blame] | 204 | m_initimg/priv_initimg_pathscan.h \ |
| 205 | m_initimg/simple_huffman.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 206 | m_scheduler/priv_sema.h \ |
| 207 | m_syswrap/priv_types_n_macros.h \ |
| 208 | m_syswrap/priv_syswrap-generic.h \ |
| 209 | m_syswrap/priv_syswrap-linux.h \ |
sewardj | ce5a566 | 2005-10-06 03:19:49 +0000 | [diff] [blame] | 210 | m_syswrap/priv_syswrap-linux-variants.h \ |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 211 | m_syswrap/priv_syswrap-aix5.h \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 212 | m_syswrap/priv_syswrap-darwin.h \ |
sewardj | 297f6b0 | 2006-10-14 22:25:30 +0000 | [diff] [blame] | 213 | m_syswrap/priv_syswrap-main.h \ |
njn | 63ae69a | 2009-05-19 04:23:49 +0000 | [diff] [blame] | 214 | m_ume/priv_ume.h |
nethercote | 799fb80 | 2004-10-20 18:40:40 +0000 | [diff] [blame] | 215 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 216 | #---------------------------------------------------------------------------- |
| 217 | # libcoregrind-<platform>.a |
| 218 | #---------------------------------------------------------------------------- |
sewardj | 85a9dca | 2005-07-26 10:42:57 +0000 | [diff] [blame] | 219 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 220 | BUILT_SOURCES = $(mach_user_srcs) |
| 221 | CLEANFILES = $(mach_user_srcs) $(mach_server_srcs) $(mach_hdrs) |
| 222 | |
| 223 | pkglib_LIBRARIES = libcoregrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a |
| 224 | if VGCONF_HAVE_PLATFORM_SEC |
| 225 | pkglib_LIBRARIES += libcoregrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a |
| 226 | endif |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 227 | |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 228 | COREGRIND_SOURCES_COMMON = \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 229 | m_commandline.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 230 | m_clientstate.c \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 231 | m_cpuid.S \ |
njn | 75b65aa | 2005-06-19 19:25:44 +0000 | [diff] [blame] | 232 | m_debugger.c \ |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 233 | m_debuglog.c \ |
sewardj | 267100d | 2005-04-24 12:33:12 +0000 | [diff] [blame] | 234 | m_errormgr.c \ |
| 235 | m_execontext.c \ |
njn | 81c00df | 2005-05-14 21:28:43 +0000 | [diff] [blame] | 236 | m_hashtable.c \ |
njn | 97405b2 | 2005-06-02 03:39:33 +0000 | [diff] [blame] | 237 | m_libcbase.c \ |
njn | 132bfcc | 2005-06-04 19:16:06 +0000 | [diff] [blame] | 238 | m_libcassert.c \ |
njn | eb8896b | 2005-06-04 20:03:55 +0000 | [diff] [blame] | 239 | m_libcfile.c \ |
njn | 36a20fa | 2005-06-03 03:08:39 +0000 | [diff] [blame] | 240 | m_libcprint.c \ |
njn | f39e9a3 | 2005-06-12 02:43:17 +0000 | [diff] [blame] | 241 | m_libcproc.c \ |
njn | de62cbf | 2005-06-10 22:08:14 +0000 | [diff] [blame] | 242 | m_libcsignal.c \ |
njn | f536bbb | 2005-06-13 04:21:38 +0000 | [diff] [blame] | 243 | m_machine.c \ |
njn | 04e1698 | 2005-05-31 00:23:43 +0000 | [diff] [blame] | 244 | m_main.c \ |
njn | 717cde5 | 2005-05-10 02:47:21 +0000 | [diff] [blame] | 245 | m_mallocfree.c \ |
njn | 2024234 | 2005-05-16 23:31:24 +0000 | [diff] [blame] | 246 | m_options.c \ |
njn | e1b2b96 | 2005-08-14 22:13:00 +0000 | [diff] [blame] | 247 | m_oset.c \ |
njn | d1af003 | 2005-05-29 17:01:48 +0000 | [diff] [blame] | 248 | m_redir.c \ |
sewardj | d7a02db | 2008-12-12 08:07:49 +0000 | [diff] [blame] | 249 | m_seqmatch.c \ |
njn | 0c24647 | 2005-05-31 01:00:08 +0000 | [diff] [blame] | 250 | m_signals.c \ |
sewardj | 78b7ecf | 2008-12-06 22:07:35 +0000 | [diff] [blame] | 251 | m_sparsewa.c \ |
njn | 945ed2e | 2005-06-24 03:28:30 +0000 | [diff] [blame] | 252 | m_stacks.c \ |
sewardj | 267100d | 2005-04-24 12:33:12 +0000 | [diff] [blame] | 253 | m_stacktrace.c \ |
njn | 9abd608 | 2005-06-17 21:31:45 +0000 | [diff] [blame] | 254 | m_syscall.c \ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 255 | m_threadstate.c \ |
njn | 43b9a8a | 2005-05-10 04:37:01 +0000 | [diff] [blame] | 256 | m_tooliface.c \ |
njn | a7598f6 | 2005-06-18 03:27:58 +0000 | [diff] [blame] | 257 | m_trampoline.S \ |
njn | 3cbfbc1 | 2005-05-13 23:11:40 +0000 | [diff] [blame] | 258 | m_translate.c \ |
njn | 8bddf58 | 2005-05-13 23:40:55 +0000 | [diff] [blame] | 259 | m_transtab.c \ |
sewardj | 4cfea4f | 2006-10-14 19:26:10 +0000 | [diff] [blame] | 260 | m_vki.c \ |
sewardj | 4eee476 | 2006-10-14 15:51:32 +0000 | [diff] [blame] | 261 | m_vkiscnums.c \ |
sewardj | 896f6f9 | 2008-08-19 08:38:52 +0000 | [diff] [blame] | 262 | m_wordfm.c \ |
sewardj | d864eb9 | 2007-02-25 11:51:13 +0000 | [diff] [blame] | 263 | m_xarray.c \ |
njn | ac1e033 | 2009-05-08 00:39:31 +0000 | [diff] [blame] | 264 | m_aspacehl.c \ |
sewardj | 297f6b0 | 2006-10-14 22:25:30 +0000 | [diff] [blame] | 265 | m_aspacemgr/aspacemgr-common.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 266 | m_aspacemgr/aspacemgr-linux.c \ |
| 267 | m_aspacemgr/aspacemgr-aix5.c \ |
| 268 | m_coredump/coredump-elf.c \ |
| 269 | m_coredump/coredump-macho.c \ |
| 270 | m_coredump/coredump-xcoff.c \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 271 | m_debuginfo/misc.c \ |
| 272 | m_debuginfo/d3basics.c \ |
sewardj | eadcd86 | 2006-04-04 15:12:44 +0000 | [diff] [blame] | 273 | m_debuginfo/debuginfo.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 274 | m_debuginfo/readdwarf.c \ |
| 275 | m_debuginfo/readdwarf3.c \ |
| 276 | m_debuginfo/readelf.c \ |
| 277 | m_debuginfo/readmacho.c \ |
| 278 | m_debuginfo/readpdb.c \ |
| 279 | m_debuginfo/readstabs.c \ |
| 280 | m_debuginfo/readxcoff.c \ |
| 281 | m_debuginfo/storage.c \ |
sewardj | b8b79ad | 2008-03-03 01:35:41 +0000 | [diff] [blame] | 282 | m_debuginfo/tytypes.c \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 283 | m_demangle/cp-demangle.c \ |
| 284 | m_demangle/cplus-dem.c \ |
| 285 | m_demangle/demangle.c \ |
| 286 | m_demangle/dyn-string.c \ |
| 287 | m_demangle/safe-ctype.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 288 | m_dispatch/dispatch-x86-linux.S \ |
| 289 | m_dispatch/dispatch-amd64-linux.S \ |
| 290 | m_dispatch/dispatch-ppc32-linux.S \ |
| 291 | m_dispatch/dispatch-ppc64-linux.S \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 292 | m_dispatch/dispatch-arm-linux.S \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 293 | m_dispatch/dispatch-ppc32-aix5.S \ |
| 294 | m_dispatch/dispatch-ppc64-aix5.S \ |
| 295 | m_dispatch/dispatch-x86-darwin.S \ |
| 296 | m_dispatch/dispatch-amd64-darwin.S \ |
| 297 | m_initimg/initimg-linux.c \ |
| 298 | m_initimg/initimg-aix5.c \ |
| 299 | m_initimg/initimg-darwin.c \ |
| 300 | m_initimg/initimg-pathscan.c \ |
| 301 | m_mach/mach_basics.c \ |
| 302 | m_mach/mach_msg.c \ |
| 303 | m_mach/mach_traps-x86-darwin.S \ |
| 304 | m_mach/mach_traps-amd64-darwin.S \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 305 | m_replacemalloc/replacemalloc_core.c \ |
| 306 | m_scheduler/scheduler.c \ |
| 307 | m_scheduler/sema.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 308 | m_sigframe/sigframe-x86-linux.c \ |
| 309 | m_sigframe/sigframe-amd64-linux.c \ |
| 310 | m_sigframe/sigframe-ppc32-linux.c \ |
| 311 | m_sigframe/sigframe-ppc64-linux.c \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 312 | m_sigframe/sigframe-arm-linux.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 313 | m_sigframe/sigframe-ppc32-aix5.c \ |
| 314 | m_sigframe/sigframe-ppc64-aix5.c \ |
| 315 | m_sigframe/sigframe-x86-darwin.c \ |
| 316 | m_sigframe/sigframe-amd64-darwin.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 317 | m_syswrap/syscall-x86-linux.S \ |
| 318 | m_syswrap/syscall-amd64-linux.S \ |
| 319 | m_syswrap/syscall-ppc32-linux.S \ |
| 320 | m_syswrap/syscall-ppc64-linux.S \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 321 | m_syswrap/syscall-arm-linux.S \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 322 | m_syswrap/syscall-ppc32-aix5.S \ |
| 323 | m_syswrap/syscall-ppc64-aix5.S \ |
| 324 | m_syswrap/syscall-x86-darwin.S \ |
| 325 | m_syswrap/syscall-amd64-darwin.S \ |
njn | 9f0205a | 2009-05-19 04:55:00 +0000 | [diff] [blame] | 326 | m_syswrap/syswrap-main.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 327 | m_syswrap/syswrap-generic.c \ |
| 328 | m_syswrap/syswrap-linux.c \ |
| 329 | m_syswrap/syswrap-linux-variants.c \ |
| 330 | m_syswrap/syswrap-aix5.c \ |
| 331 | m_syswrap/syswrap-darwin.c \ |
| 332 | m_syswrap/syswrap-x86-linux.c \ |
| 333 | m_syswrap/syswrap-amd64-linux.c \ |
| 334 | m_syswrap/syswrap-ppc32-linux.c \ |
| 335 | m_syswrap/syswrap-ppc64-linux.c \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 336 | m_syswrap/syswrap-arm-linux.c \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 337 | m_syswrap/syswrap-ppc32-aix5.c \ |
| 338 | m_syswrap/syswrap-ppc64-aix5.c \ |
| 339 | m_syswrap/syswrap-x86-darwin.c \ |
| 340 | m_syswrap/syswrap-amd64-darwin.c \ |
njn | 9f0205a | 2009-05-19 04:55:00 +0000 | [diff] [blame] | 341 | m_ume/elf.c \ |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 342 | m_ume/macho.c \ |
njn | 9f0205a | 2009-05-19 04:55:00 +0000 | [diff] [blame] | 343 | m_ume/main.c \ |
| 344 | m_ume/script.c |
nethercote | b77dee6 | 2004-11-16 17:13:24 +0000 | [diff] [blame] | 345 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 346 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ |
| 347 | $(COREGRIND_SOURCES_COMMON) |
| 348 | nodist_libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ |
| 349 | $(BUILT_SOURCES) |
| 350 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 351 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 352 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ |
| 353 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 354 | libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CCASFLAGS = \ |
| 355 | $(AM_CCASFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 356 | if VGCONF_HAVE_PLATFORM_SEC |
| 357 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ |
| 358 | $(COREGRIND_SOURCES_COMMON) |
| 359 | nodist_libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ |
| 360 | $(BUILT_SOURCES) |
| 361 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 362 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 363 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ |
| 364 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 365 | libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CCASFLAGS = \ |
| 366 | $(AM_CCASFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 367 | endif |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 368 | |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 369 | libcoregrind_ppc32_aix5_a_AR = $(AR) -X32 cru |
sewardj | 1eff82b | 2006-10-17 00:56:43 +0000 | [diff] [blame] | 370 | libcoregrind_ppc64_aix5_a_AR = $(AR) -X64 cru |
| 371 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 372 | #---------------------------------------------------------------------------- |
| 373 | # libreplacemalloc_toolpreload-<platform>.a |
| 374 | #---------------------------------------------------------------------------- |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 375 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 376 | pkglib_LIBRARIES += libreplacemalloc_toolpreload-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a |
| 377 | if VGCONF_HAVE_PLATFORM_SEC |
| 378 | pkglib_LIBRARIES += libreplacemalloc_toolpreload-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a |
| 379 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 380 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 381 | libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ |
| 382 | m_replacemalloc/vg_replace_malloc.c |
| 383 | libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 384 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 385 | libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ |
| 386 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) |
| 387 | if VGCONF_HAVE_PLATFORM_SEC |
| 388 | libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ |
| 389 | m_replacemalloc/vg_replace_malloc.c |
| 390 | libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 391 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 392 | libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ |
| 393 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) |
| 394 | endif |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 395 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 396 | # Special AR for AIX. |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 397 | libreplacemalloc_toolpreload_ppc32_aix5_a_AR = $(AR) -X32 cru |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 398 | libreplacemalloc_toolpreload_ppc64_aix5_a_AR = $(AR) -X64 cru |
| 399 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 400 | #---------------------------------------------------------------------------- |
| 401 | # vgpreload_core-<platform>.a |
| 402 | #---------------------------------------------------------------------------- |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 403 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 404 | noinst_PROGRAMS = vgpreload_core-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so |
| 405 | if VGCONF_HAVE_PLATFORM_SEC |
| 406 | noinst_PROGRAMS += vgpreload_core-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so |
| 407 | endif |
njn | d3ed70c | 2009-06-02 06:54:57 +0000 | [diff] [blame] | 408 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 409 | if VGCONF_OS_IS_DARWIN |
| 410 | noinst_DSYMS = $(noinst_PROGRAMS) |
| 411 | endif |
njn | f6f2ef8 | 2009-06-02 05:27:07 +0000 | [diff] [blame] | 412 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 413 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = vg_preloaded.c |
| 414 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \ |
| 415 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 416 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \ |
| 417 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) |
| 418 | vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \ |
| 419 | $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) |
| 420 | if VGCONF_HAVE_PLATFORM_SEC |
| 421 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = vg_preloaded.c |
| 422 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \ |
| 423 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 424 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \ |
| 425 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) |
| 426 | vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \ |
| 427 | $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) |
| 428 | endif |
njn | f6f2ef8 | 2009-06-02 05:27:07 +0000 | [diff] [blame] | 429 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 430 | #---------------------------------------------------------------------------- |
| 431 | # General stuff |
| 432 | #---------------------------------------------------------------------------- |
njn | e7494bd | 2009-06-02 04:58:03 +0000 | [diff] [blame] | 433 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 434 | all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS |
| 435 | |
| 436 | clean-local: clean-noinst_DSYMS |
sewardj | 85a9dca | 2005-07-26 10:42:57 +0000 | [diff] [blame] | 437 | |
njn | f76d27a | 2009-05-28 01:53:07 +0000 | [diff] [blame] | 438 | install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS |
njn | 3e65340 | 2009-02-06 07:12:57 +0000 | [diff] [blame] | 439 | |