1 2 # Be very careful when renaming any files, targets, whatever, in this 3 # Makefile. Various parts of the system rely on these names having 4 # particular forms. 5 6 include $(top_srcdir)/Makefile.all.am 7 8 #---------------------------------------------------------------------------- 9 # Basics, flags 10 #---------------------------------------------------------------------------- 11 12 AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ += \ 13 -I$(top_srcdir)/coregrind \ 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@ += \ 18 -I$(top_srcdir)/coregrind \ 19 -DVG_LIBDIR="\"$(pkglibdir)"\" \ 20 -DVG_PLATFORM="\"@VGCONF_ARCH_SEC@-@VGCONF_OS@\"" 21 endif 22 23 24 EXTRA_DIST = \ 25 m_debuginfo/UNUSED_STABS.txt \ 26 m_debuginfo/README.txt \ 27 m_gdbserver/README_DEVELOPERS 28 29 #---------------------------------------------------------------------------- 30 # The launcher. Built for the primary target only. 31 #---------------------------------------------------------------------------- 32 33 bin_PROGRAMS = \ 34 valgrind \ 35 vgdb 36 37 if VGCONF_OS_IS_LINUX 38 valgrind_SOURCES = \ 39 launcher-linux.c \ 40 m_debuglog.c 41 endif 42 if VGCONF_OS_IS_DARWIN 43 valgrind_SOURCES = \ 44 launcher-darwin.c \ 45 m_debuglog.c 46 endif 47 48 valgrind_CPPFLAGS = $(AM_CPPFLAGS_PRI) 49 valgrind_CFLAGS = $(AM_CFLAGS_PRI) 50 valgrind_CCASFLAGS = $(AM_CCASFLAGS_PRI) 51 valgrind_LDFLAGS = $(AM_CFLAGS_PRI) 52 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 53 valgrind_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 54 endif 55 # On Android we must ask for non-executable stack, not sure why. 56 if VGCONF_PLATVARIANT_IS_ANDROID 57 valgrind_CFLAGS += -static 58 valgrind_LDFLAGS += -Wl,-z,noexecstack 59 endif 60 61 vgdb_SOURCES = vgdb.c 62 vgdb_CPPFLAGS = $(AM_CPPFLAGS_PRI) 63 vgdb_CFLAGS = $(AM_CFLAGS_PRI) 64 vgdb_CCASFLAGS = $(AM_CCASFLAGS_PRI) 65 vgdb_LDFLAGS = $(AM_CFLAGS_PRI) 66 if VGCONF_PLATVARIANT_IS_ANDROID 67 vgdb_CFLAGS += -static 68 endif 69 if !VGCONF_PLATVARIANT_IS_ANDROID 70 vgdb_LDADD = -lpthread 71 endif 72 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN 73 vgdb_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress 74 endif 75 76 #---------------------------------------------------------------------------- 77 # Darwin Mach stuff 78 #---------------------------------------------------------------------------- 79 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 # 97 mach_user_srcs = 98 mach_server_srcs = 99 mach_hdrs = 100 mach_defs = 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 122 endif 123 124 # Be careful w.r.t. parallel builds. See section 27.9 of the automake info 125 # page, "Handling Tools that Produce many Outputs". 126 $(abs_builddir)/m_mach: 127 mkdir -p $@ 128 $(mach_user_srcs): $(mach_defs) $(abs_builddir)/m_mach 129 (cd m_mach && mig $(mach_defs)) 130 $(mach_hdrs): $(mach_defs) $(mach_user_srcs) $(abs_builddir)/m_mach 131 (cd m_mach && mig $(mach_defs)) 132 133 #---------------------------------------------------------------------------- 134 # Headers 135 #---------------------------------------------------------------------------- 136 137 noinst_HEADERS = \ 138 pub_core_aspacehl.h \ 139 pub_core_aspacemgr.h \ 140 pub_core_basics.h \ 141 pub_core_basics_asm.h \ 142 pub_core_clientstate.h \ 143 pub_core_clreq.h \ 144 pub_core_commandline.h \ 145 pub_core_coredump.h \ 146 pub_core_cpuid.h \ 147 pub_core_debuginfo.h \ 148 pub_core_debugger.h \ 149 pub_core_debuglog.h \ 150 pub_core_demangle.h \ 151 pub_core_dispatch.h \ 152 pub_core_dispatch_asm.h \ 153 pub_core_errormgr.h \ 154 pub_core_execontext.h \ 155 pub_core_gdbserver.h \ 156 pub_core_hashtable.h \ 157 pub_core_initimg.h \ 158 pub_core_libcbase.h \ 159 pub_core_libcassert.h \ 160 pub_core_libcfile.h \ 161 pub_core_libcprint.h \ 162 pub_core_libcproc.h \ 163 pub_core_libcsetjmp.h \ 164 pub_core_libcsignal.h \ 165 pub_core_mach.h \ 166 pub_core_machine.h \ 167 pub_core_mallocfree.h \ 168 pub_core_options.h \ 169 pub_core_oset.h \ 170 pub_core_redir.h \ 171 pub_core_replacemalloc.h\ 172 pub_core_scheduler.h \ 173 pub_core_seqmatch.h \ 174 pub_core_sigframe.h \ 175 pub_core_signals.h \ 176 pub_core_sparsewa.h \ 177 pub_core_stacks.h \ 178 pub_core_stacktrace.h \ 179 pub_core_syscall.h \ 180 pub_core_syswrap.h \ 181 pub_core_threadstate.h \ 182 pub_core_tooliface.h \ 183 pub_core_trampoline.h \ 184 pub_core_translate.h \ 185 pub_core_transtab.h \ 186 pub_core_transtab_asm.h \ 187 pub_core_ume.h \ 188 pub_core_vki.h \ 189 pub_core_vkiscnums.h \ 190 pub_core_vkiscnums_asm.h\ 191 pub_core_wordfm.h \ 192 pub_core_xarray.h \ 193 m_aspacemgr/priv_aspacemgr.h \ 194 m_debuginfo/priv_misc.h \ 195 m_debuginfo/priv_storage.h \ 196 m_debuginfo/priv_tytypes.h \ 197 m_debuginfo/priv_readstabs.h \ 198 m_debuginfo/priv_readpdb.h \ 199 m_debuginfo/priv_d3basics.h \ 200 m_debuginfo/priv_readdwarf.h \ 201 m_debuginfo/priv_readdwarf3.h \ 202 m_debuginfo/priv_readelf.h \ 203 m_debuginfo/priv_readmacho.h \ 204 m_demangle/ansidecl.h \ 205 m_demangle/cp-demangle.h \ 206 m_demangle/dyn-string.h \ 207 m_demangle/demangle.h \ 208 m_demangle/safe-ctype.h \ 209 m_demangle/vg_libciface.h \ 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 \ 216 m_initimg/priv_initimg_pathscan.h \ 217 m_initimg/simple_huffman.c \ 218 m_scheduler/priv_sema.h \ 219 m_scheduler/priv_sched-lock.h \ 220 m_scheduler/priv_sched-lock-impl.h \ 221 m_syswrap/priv_types_n_macros.h \ 222 m_syswrap/priv_syswrap-generic.h \ 223 m_syswrap/priv_syswrap-linux.h \ 224 m_syswrap/priv_syswrap-linux-variants.h \ 225 m_syswrap/priv_syswrap-darwin.h \ 226 m_syswrap/priv_syswrap-main.h \ 227 m_ume/priv_ume.h 228 229 #---------------------------------------------------------------------------- 230 # libcoregrind-<platform>.a 231 #---------------------------------------------------------------------------- 232 233 BUILT_SOURCES = $(mach_user_srcs) 234 CLEANFILES = $(mach_user_srcs) $(mach_server_srcs) $(mach_hdrs) 235 236 pkglib_LIBRARIES = libcoregrind-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a 237 if VGCONF_HAVE_PLATFORM_SEC 238 pkglib_LIBRARIES += libcoregrind-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a 239 endif 240 241 COREGRIND_SOURCES_COMMON = \ 242 m_commandline.c \ 243 m_clientstate.c \ 244 m_cpuid.S \ 245 m_debugger.c \ 246 m_debuglog.c \ 247 m_errormgr.c \ 248 m_execontext.c \ 249 m_poolalloc.c \ 250 m_hashtable.c \ 251 m_libcbase.c \ 252 m_libcassert.c \ 253 m_libcfile.c \ 254 m_libcprint.c \ 255 m_libcproc.c \ 256 m_libcsetjmp.c \ 257 m_libcsignal.c \ 258 m_machine.c \ 259 m_main.c \ 260 m_mallocfree.c \ 261 m_options.c \ 262 m_oset.c \ 263 m_redir.c \ 264 m_seqmatch.c \ 265 m_signals.c \ 266 m_sparsewa.c \ 267 m_stacks.c \ 268 m_stacktrace.c \ 269 m_syscall.c \ 270 m_threadstate.c \ 271 m_tooliface.c \ 272 m_trampoline.S \ 273 m_translate.c \ 274 m_transtab.c \ 275 m_vki.c \ 276 m_vkiscnums.c \ 277 m_wordfm.c \ 278 m_xarray.c \ 279 m_aspacehl.c \ 280 m_aspacemgr/aspacemgr-common.c \ 281 m_aspacemgr/aspacemgr-linux.c \ 282 m_coredump/coredump-elf.c \ 283 m_coredump/coredump-macho.c \ 284 m_debuginfo/misc.c \ 285 m_debuginfo/d3basics.c \ 286 m_debuginfo/debuginfo.c \ 287 m_debuginfo/readdwarf.c \ 288 m_debuginfo/readdwarf3.c \ 289 m_debuginfo/readelf.c \ 290 m_debuginfo/readmacho.c \ 291 m_debuginfo/readpdb.c \ 292 m_debuginfo/readstabs.c \ 293 m_debuginfo/storage.c \ 294 m_debuginfo/tytypes.c \ 295 m_demangle/cp-demangle.c \ 296 m_demangle/cplus-dem.c \ 297 m_demangle/demangle.c \ 298 m_demangle/dyn-string.c \ 299 m_demangle/safe-ctype.c \ 300 m_dispatch/dispatch-x86-linux.S \ 301 m_dispatch/dispatch-amd64-linux.S \ 302 m_dispatch/dispatch-ppc32-linux.S \ 303 m_dispatch/dispatch-ppc64-linux.S \ 304 m_dispatch/dispatch-arm-linux.S \ 305 m_dispatch/dispatch-s390x-linux.S \ 306 m_dispatch/dispatch-mips32-linux.S \ 307 m_dispatch/dispatch-x86-darwin.S \ 308 m_dispatch/dispatch-amd64-darwin.S \ 309 m_gdbserver/inferiors.c \ 310 m_gdbserver/m_gdbserver.c \ 311 m_gdbserver/regcache.c \ 312 m_gdbserver/remote-utils.c \ 313 m_gdbserver/server.c \ 314 m_gdbserver/signals.c \ 315 m_gdbserver/target.c \ 316 m_gdbserver/utils.c \ 317 m_gdbserver/valgrind-low-x86.c \ 318 m_gdbserver/valgrind-low-amd64.c \ 319 m_gdbserver/valgrind-low-arm.c \ 320 m_gdbserver/valgrind-low-ppc32.c \ 321 m_gdbserver/valgrind-low-ppc64.c \ 322 m_gdbserver/valgrind-low-s390x.c \ 323 m_gdbserver/valgrind-low-mips32.c \ 324 m_gdbserver/version.c \ 325 m_initimg/initimg-linux.c \ 326 m_initimg/initimg-darwin.c \ 327 m_initimg/initimg-pathscan.c \ 328 m_mach/mach_basics.c \ 329 m_mach/mach_msg.c \ 330 m_mach/mach_traps-x86-darwin.S \ 331 m_mach/mach_traps-amd64-darwin.S \ 332 m_replacemalloc/replacemalloc_core.c \ 333 m_scheduler/scheduler.c \ 334 m_scheduler/sema.c \ 335 m_scheduler/sched-lock.c \ 336 m_scheduler/sched-lock-generic.c \ 337 m_sigframe/sigframe-x86-linux.c \ 338 m_sigframe/sigframe-amd64-linux.c \ 339 m_sigframe/sigframe-ppc32-linux.c \ 340 m_sigframe/sigframe-ppc64-linux.c \ 341 m_sigframe/sigframe-arm-linux.c \ 342 m_sigframe/sigframe-s390x-linux.c \ 343 m_sigframe/sigframe-mips32-linux.c \ 344 m_sigframe/sigframe-x86-darwin.c \ 345 m_sigframe/sigframe-amd64-darwin.c \ 346 m_syswrap/syscall-x86-linux.S \ 347 m_syswrap/syscall-amd64-linux.S \ 348 m_syswrap/syscall-ppc32-linux.S \ 349 m_syswrap/syscall-ppc64-linux.S \ 350 m_syswrap/syscall-arm-linux.S \ 351 m_syswrap/syscall-s390x-linux.S \ 352 m_syswrap/syscall-mips32-linux.S \ 353 m_syswrap/syscall-x86-darwin.S \ 354 m_syswrap/syscall-amd64-darwin.S \ 355 m_syswrap/syswrap-main.c \ 356 m_syswrap/syswrap-generic.c \ 357 m_syswrap/syswrap-linux.c \ 358 m_syswrap/syswrap-linux-variants.c \ 359 m_syswrap/syswrap-darwin.c \ 360 m_syswrap/syswrap-x86-linux.c \ 361 m_syswrap/syswrap-amd64-linux.c \ 362 m_syswrap/syswrap-ppc32-linux.c \ 363 m_syswrap/syswrap-ppc64-linux.c \ 364 m_syswrap/syswrap-arm-linux.c \ 365 m_syswrap/syswrap-s390x-linux.c \ 366 m_syswrap/syswrap-mips32-linux.c \ 367 m_syswrap/syswrap-x86-darwin.c \ 368 m_syswrap/syswrap-amd64-darwin.c \ 369 m_ume/elf.c \ 370 m_ume/macho.c \ 371 m_ume/main.c \ 372 m_ume/script.c 373 374 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ 375 $(COREGRIND_SOURCES_COMMON) 376 nodist_libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ 377 $(BUILT_SOURCES) 378 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ 379 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 380 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ 381 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 382 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CCASFLAGS = \ 383 $(AM_CCASFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 384 if ENABLE_LINUX_TICKET_LOCK_PRIMARY 385 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES += \ 386 m_scheduler/ticket-lock-linux.c 387 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS += \ 388 -DENABLE_LINUX_TICKET_LOCK 389 endif 390 391 if VGCONF_HAVE_PLATFORM_SEC 392 libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ 393 $(COREGRIND_SOURCES_COMMON) 394 nodist_libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ 395 $(BUILT_SOURCES) 396 libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ 397 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 398 libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ 399 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 400 libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CCASFLAGS = \ 401 $(AM_CCASFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 402 if ENABLE_LINUX_TICKET_LOCK_SECONDARY 403 libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES += \ 404 m_scheduler/ticket-lock-linux.c 405 libcoregrind_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS += \ 406 -DENABLE_LINUX_TICKET_LOCK 407 endif 408 endif 409 410 #---------------------------------------------------------------------------- 411 # libreplacemalloc_toolpreload-<platform>.a 412 #---------------------------------------------------------------------------- 413 414 pkglib_LIBRARIES += libreplacemalloc_toolpreload-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a 415 if VGCONF_HAVE_PLATFORM_SEC 416 pkglib_LIBRARIES += libreplacemalloc_toolpreload-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a 417 endif 418 419 libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \ 420 m_replacemalloc/vg_replace_malloc.c 421 libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ 422 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 423 libreplacemalloc_toolpreload_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ 424 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) 425 if VGCONF_HAVE_PLATFORM_SEC 426 libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \ 427 m_replacemalloc/vg_replace_malloc.c 428 libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ 429 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 430 libreplacemalloc_toolpreload_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ 431 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) 432 endif 433 434 #---------------------------------------------------------------------------- 435 # vgpreload_core-<platform>.a 436 #---------------------------------------------------------------------------- 437 438 noinst_PROGRAMS = vgpreload_core-@VGCONF_ARCH_PRI@-@VGCONF_OS@.so 439 if VGCONF_HAVE_PLATFORM_SEC 440 noinst_PROGRAMS += vgpreload_core-@VGCONF_ARCH_SEC@-@VGCONF_OS@.so 441 endif 442 443 if VGCONF_OS_IS_DARWIN 444 noinst_DSYMS = $(noinst_PROGRAMS) 445 endif 446 447 vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_SOURCES = vg_preloaded.c 448 vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CPPFLAGS = \ 449 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 450 vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_CFLAGS = \ 451 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(AM_CFLAGS_PIC) 452 vgpreload_core_@VGCONF_ARCH_PRI@_@VGCONF_OS@_so_LDFLAGS = \ 453 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) 454 if VGCONF_HAVE_PLATFORM_SEC 455 vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_SOURCES = vg_preloaded.c 456 vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CPPFLAGS = \ 457 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 458 vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_CFLAGS = \ 459 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(AM_CFLAGS_PIC) 460 vgpreload_core_@VGCONF_ARCH_SEC@_@VGCONF_OS@_so_LDFLAGS = \ 461 $(PRELOAD_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) 462 endif 463 464 #---------------------------------------------------------------------------- 465 # gdbserver xml target descriptions 466 #---------------------------------------------------------------------------- 467 468 GDBSERVER_XML_FILES = \ 469 m_gdbserver/32bit-core-valgrind-s1.xml \ 470 m_gdbserver/32bit-core-valgrind-s2.xml \ 471 m_gdbserver/32bit-core.xml \ 472 m_gdbserver/32bit-linux-valgrind-s1.xml \ 473 m_gdbserver/32bit-linux-valgrind-s2.xml \ 474 m_gdbserver/32bit-linux.xml \ 475 m_gdbserver/32bit-sse-valgrind-s1.xml \ 476 m_gdbserver/32bit-sse-valgrind-s2.xml \ 477 m_gdbserver/32bit-sse.xml \ 478 m_gdbserver/64bit-avx-valgrind-s2.xml \ 479 m_gdbserver/64bit-avx-valgrind-s1.xml \ 480 m_gdbserver/64bit-avx.xml \ 481 m_gdbserver/64bit-core-valgrind-s1.xml \ 482 m_gdbserver/64bit-core-valgrind-s2.xml \ 483 m_gdbserver/64bit-core.xml \ 484 m_gdbserver/64bit-linux-valgrind-s1.xml \ 485 m_gdbserver/64bit-linux-valgrind-s2.xml \ 486 m_gdbserver/64bit-linux.xml \ 487 m_gdbserver/64bit-sse-valgrind-s1.xml \ 488 m_gdbserver/64bit-sse-valgrind-s2.xml \ 489 m_gdbserver/64bit-sse.xml \ 490 m_gdbserver/amd64-avx-coresse-valgrind.xml \ 491 m_gdbserver/amd64-avx-coresse.xml \ 492 m_gdbserver/amd64-avx-linux-valgrind.xml \ 493 m_gdbserver/amd64-avx-linux.xml \ 494 m_gdbserver/amd64-coresse-valgrind.xml \ 495 m_gdbserver/amd64-linux-valgrind.xml \ 496 m_gdbserver/arm-core-valgrind-s1.xml \ 497 m_gdbserver/arm-core-valgrind-s2.xml \ 498 m_gdbserver/arm-core.xml \ 499 m_gdbserver/arm-vfpv3-valgrind-s1.xml \ 500 m_gdbserver/arm-vfpv3-valgrind-s2.xml \ 501 m_gdbserver/arm-vfpv3.xml \ 502 m_gdbserver/arm-with-vfpv3-valgrind.xml \ 503 m_gdbserver/arm-with-vfpv3.xml \ 504 m_gdbserver/i386-coresse-valgrind.xml \ 505 m_gdbserver/i386-linux-valgrind.xml \ 506 m_gdbserver/power64-core-valgrind-s1.xml \ 507 m_gdbserver/power64-core-valgrind-s2.xml \ 508 m_gdbserver/power64-core.xml \ 509 m_gdbserver/power64-linux-valgrind-s1.xml \ 510 m_gdbserver/power64-linux-valgrind-s2.xml \ 511 m_gdbserver/power64-linux.xml \ 512 m_gdbserver/power-altivec-valgrind-s1.xml \ 513 m_gdbserver/power-altivec-valgrind-s2.xml \ 514 m_gdbserver/power-altivec.xml \ 515 m_gdbserver/power-core-valgrind-s1.xml \ 516 m_gdbserver/power-core-valgrind-s2.xml \ 517 m_gdbserver/power-core.xml \ 518 m_gdbserver/power-fpu-valgrind-s1.xml \ 519 m_gdbserver/power-fpu-valgrind-s2.xml \ 520 m_gdbserver/power-fpu.xml \ 521 m_gdbserver/power-linux-valgrind-s1.xml \ 522 m_gdbserver/power-linux-valgrind-s2.xml \ 523 m_gdbserver/power-linux.xml \ 524 m_gdbserver/powerpc-altivec32l-valgrind.xml \ 525 m_gdbserver/powerpc-altivec32l.xml \ 526 m_gdbserver/powerpc-altivec64l-valgrind.xml \ 527 m_gdbserver/powerpc-altivec64l.xml \ 528 m_gdbserver/s390-acr-valgrind-s1.xml \ 529 m_gdbserver/s390-acr-valgrind-s2.xml \ 530 m_gdbserver/s390-acr.xml \ 531 m_gdbserver/s390-fpr-valgrind-s1.xml \ 532 m_gdbserver/s390-fpr-valgrind-s2.xml \ 533 m_gdbserver/s390-fpr.xml \ 534 m_gdbserver/s390x-core64-valgrind-s1.xml \ 535 m_gdbserver/s390x-core64-valgrind-s2.xml \ 536 m_gdbserver/s390x-core64.xml \ 537 m_gdbserver/s390x-generic-valgrind.xml \ 538 m_gdbserver/s390x-generic.xml \ 539 m_gdbserver/s390x-linux64-valgrind-s1.xml \ 540 m_gdbserver/s390x-linux64-valgrind-s2.xml \ 541 m_gdbserver/s390x-linux64.xml \ 542 m_gdbserver/mips-cp0-valgrind-s1.xml \ 543 m_gdbserver/mips-cp0-valgrind-s2.xml \ 544 m_gdbserver/mips-cp0.xml \ 545 m_gdbserver/mips-cpu-valgrind-s1.xml \ 546 m_gdbserver/mips-cpu-valgrind-s2.xml \ 547 m_gdbserver/mips-cpu.xml \ 548 m_gdbserver/mips-linux.xml \ 549 m_gdbserver/mips-linux-valgrind.xml \ 550 m_gdbserver/mips-fpu-valgrind-s1.xml \ 551 m_gdbserver/mips-fpu-valgrind-s2.xml \ 552 m_gdbserver/mips-fpu.xml 553 554 # so as to make sure these get copied into the install tree 555 vglibdir = $(pkglibdir) 556 vglib_DATA = $(GDBSERVER_XML_FILES) 557 558 # so as to make sure these get copied into the tarball 559 EXTRA_DIST += $(GDBSERVER_XML_FILES) 560 561 #---------------------------------------------------------------------------- 562 # General stuff 563 #---------------------------------------------------------------------------- 564 565 all-local: inplace-noinst_PROGRAMS inplace-noinst_DSYMS 566 mkdir -p $(inplacedir); \ 567 for f in $(vglib_DATA); do \ 568 rm -f $(inplacedir)/$$f; \ 569 ln -f -s ../$(subdir)/$$f $(inplacedir); \ 570 done 571 572 clean-local: clean-noinst_DSYMS 573 574 install-exec-local: install-noinst_PROGRAMS install-noinst_DSYMS 575 576 #---------------------------------------------------------------------------- 577 # Darwin linker kludges 578 #---------------------------------------------------------------------------- 579 580 if VGCONF_OS_IS_DARWIN 581 582 BUILT_SOURCES += fixup_macho_loadcmds 583 fixup_macho_loadcmds: fixup_macho_loadcmds.c 584 $(CC) -g -Wall -o fixup_macho_loadcmds fixup_macho_loadcmds.c 585 586 CLEANFILES += fixup_macho_loadcmds 587 588 endif 589 590 EXTRA_DIST += fixup_macho_loadcmds.c 591