1# Automake input for strace. 2# 3# Copyright (c) 2002-2009 Roland McGrath <roland@redhat.com> 4# Copyright (c) 2006-2016 Dmitry V. Levin <ldv@altlinux.org> 5# Copyright (c) 2008-2015 Mike Frysinger <vapier@gentoo.org> 6# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com> 7# All rights reserved. 8# 9# Redistribution and use in source and binary forms, with or without 10# modification, are permitted provided that the following conditions 11# are met: 12# 1. Redistributions of source code must retain the above copyright 13# notice, this list of conditions and the following disclaimer. 14# 2. Redistributions in binary form must reproduce the above copyright 15# notice, this list of conditions and the following disclaimer in the 16# documentation and/or other materials provided with the distribution. 17# 3. The name of the author may not be used to endorse or promote products 18# derived from this software without specific prior written permission. 19# 20# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 31if HAVE_M32_RUNTIME 32TESTS_M32 = tests-m32 33endif 34if HAVE_MX32_RUNTIME 35TESTS_MX32 = tests-mx32 36endif 37SUBDIRS = tests $(TESTS_M32) $(TESTS_MX32) 38 39bin_PROGRAMS = strace 40man_MANS = strace.1 41bin_SCRIPTS = strace-graph strace-log-merge 42 43OS = linux 44# ARCH is `i386', `m68k', `sparc', etc. 45ARCH = @arch@ 46 47ACLOCAL_AMFLAGS = -I m4 48AM_CFLAGS = $(WARN_CFLAGS) 49AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \ 50 -I$(srcdir)/$(OS)/$(ARCH) \ 51 -I$(builddir)/$(OS) \ 52 -I$(srcdir)/$(OS) \ 53 -I$(builddir) \ 54 -I$(srcdir) 55 56AM_CFLAGS_FOR_BUILD = $(WARN_CFLAGS_FOR_BUILD) 57AM_CPPFLAGS_FOR_BUILD = $(AM_CPPFLAGS) 58 59include xlat/Makemodule.am 60 61strace_CPPFLAGS = $(AM_CPPFLAGS) 62strace_CFLAGS = $(AM_CFLAGS) 63strace_LDFLAGS = 64strace_LDADD = libstrace.a 65noinst_LIBRARIES = libstrace.a 66 67libstrace_a_CPPFLAGS = $(strace_CPPFLAGS) 68libstrace_a_CFLAGS = $(strace_CFLAGS) 69libstrace_a_SOURCES = \ 70 fstatfs.c \ 71 fstatfs64.c \ 72 ipc.c \ 73 socketcall.c \ 74 statfs.c \ 75 statfs64.c \ 76 sync_file_range.c \ 77 sync_file_range2.c \ 78 upeek.c \ 79 upoke.c \ 80 # end of libstrace_a_SOURCES 81 82strace_SOURCES = \ 83 access.c \ 84 affinity.c \ 85 aio.c \ 86 alpha.c \ 87 bjm.c \ 88 block.c \ 89 bpf.c \ 90 btrfs.c \ 91 cacheflush.c \ 92 capability.c \ 93 caps0.h \ 94 caps1.h \ 95 chdir.c \ 96 chmod.c \ 97 clone.c \ 98 copy_file_range.c \ 99 count.c \ 100 defs.h \ 101 desc.c \ 102 dirent.c \ 103 dirent64.c \ 104 dm.c \ 105 empty.h \ 106 epoll.c \ 107 evdev.c \ 108 eventfd.c \ 109 execve.c \ 110 fadvise.c \ 111 fallocate.c \ 112 fanotify.c \ 113 fchownat.c \ 114 fcntl.c \ 115 fetch_seccomp_fprog.c \ 116 fetch_struct_flock.c \ 117 fetch_struct_mmsghdr.c \ 118 fetch_struct_msghdr.c \ 119 fetch_struct_stat.c \ 120 fetch_struct_stat64.c \ 121 fetch_struct_statfs.c \ 122 file_handle.c \ 123 file_ioctl.c \ 124 fs_x_ioctl.c \ 125 flock.c \ 126 flock.h \ 127 futex.c \ 128 gcc_compat.h \ 129 get_robust_list.c \ 130 getcpu.c \ 131 getcwd.c \ 132 getrandom.c \ 133 hdio.c \ 134 hostname.c \ 135 inotify.c \ 136 io.c \ 137 ioctl.c \ 138 ioperm.c \ 139 iopl.c \ 140 ioprio.c \ 141 ipc_defs.h \ 142 ipc_msg.c \ 143 ipc_msgctl.c \ 144 ipc_sem.c \ 145 ipc_shm.c \ 146 ipc_shmctl.c \ 147 kcmp.c \ 148 kernel_types.h \ 149 kexec.c \ 150 keyctl.c \ 151 ldt.c \ 152 link.c \ 153 linux/asm_stat.h \ 154 linux/x32/asm_stat.h \ 155 linux/x86_64/asm_stat.h \ 156 lookup_dcookie.c \ 157 loop.c \ 158 lseek.c \ 159 mem.c \ 160 membarrier.c \ 161 memfd_create.c \ 162 mknod.c \ 163 mmsghdr.c \ 164 mount.c \ 165 mpers_type.h \ 166 mq.c \ 167 msghdr.c \ 168 msghdr.h \ 169 mtd.c \ 170 native_defs.h \ 171 net.c \ 172 netlink.c \ 173 nsig.h \ 174 numa.c \ 175 oldstat.c \ 176 open.c \ 177 or1k_atomic.c \ 178 pathtrace.c \ 179 perf.c \ 180 perf_event_struct.h \ 181 personality.c \ 182 pkeys.c \ 183 poll.c \ 184 prctl.c \ 185 print_dev_t.c \ 186 print_mq_attr.c \ 187 print_msgbuf.c \ 188 print_sg_req_info.c \ 189 print_sigevent.c \ 190 print_statfs.c \ 191 print_struct_stat.c \ 192 print_time.c \ 193 print_timespec.c \ 194 print_timeval.c \ 195 print_timex.c \ 196 printmode.c \ 197 printrusage.c \ 198 printsiginfo.c \ 199 printsiginfo.h \ 200 process.c \ 201 process_vm.c \ 202 ptp.c \ 203 ptrace.h \ 204 qualify.c \ 205 quota.c \ 206 readahead.c \ 207 readlink.c \ 208 reboot.c \ 209 regs.h \ 210 renameat.c \ 211 resource.c \ 212 rtc.c \ 213 sched.c \ 214 scsi.c \ 215 seccomp.c \ 216 seccomp_fprog.h \ 217 sendfile.c \ 218 sg_io_v3.c \ 219 sg_io_v4.c \ 220 sigaltstack.c \ 221 sigevent.h \ 222 signal.c \ 223 signalfd.c \ 224 sigreturn.c \ 225 sock.c \ 226 sockaddr.c \ 227 socketutils.c \ 228 sram_alloc.c \ 229 stat.c \ 230 stat.h \ 231 stat64.c \ 232 statfs.c \ 233 statfs.h \ 234 strace.c \ 235 swapon.c \ 236 syscall.c \ 237 sysctl.c \ 238 sysent.h \ 239 sysinfo.c \ 240 syslog.c \ 241 sysmips.c \ 242 term.c \ 243 time.c \ 244 times.c \ 245 truncate.c \ 246 ubi.c \ 247 uid.c \ 248 uid16.c \ 249 umask.c \ 250 umount.c \ 251 uname.c \ 252 userfaultfd.c \ 253 ustat.c \ 254 util.c \ 255 utime.c \ 256 utimes.c \ 257 v4l2.c \ 258 wait.c \ 259 xattr.c \ 260 xlat.h \ 261 xmalloc.c \ 262 # end of strace_SOURCES 263 264if USE_LIBUNWIND 265strace_SOURCES += unwind.c 266strace_CPPFLAGS += $(libunwind_CPPFLAGS) 267strace_LDFLAGS += $(libunwind_LDFLAGS) 268strace_LDADD += $(libunwind_LIBS) 269endif 270 271@CODE_COVERAGE_RULES@ 272CODE_COVERAGE_BRANCH_COVERAGE = 1 273CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) \ 274 --prefix $(shell cd $(abs_top_srcdir)/.. && pwd || echo .) 275CODE_COVERAGE_IGNORE_PATTERN = '/usr/include/*' 276strace_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS) 277strace_CFLAGS += $(CODE_COVERAGE_CFLAGS) 278strace_LDADD += $(CODE_COVERAGE_LDFLAGS) 279 280# Enable this to get link map generated 281#strace_LDFLAGS += -Wl,-Map=strace.mapfile 282 283EXTRA_DIST = \ 284 $(man_MANS) \ 285 .version \ 286 COPYING \ 287 CREDITS \ 288 ChangeLog \ 289 ChangeLog-CVS \ 290 README-linux-ptrace \ 291 debian/changelog \ 292 debian/compat \ 293 debian/control \ 294 debian/copyright \ 295 debian/rules \ 296 debian/source/format \ 297 debian/strace-udeb.install \ 298 debian/strace.docs \ 299 debian/strace.examples \ 300 debian/strace.install \ 301 debian/strace.manpages \ 302 debian/strace64.install \ 303 debian/strace64.manpages \ 304 debian/watch \ 305 errnoent.sh \ 306 generate_sen.sh \ 307 ioctl_iocdef.c \ 308 ioctlsort.c \ 309 linux/32/ioctls_inc.h \ 310 linux/32/ioctls_inc_align16.h \ 311 linux/32/ioctls_inc_align32.h \ 312 linux/32/ioctls_inc_align64.h \ 313 linux/32/syscallent.h \ 314 linux/64/ioctls_inc.h \ 315 linux/64/syscallent.h \ 316 linux/aarch64/arch_regs.c \ 317 linux/aarch64/arch_regs.h \ 318 linux/aarch64/arch_sigreturn.c \ 319 linux/aarch64/errnoent1.h \ 320 linux/aarch64/get_error.c \ 321 linux/aarch64/get_scno.c \ 322 linux/aarch64/get_syscall_args.c\ 323 linux/aarch64/ioctls_arch0.h \ 324 linux/aarch64/ioctls_arch1.h \ 325 linux/aarch64/ioctls_inc0.h \ 326 linux/aarch64/ioctls_inc1.h \ 327 linux/aarch64/set_error.c \ 328 linux/aarch64/set_scno.c \ 329 linux/aarch64/signalent1.h \ 330 linux/aarch64/syscallent.h \ 331 linux/aarch64/syscallent1.h \ 332 linux/alpha/arch_getrval2.c \ 333 linux/alpha/arch_regs.c \ 334 linux/alpha/arch_regs.h \ 335 linux/alpha/arch_sigreturn.c \ 336 linux/alpha/errnoent.h \ 337 linux/alpha/get_error.c \ 338 linux/alpha/get_scno.c \ 339 linux/alpha/get_syscall_args.c \ 340 linux/alpha/get_syscall_result.c\ 341 linux/alpha/ioctls_arch0.h \ 342 linux/alpha/ioctls_inc0.h \ 343 linux/alpha/set_error.c \ 344 linux/alpha/set_scno.c \ 345 linux/alpha/signalent.h \ 346 linux/alpha/syscallent.h \ 347 linux/alpha/userent.h \ 348 linux/arc/arch_regs.c \ 349 linux/arc/get_error.c \ 350 linux/arc/get_scno.c \ 351 linux/arc/get_syscall_args.c \ 352 linux/arc/ioctls_arch0.h \ 353 linux/arc/ioctls_inc0.h \ 354 linux/arc/set_error.c \ 355 linux/arc/set_scno.c \ 356 linux/arc/syscallent.h \ 357 linux/arch_regs.h \ 358 linux/arch_sigreturn.c \ 359 linux/arm/arch_regs.c \ 360 linux/arm/arch_regs.h \ 361 linux/arm/arch_sigreturn.c \ 362 linux/arm/get_error.c \ 363 linux/arm/get_scno.c \ 364 linux/arm/get_syscall_args.c \ 365 linux/arm/ioctls_arch0.h \ 366 linux/arm/ioctls_inc0.h \ 367 linux/arm/set_error.c \ 368 linux/arm/set_scno.c \ 369 linux/arm/syscallent.h \ 370 linux/arm/userent.h \ 371 linux/avr32/arch_regs.c \ 372 linux/avr32/get_error.c \ 373 linux/avr32/get_scno.c \ 374 linux/avr32/get_syscall_args.c \ 375 linux/avr32/ioctls_arch0.h \ 376 linux/avr32/ioctls_inc0.h \ 377 linux/avr32/set_error.c \ 378 linux/avr32/set_scno.c \ 379 linux/avr32/syscallent.h \ 380 linux/avr32/userent.h \ 381 linux/bfin/arch_regs.c \ 382 linux/bfin/get_error.c \ 383 linux/bfin/get_scno.c \ 384 linux/bfin/get_syscall_args.c \ 385 linux/bfin/get_syscall_result.c \ 386 linux/bfin/ioctls_arch0.h \ 387 linux/bfin/ioctls_inc0.h \ 388 linux/bfin/set_error.c \ 389 linux/bfin/set_scno.c \ 390 linux/bfin/syscallent.h \ 391 linux/bfin/userent.h \ 392 linux/crisv10/arch_regs.c \ 393 linux/crisv10/arch_sigreturn.c \ 394 linux/crisv10/get_error.c \ 395 linux/crisv10/get_scno.c \ 396 linux/crisv10/get_syscall_args.c \ 397 linux/crisv10/get_syscall_result.c \ 398 linux/crisv10/set_error.c \ 399 linux/crisv10/set_scno.c \ 400 linux/crisv10/syscallent.h \ 401 linux/crisv10/userent.h \ 402 linux/crisv32/arch_regs.c \ 403 linux/crisv32/arch_sigreturn.c \ 404 linux/crisv32/get_error.c \ 405 linux/crisv32/get_scno.c \ 406 linux/crisv32/get_syscall_args.c \ 407 linux/crisv32/get_syscall_result.c \ 408 linux/crisv32/set_error.c \ 409 linux/crisv32/set_scno.c \ 410 linux/crisv32/syscallent.h \ 411 linux/crisv32/userent.h \ 412 linux/dummy.h \ 413 linux/errnoent.h \ 414 linux/getregs_old.h \ 415 linux/hppa/arch_regs.c \ 416 linux/hppa/arch_regs.h \ 417 linux/hppa/errnoent.h \ 418 linux/hppa/get_error.c \ 419 linux/hppa/get_scno.c \ 420 linux/hppa/get_syscall_args.c \ 421 linux/hppa/get_syscall_result.c \ 422 linux/hppa/ioctls_arch0.h \ 423 linux/hppa/ioctls_inc0.h \ 424 linux/hppa/set_error.c \ 425 linux/hppa/set_scno.c \ 426 linux/hppa/signalent.h \ 427 linux/hppa/syscallent.h \ 428 linux/i386/arch_regs.c \ 429 linux/i386/arch_regs.h \ 430 linux/i386/arch_sigreturn.c \ 431 linux/i386/get_error.c \ 432 linux/i386/get_scno.c \ 433 linux/i386/get_syscall_args.c \ 434 linux/i386/ioctls_arch0.h \ 435 linux/i386/ioctls_inc0.h \ 436 linux/i386/set_error.c \ 437 linux/i386/set_scno.c \ 438 linux/i386/syscallent.h \ 439 linux/i386/userent.h \ 440 linux/i386/userent0.h \ 441 linux/ia64/arch_getrval2.c \ 442 linux/ia64/arch_regs.c \ 443 linux/ia64/arch_regs.h \ 444 linux/ia64/arch_sigreturn.c \ 445 linux/ia64/get_error.c \ 446 linux/ia64/get_scno.c \ 447 linux/ia64/get_syscall_args.c \ 448 linux/ia64/ioctls_arch0.h \ 449 linux/ia64/ioctls_inc0.h \ 450 linux/ia64/set_error.c \ 451 linux/ia64/set_scno.c \ 452 linux/ia64/syscallent.h \ 453 linux/ia64/userent.h \ 454 linux/inet_diag.h \ 455 linux/m68k/arch_regs.c \ 456 linux/m68k/arch_regs.h \ 457 linux/m68k/arch_sigreturn.c \ 458 linux/m68k/get_error.c \ 459 linux/m68k/get_scno.c \ 460 linux/m68k/get_syscall_args.c \ 461 linux/m68k/ioctls_arch0.h \ 462 linux/m68k/ioctls_inc0.h \ 463 linux/m68k/set_error.c \ 464 linux/m68k/set_scno.c \ 465 linux/m68k/syscallent.h \ 466 linux/m68k/userent.h \ 467 linux/metag/arch_regs.c \ 468 linux/metag/get_error.c \ 469 linux/metag/get_scno.c \ 470 linux/metag/get_syscall_args.c \ 471 linux/metag/ioctls_arch0.h \ 472 linux/metag/ioctls_inc0.h \ 473 linux/metag/set_error.c \ 474 linux/metag/set_scno.c \ 475 linux/metag/syscallent.h \ 476 linux/microblaze/arch_regs.c \ 477 linux/microblaze/arch_sigreturn.c \ 478 linux/microblaze/get_error.c \ 479 linux/microblaze/get_scno.c \ 480 linux/microblaze/get_syscall_args.c \ 481 linux/microblaze/get_syscall_result.c \ 482 linux/microblaze/ioctls_arch0.h \ 483 linux/microblaze/ioctls_inc0.h \ 484 linux/microblaze/set_error.c \ 485 linux/microblaze/set_scno.c \ 486 linux/microblaze/syscallent.h \ 487 linux/microblaze/userent.h \ 488 linux/mips/arch_getrval2.c \ 489 linux/mips/arch_regs.c \ 490 linux/mips/arch_regs.h \ 491 linux/mips/arch_sigreturn.c \ 492 linux/mips/errnoent.h \ 493 linux/mips/genstub.sh \ 494 linux/mips/get_error.c \ 495 linux/mips/get_scno.c \ 496 linux/mips/get_syscall_args.c \ 497 linux/mips/ioctls_arch0.h \ 498 linux/mips/ioctls_inc0.h \ 499 linux/mips/set_error.c \ 500 linux/mips/set_scno.c \ 501 linux/mips/signalent.h \ 502 linux/mips/syscallent-compat.h \ 503 linux/mips/syscallent-n32.h \ 504 linux/mips/syscallent-n64.h \ 505 linux/mips/syscallent-o32.h \ 506 linux/mips/syscallent.h \ 507 linux/mips/userent.h \ 508 linux/mtd-abi.h \ 509 linux/netlink_diag.h \ 510 linux/nios2/arch_regs.c \ 511 linux/nios2/get_error.c \ 512 linux/nios2/get_scno.c \ 513 linux/nios2/get_syscall_args.c \ 514 linux/nios2/ioctls_arch0.h \ 515 linux/nios2/ioctls_inc0.h \ 516 linux/nios2/set_error.c \ 517 linux/nios2/set_scno.c \ 518 linux/nios2/syscallent.h \ 519 linux/or1k/arch_regs.c \ 520 linux/or1k/get_error.c \ 521 linux/or1k/get_scno.c \ 522 linux/or1k/get_syscall_args.c \ 523 linux/or1k/ioctls_arch0.h \ 524 linux/or1k/ioctls_inc0.h \ 525 linux/or1k/set_error.c \ 526 linux/or1k/set_scno.c \ 527 linux/or1k/syscallent.h \ 528 linux/or1k/userent.h \ 529 linux/personality.h \ 530 linux/powerpc/arch_regs.c \ 531 linux/powerpc/arch_regs.h \ 532 linux/powerpc/arch_sigreturn.c \ 533 linux/powerpc/errnoent.h \ 534 linux/powerpc/get_error.c \ 535 linux/powerpc/get_scno.c \ 536 linux/powerpc/get_syscall_args.c \ 537 linux/powerpc/getregs_old.c \ 538 linux/powerpc/getregs_old.h \ 539 linux/powerpc/ioctls_arch0.h \ 540 linux/powerpc/ioctls_inc0.h \ 541 linux/powerpc/set_error.c \ 542 linux/powerpc/set_scno.c \ 543 linux/powerpc/syscallent.h \ 544 linux/powerpc/userent.h \ 545 linux/powerpc64/arch_regs.c \ 546 linux/powerpc64/arch_regs.h \ 547 linux/powerpc64/arch_sigreturn.c \ 548 linux/powerpc64/errnoent.h \ 549 linux/powerpc64/errnoent1.h \ 550 linux/powerpc64/get_error.c \ 551 linux/powerpc64/get_scno.c \ 552 linux/powerpc64/get_syscall_args.c \ 553 linux/powerpc64/getregs_old.c \ 554 linux/powerpc64/getregs_old.h \ 555 linux/powerpc64/ioctls_arch0.h \ 556 linux/powerpc64/ioctls_arch1.h \ 557 linux/powerpc64/ioctls_inc0.h \ 558 linux/powerpc64/ioctls_inc1.h \ 559 linux/powerpc64/set_error.c \ 560 linux/powerpc64/set_scno.c \ 561 linux/powerpc64/signalent1.h \ 562 linux/powerpc64/syscallent.h \ 563 linux/powerpc64/syscallent1.h \ 564 linux/powerpc64/userent.h \ 565 linux/ptp_clock.h \ 566 linux/riscv/arch_regs.c \ 567 linux/riscv/errnoent1.h \ 568 linux/riscv/get_error.c \ 569 linux/riscv/get_scno.c \ 570 linux/riscv/get_syscall_args.c \ 571 linux/riscv/ioctls_arch0.h \ 572 linux/riscv/ioctls_arch1.h \ 573 linux/riscv/ioctls_inc0.h \ 574 linux/riscv/ioctls_inc1.h \ 575 linux/riscv/set_error.c \ 576 linux/riscv/set_scno.c \ 577 linux/riscv/signalent1.h \ 578 linux/riscv/syscallent.h \ 579 linux/riscv/syscallent1.h \ 580 linux/s390/arch_regs.c \ 581 linux/s390/arch_regs.h \ 582 linux/s390/arch_sigreturn.c \ 583 linux/s390/get_error.c \ 584 linux/s390/get_scno.c \ 585 linux/s390/get_syscall_args.c \ 586 linux/s390/ioctls_arch0.h \ 587 linux/s390/ioctls_inc0.h \ 588 linux/s390/set_error.c \ 589 linux/s390/set_scno.c \ 590 linux/s390/syscallent.h \ 591 linux/s390/userent.h \ 592 linux/s390/userent0.h \ 593 linux/s390/userent1.h \ 594 linux/s390x/arch_regs.c \ 595 linux/s390x/arch_regs.h \ 596 linux/s390x/arch_sigreturn.c \ 597 linux/s390x/get_error.c \ 598 linux/s390x/get_scno.c \ 599 linux/s390x/get_syscall_args.c \ 600 linux/s390x/ioctls_arch0.h \ 601 linux/s390x/ioctls_inc0.h \ 602 linux/s390x/set_error.c \ 603 linux/s390x/set_scno.c \ 604 linux/s390x/syscallent.h \ 605 linux/s390x/userent.h \ 606 linux/sh/arch_getrval2.c \ 607 linux/sh/arch_regs.c \ 608 linux/sh/get_error.c \ 609 linux/sh/get_scno.c \ 610 linux/sh/get_syscall_args.c \ 611 linux/sh/get_syscall_result.c \ 612 linux/sh/ioctls_arch0.h \ 613 linux/sh/ioctls_inc0.h \ 614 linux/sh/set_error.c \ 615 linux/sh/set_scno.c \ 616 linux/sh/syscallent.h \ 617 linux/sh/userent.h \ 618 linux/sh/userent0.h \ 619 linux/sh64/arch_regs.c \ 620 linux/sh64/arch_regs.h \ 621 linux/sh64/get_error.c \ 622 linux/sh64/get_scno.c \ 623 linux/sh64/get_syscall_args.c \ 624 linux/sh64/get_syscall_result.c \ 625 linux/sh64/ioctls_arch0.h \ 626 linux/sh64/ioctls_inc0.h \ 627 linux/sh64/set_error.c \ 628 linux/sh64/set_scno.c \ 629 linux/sh64/syscallent.h \ 630 linux/sh64/userent.h \ 631 linux/signalent.h \ 632 linux/sock_diag.h \ 633 linux/sparc/arch_getrval2.c \ 634 linux/sparc/arch_regs.c \ 635 linux/sparc/arch_regs.h \ 636 linux/sparc/arch_sigreturn.c \ 637 linux/sparc/errnoent.h \ 638 linux/sparc/gen.pl \ 639 linux/sparc/get_error.c \ 640 linux/sparc/get_scno.c \ 641 linux/sparc/get_syscall_args.c \ 642 linux/sparc/ioctls_arch0.h \ 643 linux/sparc/ioctls_inc0.h \ 644 linux/sparc/set_error.c \ 645 linux/sparc/set_scno.c \ 646 linux/sparc/signalent.h \ 647 linux/sparc/syscallent.h \ 648 linux/sparc/userent.h \ 649 linux/sparc64/arch_getrval2.c \ 650 linux/sparc64/arch_regs.c \ 651 linux/sparc64/arch_regs.h \ 652 linux/sparc64/arch_sigreturn.c \ 653 linux/sparc64/errnoent.h \ 654 linux/sparc64/errnoent1.h \ 655 linux/sparc64/get_error.c \ 656 linux/sparc64/get_scno.c \ 657 linux/sparc64/get_syscall_args.c\ 658 linux/sparc64/ioctls_arch0.h \ 659 linux/sparc64/ioctls_arch1.h \ 660 linux/sparc64/ioctls_inc0.h \ 661 linux/sparc64/ioctls_inc1.h \ 662 linux/sparc64/set_error.c \ 663 linux/sparc64/set_scno.c \ 664 linux/sparc64/signalent.h \ 665 linux/sparc64/signalent1.h \ 666 linux/sparc64/syscallent.h \ 667 linux/sparc64/syscallent1.h \ 668 linux/sparc64/userent.h \ 669 linux/subcall.h \ 670 linux/syscall.h \ 671 linux/tile/arch_regs.c \ 672 linux/tile/arch_regs.h \ 673 linux/tile/arch_sigreturn.c \ 674 linux/tile/errnoent1.h \ 675 linux/tile/get_error.c \ 676 linux/tile/get_scno.c \ 677 linux/tile/get_syscall_args.c \ 678 linux/tile/ioctls_arch0.h \ 679 linux/tile/ioctls_arch1.h \ 680 linux/tile/ioctls_inc0.h \ 681 linux/tile/ioctls_inc1.h \ 682 linux/tile/set_error.c \ 683 linux/tile/set_scno.c \ 684 linux/tile/signalent1.h \ 685 linux/tile/syscallent.h \ 686 linux/tile/syscallent1.h \ 687 linux/tile/userent.h \ 688 linux/ubi-user.h \ 689 linux/unix_diag.h \ 690 linux/userent.h \ 691 linux/userent0.h \ 692 linux/x32/arch_regs.c \ 693 linux/x32/arch_regs.h \ 694 linux/x32/arch_sigreturn.c \ 695 linux/x32/errnoent1.h \ 696 linux/x32/get_error.c \ 697 linux/x32/get_scno.c \ 698 linux/x32/get_syscall_args.c \ 699 linux/x32/ioctls_arch0.h \ 700 linux/x32/ioctls_arch1.h \ 701 linux/x32/ioctls_inc0.h \ 702 linux/x32/ioctls_inc1.h \ 703 linux/x32/set_error.c \ 704 linux/x32/set_scno.c \ 705 linux/x32/signalent1.h \ 706 linux/x32/syscallent.h \ 707 linux/x32/syscallent1.h \ 708 linux/x32/userent.h \ 709 linux/x86_64/arch_regs.c \ 710 linux/x86_64/arch_regs.h \ 711 linux/x86_64/arch_sigreturn.c \ 712 linux/x86_64/errnoent1.h \ 713 linux/x86_64/errnoent2.h \ 714 linux/x86_64/gentab.pl \ 715 linux/x86_64/get_error.c \ 716 linux/x86_64/get_scno.c \ 717 linux/x86_64/get_syscall_args.c \ 718 linux/x86_64/getregs_old.c \ 719 linux/x86_64/getregs_old.h \ 720 linux/x86_64/ioctls_arch0.h \ 721 linux/x86_64/ioctls_arch1.h \ 722 linux/x86_64/ioctls_arch2.h \ 723 linux/x86_64/ioctls_inc0.h \ 724 linux/x86_64/ioctls_inc1.h \ 725 linux/x86_64/ioctls_inc2.h \ 726 linux/x86_64/set_error.c \ 727 linux/x86_64/set_scno.c \ 728 linux/x86_64/signalent1.h \ 729 linux/x86_64/signalent2.h \ 730 linux/x86_64/syscallent.h \ 731 linux/x86_64/syscallent1.h \ 732 linux/x86_64/syscallent2.h \ 733 linux/x86_64/userent.h \ 734 linux/xtensa/arch_regs.c \ 735 linux/xtensa/get_error.c \ 736 linux/xtensa/get_scno.c \ 737 linux/xtensa/get_syscall_args.c \ 738 linux/xtensa/get_syscall_result.c \ 739 linux/xtensa/ioctls_arch0.h \ 740 linux/xtensa/ioctls_inc0.h \ 741 linux/xtensa/set_error.c \ 742 linux/xtensa/set_scno.c \ 743 linux/xtensa/syscallent.h \ 744 linux/xtensa/userent.h \ 745 maint/ioctls_gen.sh \ 746 maint/ioctls_hex.sh \ 747 maint/ioctls_sym.sh \ 748 maint/print_ioctlent.c \ 749 mpers.awk \ 750 mpers.sh \ 751 mpers_test.sh \ 752 mpers_xlat.h \ 753 scno.head \ 754 signalent.sh \ 755 strace-graph \ 756 strace-log-merge \ 757 strace.spec \ 758 syscallent.sh \ 759 $(XLAT_INPUT_FILES) \ 760 $(XLAT_HEADER_FILES) \ 761 xlat/gen.sh \ 762 xlate.el 763 764.PHONY: check-valgrind-local 765check-valgrind-local: 766 767.PHONY: srpm 768srpm: dist-xz 769 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz 770 771$(srcdir)/.version: 772 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@ 773 774strace_SOURCES_c = \ 775 $(filter %.c,$(strace_SOURCES)) $(filter %.c,$(libstrace_a_SOURCES)) 776 777sys_func.h: $(patsubst %,$(srcdir)/%,$(strace_SOURCES_c)) 778 for f in $^; do \ 779 sed -n 's/^SYS_FUNC(.*/extern &;/p' $$f; \ 780 done | sort -u > $@ 781 782syscallent_names = subcall.h syscallent.h syscallent1.h \ 783 syscallent-n32.h syscallent-n64.h syscallent-o32.h 784syscallent_patterns = $(patsubst %,\%/%,$(syscallent_names)) 785syscallent_files = $(filter $(syscallent_patterns),$(EXTRA_DIST)) 786 787sen.h: $(patsubst %,$(srcdir)/%,$(syscallent_files)) 788 for f in $^; do cat -- $$f; done | \ 789 $(srcdir)/generate_sen.sh > $@ 790 791dist-hook: 792 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version 793 794today = $(shell date +%Y-%m-%d) 795version_regexp = $(subst .,\.,$(VERSION)) 796news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))' 797 798news-check: NEWS 799 $(AM_V_GEN)if head -1 $< | \ 800 grep -x $(news_check_regexp) >/dev/null; then \ 801 :; \ 802 else \ 803 echo >&2 '$<: check failed'; \ 804 exit 1; \ 805 fi 806 807ioctlsort_CC = $(CC_FOR_BUILD) 808ioctlsort_DEFS = $(DEFS) 809ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES) 810ioctlsort_CPPFLAGS = $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) 811ioctlsort_CFLAGS = $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) 812ioctlsort_LDFLAGS = $(AM_LDFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) 813 814ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h) 815ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h)) 816ioctl_redefs_h = $(filter-out ioctl_redefs0.h,$(subst ioctlent,ioctl_redefs,$(ioctlent_h))) 817 818ioctl_redefs%.h: ioctlent%.h ioctlent0.h 819 sort $< > $<-t 820 sort ioctlent0.h | comm -23 $<-t - | \ 821 sed -r -n 's/^\{ "([^"]+)", (0x[[:xdigit:]]+) \},$$/#ifdef \1\n# undef \1\n# define \1 \2\n#endif/p' \ 822 > $@-t 823 rm -f $<-t 824 mv $@-t $@ 825 826ioctlent%.h: ioctlsort% 827 ./$< > $@ 828 829# Need to pick up <linux/ioctl.h> definitions *for host* while compiling 830# ioctlsort *for build*, hence this magic. 831ioctl_iocdef.i: $(srcdir)/ioctl_iocdef.c 832 $(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 833 $(strace_CPPFLAGS) $(CPPFLAGS) $< -o $@ 834 835ioctl_iocdef.h: ioctl_iocdef.i 836 sed -n 's/^DEFINE HOST/#define /p' $< > $@ 837 838ioctlsort%$(BUILD_EXEEXT): ioctlsort%.o 839 $(ioctlsort_CC) $(ioctlsort_CFLAGS) $(ioctlsort_LDFLAGS) $< -o $@ 840 841ioctlsort%.o: ioctls_all%.h ioctl_iocdef.h $(srcdir)/ioctlsort.c 842 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c 843 844ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h 845 cat $^ > $@ 846 847BUILT_SOURCES = $(ioctl_redefs_h) $(ioctlent_h) \ 848 native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h .version 849CLEANFILES = $(ioctl_redefs_h) $(ioctlent_h) $(mpers_preproc_files) \ 850 ioctl_iocdef.h ioctl_iocdef.i \ 851 native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h 852DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h 853 854include scno.am 855 856$(strace_OBJECTS): scno.h 857 858# defines mpers_source_files 859include mpers.am 860srcdir_mpers_source_files = $(patsubst %,$(srcdir)/%,$(mpers_source_files)) 861mpers_preproc_files = $(mpers_source_files:.c=.c.mpers.i) 862 863mpers_NAME = 864mpers_PREFIX = $(mpers_NAME)_ 865mpers_DEFS = $(DEFS) 866mpers_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES) 867mpers_CPPFLAGS = $(strace_CPPFLAGS) $(CPPFLAGS) 868mpers_sh_opts = $(mpers_DEFS) $(mpers_INCLUDES) $(mpers_CPPFLAGS) 869libmpers_CPPFLAGS = $(strace_CPPFLAGS) -DIN_MPERS 870libmpers_CFLAGS = $(strace_CFLAGS) 871 872# mpers targets 873 874mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h 875 for f in $^; do \ 876 CC="$(CC)" CFLAGS="$(mpers_sh_opts) -DMPERS_IS_$(mpers_NAME)" \ 877 CPP="$(CPP)" CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \ 878 $(srcdir)/mpers.sh -$(mpers_NAME) $$f || exit; \ 879 done 880 > $@ 881 882m%_type_defs.h: $(srcdir_mpers_source_files) 883 for f in $^; do \ 884 sed -r -n 's/^#[[:space:]]*include DEF_MPERS_TYPE\(([^)]+)\)/#ifdef MPERS_$(mpers_PREFIX)\1\n# define \1 MPERS_$(mpers_PREFIX)\1\n#endif/p' $$f || exit; \ 885 done > $@-t 886 echo '#undef MPERS_PRINTER_NAME' >> $@-t 887 echo '#define MPERS_PRINTER_NAME(printer_name) printer_name' >> $@-t 888 echo '#include "$(mpers_PREFIX)printer_decls.h"' >> $@-t 889 echo '#include MPERS_$(mpers_PREFIX)IOCTL_MACROS' >> $@-t 890 mv $@-t $@ 891 892m%_funcs.h: $(srcdir_mpers_source_files) 893 for f in $^; do \ 894 sed -r -n 's/^SYS_FUNC\(([^)]+)\)/#undef sys_\1\n#define sys_\1 $(mpers_PREFIX)sys_\1/p' $$f || exit; \ 895 done > $@-t && \ 896 echo '#include "sys_func.h"' >> $@-t 897 mv $@-t $@ 898 899# printers 900 901%.c.mpers.i: $(srcdir)/%.c 902 $(CPP) -P $(mpers_sh_opts) -DIN_MPERS_BOOTSTRAP $< -o $@ 903 904mpers_printer_decl_pattern = ^MPERS_PRINTER_DECL\(([^,)]+),[[:space:]]*([^,)]+),[[:space:]]*([^)]+)\)$$ 905 906printers.h: $(mpers_preproc_files) 907 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t 908 echo 'typedef struct {' >> $@-t 909 for f in $^; do \ 910 sed -r -n 's/$(mpers_printer_decl_pattern)/ \1 (*\2)(\3);\n#define \2 MPERS_PRINTER_NAME(\2)\n/p' $$f \ 911 || exit; \ 912 done >> $@-t 913 echo '} struct_printers;' >> $@-t 914 echo 'extern const struct_printers *printers;' >> $@-t 915 echo '#define MPERS_PRINTER_NAME(printer_name) printers->printer_name' >> $@-t 916 mv $@-t $@ 917 918%_printer_decls.h: $(mpers_preproc_files) 919 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t 920 for f in $^; do \ 921 sed -r -n 's/$(mpers_printer_decl_pattern)/extern \1 $(mpers_PREFIX)\2(\3);/p' $$f \ 922 || exit; \ 923 done >> $@-t 924 mv $@-t $@ 925 926%_printer_defs.h: $(mpers_preproc_files) 927 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t 928 for f in $^; do \ 929 sed -r -n 's/$(mpers_printer_decl_pattern)/.\2 = $(mpers_PREFIX)\2,/p' $$f \ 930 || exit; \ 931 done >> $@-t 932 mv $@-t $@ 933 934native_printer_decls.h native_printer_defs.h: mpers_PREFIX = 935 936if HAVE_M32_MPERS 937 938strace_LDADD += libmpers-m32.a 939noinst_LIBRARIES += libmpers-m32.a 940libmpers_m32_a_SOURCES = $(mpers_source_files) 941libmpers_m32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_m32 -I$(builddir)/mpers-m32 942libmpers_m32_a_CFLAGS = $(libmpers_CFLAGS) 943mpers_m32_targets = mpers-m32.stamp m32_type_defs.h m32_funcs.h m32_printer_decls.h m32_printer_defs.h 944 945BUILT_SOURCES += $(mpers_m32_targets) 946CLEANFILES += $(mpers_m32_targets) 947 948$(mpers_m32_targets): mpers_NAME = m32 949 950endif # HAVE_M32_MPERS 951 952if HAVE_MX32_MPERS 953 954strace_LDADD += libmpers-mx32.a 955noinst_LIBRARIES += libmpers-mx32.a 956libmpers_mx32_a_SOURCES = $(mpers_source_files) 957libmpers_mx32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_mx32 -I$(builddir)/mpers-mx32 958libmpers_mx32_a_CFLAGS = $(libmpers_CFLAGS) 959mpers_mx32_targets = mpers-mx32.stamp mx32_type_defs.h mx32_funcs.h mx32_printer_decls.h mx32_printer_defs.h 960 961BUILT_SOURCES += $(mpers_mx32_targets) 962CLEANFILES += $(mpers_mx32_targets) 963 964$(mpers_mx32_targets): mpers_NAME = mx32 965 966endif # HAVE_MX32_MPERS 967 968clean-local: 969 -rm -rf mpers-m32 mpers-mx32 970 971if MAINTAINER_MODE 972 973gen_changelog_start_date = 2009-07-08 20:00 974$(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ 975 $(srcdir)/.version 976 @rm -f $@.new 977 (cd $(srcdir); \ 978 ./gitlog-to-changelog --append-dot \ 979 --since='$(gen_changelog_start_date)'; \ 980 echo; echo; echo 'See ChangeLog-CVS for older changes.' \ 981 ) > $@.new 982 chmod 444 $@.new 983 mv -f $@.new $@ 984 985$(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \ 986 $(srcdir)/Makefile.in $(srcdir)/.version 987 $(AM_V_GEN) \ 988 ( \ 989 cd $(srcdir); \ 990 sed '/^##/,$$d' CREDITS.in; \ 991 { sed -n '1,/^##>/d; s/ */\t/; s/^./&/p' CREDITS.in; \ 992 git log --pretty=format:'%aN %aE'; \ 993 } | LC_ALL=C sort -u \ 994 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \ 995 ) > $@-t && mv $@-t $@ 996 997export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX 998 999endif 1000