1 # Automake input for strace.
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 # Copyright (c) 2002-2018 The strace developers.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted provided that the following conditions
13 # 1. Redistributions of source code must retain the above copyright
14 # notice, this list of conditions and the following disclaimer.
15 # 2. Redistributions in binary form must reproduce the above copyright
16 # notice, this list of conditions and the following disclaimer in the
17 # documentation and/or other materials provided with the distribution.
18 # 3. The name of the author may not be used to endorse or promote products
19 # derived from this software without specific prior written permission.
21 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 TESTS_MX32 = tests-mx32
38 SUBDIRS = . tests $(TESTS_M32) $(TESTS_MX32)
41 man_MANS = strace.1 strace-log-merge.1
42 bin_SCRIPTS = strace-graph strace-log-merge
45 # ARCH is `i386', `m68k', `sparc', etc.
50 ACLOCAL_AMFLAGS = -I m4
51 AM_CFLAGS = $(WARN_CFLAGS)
52 AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \
53 -I$(srcdir)/$(OS)/$(ARCH) \
59 AM_CFLAGS_FOR_BUILD = $(WARN_CFLAGS_FOR_BUILD)
60 AM_CPPFLAGS_FOR_BUILD = $(AM_CPPFLAGS)
62 include xlat/Makemodule.am
64 strace_CPPFLAGS = $(AM_CPPFLAGS)
65 strace_CFLAGS = $(AM_CFLAGS)
67 strace_LDADD = libstrace.a
68 noinst_LIBRARIES = libstrace.a
70 libstrace_a_CPPFLAGS = $(strace_CPPFLAGS)
71 libstrace_a_CFLAGS = $(strace_CFLAGS)
72 libstrace_a_SOURCES = \
73 fetch_indirect_syscall_args.c \
86 # end of libstrace_a_SOURCES
102 bpf_seccomp_filter.c \
133 fetch_struct_flock.c \
134 fetch_struct_keyctl_kdf_params.c \
135 fetch_struct_mmsghdr.c \
136 fetch_struct_msghdr.c \
137 fetch_struct_stat.c \
138 fetch_struct_stat64.c \
139 fetch_struct_statfs.c \
171 keyctl_kdf_params.h \
173 largefile_wrappers.h \
177 linux/x32/asm_stat.h \
178 linux/x86_64/asm_stat.h \
203 netlink_sock_diag.h \
204 netlink_inet_diag.c \
205 netlink_netfilter.c \
206 netlink_netlink_diag.c \
207 netlink_packet_diag.c \
212 netlink_sock_diag.c \
213 netlink_unix_diag.c \
227 perf_event_struct.h \
238 print_sg_req_info.c \
241 print_struct_stat.c \
309 sysent_shorthand_defs.h \
310 sysent_shorthand_undefs.h \
339 # end of strace_SOURCES
342 strace_SOURCES += unwind.c
343 strace_CPPFLAGS += $(libunwind_CPPFLAGS)
344 strace_LDFLAGS += $(libunwind_LDFLAGS)
345 strace_LDADD += $(libunwind_LIBS)
347 strace_CPPFLAGS += $(libiberty_CPPFLAGS)
348 strace_LDFLAGS += $(libiberty_LDFLAGS)
349 strace_LDADD += $(libiberty_LIBS)
353 @CODE_COVERAGE_RULES@
354 CODE_COVERAGE_BRANCH_COVERAGE = 1
355 CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) \
356 --prefix $(shell cd $(abs_top_srcdir)/.. && pwd || echo .)
357 CODE_COVERAGE_IGNORE_PATTERN = '/usr/include/*'
358 strace_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
359 strace_CFLAGS += $(CODE_COVERAGE_CFLAGS)
360 strace_LDADD += $(CODE_COVERAGE_LIBS)
362 # Enable this to get link map generated
363 #strace_LDFLAGS += -Wl,-Map=strace.mapfile
372 README-linux-ptrace \
378 debian/source/format \
379 debian/strace-udeb.install \
381 debian/strace.examples \
382 debian/strace.install \
383 debian/strace.manpages \
384 debian/strace64.install \
385 debian/strace64.manpages \
390 linux/32/ioctls_inc.h \
391 linux/32/ioctls_inc_align16.h \
392 linux/32/ioctls_inc_align32.h \
393 linux/32/ioctls_inc_align64.h \
394 linux/32/syscallent.h \
395 linux/64/ioctls_inc.h \
396 linux/64/syscallent.h \
397 linux/aarch64/arch_defs_.h \
398 linux/aarch64/arch_regs.c \
399 linux/aarch64/arch_regs.h \
400 linux/aarch64/arch_rt_sigframe.c \
401 linux/aarch64/arch_sigreturn.c \
402 linux/aarch64/errnoent1.h \
403 linux/aarch64/get_error.c \
404 linux/aarch64/get_scno.c \
405 linux/aarch64/get_syscall_args.c \
406 linux/aarch64/ioctls_arch0.h \
407 linux/aarch64/ioctls_arch1.h \
408 linux/aarch64/ioctls_inc0.h \
409 linux/aarch64/ioctls_inc1.h \
410 linux/aarch64/nr_prefix.c \
411 linux/aarch64/set_error.c \
412 linux/aarch64/set_scno.c \
413 linux/aarch64/shuffle_scno.c \
414 linux/aarch64/signalent1.h \
415 linux/aarch64/syscallent.h \
416 linux/aarch64/syscallent1.h \
417 linux/alpha/arch_defs_.h \
418 linux/alpha/arch_getrval2.c \
419 linux/alpha/arch_regs.c \
420 linux/alpha/arch_regs.h \
421 linux/alpha/arch_rt_sigframe.c \
422 linux/alpha/arch_sigreturn.c \
423 linux/alpha/errnoent.h \
424 linux/alpha/get_error.c \
425 linux/alpha/get_scno.c \
426 linux/alpha/get_syscall_args.c \
427 linux/alpha/get_syscall_result.c \
428 linux/alpha/ioctls_arch0.h \
429 linux/alpha/ioctls_inc0.h \
430 linux/alpha/set_error.c \
431 linux/alpha/set_scno.c \
432 linux/alpha/signalent.h \
433 linux/alpha/syscallent.h \
434 linux/alpha/userent.h \
435 linux/arc/arch_regs.c \
436 linux/arc/arch_regs.h \
437 linux/arc/arch_rt_sigframe.c \
438 linux/arc/get_error.c \
439 linux/arc/get_scno.c \
440 linux/arc/get_syscall_args.c \
441 linux/arc/ioctls_arch0.h \
442 linux/arc/ioctls_inc0.h \
443 linux/arc/set_error.c \
444 linux/arc/set_scno.c \
445 linux/arc/syscallent.h \
449 linux/arch_sigreturn.c \
450 linux/arm/arch_defs_.h \
451 linux/arm/arch_regs.c \
452 linux/arm/arch_regs.h \
453 linux/arm/arch_rt_sigframe.c \
454 linux/arm/arch_sigreturn.c \
455 linux/arm/get_error.c \
456 linux/arm/get_scno.c \
457 linux/arm/get_syscall_args.c \
458 linux/arm/ioctls_arch0.h \
459 linux/arm/ioctls_inc0.h \
460 linux/arm/nr_prefix.c \
461 linux/arm/set_error.c \
462 linux/arm/set_scno.c \
463 linux/arm/shuffle_scno.c \
464 linux/arm/syscallent.h \
465 linux/arm/userent.h \
466 linux/avr32/arch_regs.c \
467 linux/avr32/arch_regs.h \
468 linux/avr32/arch_rt_sigframe.c \
469 linux/avr32/get_error.c \
470 linux/avr32/get_scno.c \
471 linux/avr32/get_syscall_args.c \
472 linux/avr32/ioctls_arch0.h \
473 linux/avr32/ioctls_inc0.h \
474 linux/avr32/set_error.c \
475 linux/avr32/set_scno.c \
476 linux/avr32/syscallent.h \
477 linux/avr32/userent.h \
478 linux/bfin/arch_defs_.h \
479 linux/bfin/arch_regs.c \
480 linux/bfin/arch_rt_sigframe.c \
481 linux/bfin/get_error.c \
482 linux/bfin/get_scno.c \
483 linux/bfin/get_syscall_args.c \
484 linux/bfin/get_syscall_result.c \
485 linux/bfin/ioctls_arch0.h \
486 linux/bfin/ioctls_inc0.h \
487 linux/bfin/rt_sigframe.h \
488 linux/bfin/set_error.c \
489 linux/bfin/set_scno.c \
490 linux/bfin/syscallent.h \
491 linux/bfin/userent.h \
494 linux/getregs_old.h \
495 linux/hppa/arch_defs_.h \
496 linux/hppa/arch_regs.c \
497 linux/hppa/arch_regs.h \
498 linux/hppa/arch_rt_sigframe.c \
499 linux/hppa/errnoent.h \
500 linux/hppa/get_error.c \
501 linux/hppa/get_scno.c \
502 linux/hppa/get_syscall_args.c \
503 linux/hppa/get_syscall_result.c \
504 linux/hppa/ioctls_arch0.h \
505 linux/hppa/ioctls_inc0.h \
506 linux/hppa/rt_sigframe.h \
507 linux/hppa/set_error.c \
508 linux/hppa/set_scno.c \
509 linux/hppa/signalent.h \
510 linux/hppa/syscallent.h \
511 linux/i386/arch_kvm.c \
512 linux/i386/arch_defs_.h \
513 linux/i386/arch_regs.c \
514 linux/i386/arch_regs.h \
515 linux/i386/arch_rt_sigframe.c \
516 linux/i386/arch_sigreturn.c \
517 linux/i386/get_error.c \
518 linux/i386/get_scno.c \
519 linux/i386/get_syscall_args.c \
520 linux/i386/ioctls_arch0.h \
521 linux/i386/ioctls_inc0.h \
522 linux/i386/rt_sigframe.h \
523 linux/i386/set_error.c \
524 linux/i386/set_scno.c \
525 linux/i386/syscallent.h \
526 linux/i386/userent.h \
527 linux/i386/userent0.h \
528 linux/ia64/arch_defs_.h \
529 linux/ia64/arch_getrval2.c \
530 linux/ia64/arch_regs.c \
531 linux/ia64/arch_regs.h \
532 linux/ia64/arch_rt_sigframe.c \
533 linux/ia64/get_error.c \
534 linux/ia64/get_scno.c \
535 linux/ia64/get_syscall_args.c \
536 linux/ia64/ioctls_arch0.h \
537 linux/ia64/ioctls_inc0.h \
538 linux/ia64/rt_sigframe.h \
539 linux/ia64/set_error.c \
540 linux/ia64/set_scno.c \
541 linux/ia64/syscallent.h \
542 linux/ia64/userent.h \
544 linux/m68k/arch_defs_.h \
545 linux/m68k/arch_regs.c \
546 linux/m68k/arch_regs.h \
547 linux/m68k/arch_rt_sigframe.c \
548 linux/m68k/arch_sigreturn.c \
549 linux/m68k/get_error.c \
550 linux/m68k/get_scno.c \
551 linux/m68k/get_syscall_args.c \
552 linux/m68k/ioctls_arch0.h \
553 linux/m68k/ioctls_inc0.h \
554 linux/m68k/rt_sigframe.h \
555 linux/m68k/set_error.c \
556 linux/m68k/set_scno.c \
557 linux/m68k/syscallent.h \
558 linux/m68k/userent.h \
559 linux/metag/arch_regs.c \
560 linux/metag/arch_regs.h \
561 linux/metag/arch_rt_sigframe.c \
562 linux/metag/get_error.c \
563 linux/metag/get_scno.c \
564 linux/metag/get_syscall_args.c \
565 linux/metag/ioctls_arch0.h \
566 linux/metag/ioctls_inc0.h \
567 linux/metag/set_error.c \
568 linux/metag/set_scno.c \
569 linux/metag/syscallent.h \
570 linux/microblaze/arch_defs_.h \
571 linux/microblaze/arch_regs.c \
572 linux/microblaze/arch_rt_sigframe.c \
573 linux/microblaze/arch_sigreturn.c \
574 linux/microblaze/get_error.c \
575 linux/microblaze/get_scno.c \
576 linux/microblaze/get_syscall_args.c \
577 linux/microblaze/get_syscall_result.c \
578 linux/microblaze/ioctls_arch0.h \
579 linux/microblaze/ioctls_inc0.h \
580 linux/microblaze/set_error.c \
581 linux/microblaze/set_scno.c \
582 linux/microblaze/syscallent.h \
583 linux/microblaze/userent.h \
584 linux/mips/arch_defs_.h \
585 linux/mips/arch_getrval2.c \
586 linux/mips/arch_regs.c \
587 linux/mips/arch_regs.h \
588 linux/mips/arch_rt_sigframe.c \
589 linux/mips/arch_sigreturn.c \
590 linux/mips/errnoent.h \
591 linux/mips/genstub.sh \
592 linux/mips/get_error.c \
593 linux/mips/get_scno.c \
594 linux/mips/get_syscall_args.c \
595 linux/mips/ioctls_arch0.h \
596 linux/mips/ioctls_inc0.h \
597 linux/mips/rt_sigframe.h \
598 linux/mips/set_error.c \
599 linux/mips/set_scno.c \
600 linux/mips/signalent.h \
601 linux/mips/syscallent-compat.h \
602 linux/mips/syscallent-n32.h \
603 linux/mips/syscallent-n64.h \
604 linux/mips/syscallent-o32.h \
605 linux/mips/syscallent.h \
606 linux/mips/userent.h \
607 linux/netlink_diag.h \
608 linux/nios2/arch_defs_.h \
609 linux/nios2/arch_regs.c \
610 linux/nios2/arch_regs.h \
611 linux/nios2/arch_rt_sigframe.c \
612 linux/nios2/get_error.c \
613 linux/nios2/get_scno.c \
614 linux/nios2/get_syscall_args.c \
615 linux/nios2/ioctls_arch0.h \
616 linux/nios2/ioctls_inc0.h \
617 linux/nios2/set_error.c \
618 linux/nios2/set_scno.c \
619 linux/nios2/syscallent.h \
621 linux/or1k/arch_regs.c \
622 linux/or1k/arch_regs.h \
623 linux/or1k/arch_rt_sigframe.c \
624 linux/or1k/get_error.c \
625 linux/or1k/get_scno.c \
626 linux/or1k/get_syscall_args.c \
627 linux/or1k/ioctls_arch0.h \
628 linux/or1k/ioctls_inc0.h \
629 linux/or1k/set_error.c \
630 linux/or1k/set_scno.c \
631 linux/or1k/syscallent.h \
632 linux/or1k/userent.h \
633 linux/packet_diag.h \
634 linux/powerpc/arch_defs_.h \
635 linux/powerpc/arch_regs.c \
636 linux/powerpc/arch_regs.h \
637 linux/powerpc/arch_rt_sigframe.c \
638 linux/powerpc/arch_sigreturn.c \
639 linux/powerpc/errnoent.h \
640 linux/powerpc/get_error.c \
641 linux/powerpc/get_scno.c \
642 linux/powerpc/get_syscall_args.c \
643 linux/powerpc/getregs_old.c \
644 linux/powerpc/getregs_old.h \
645 linux/powerpc/ioctls_arch0.h \
646 linux/powerpc/ioctls_inc0.h \
647 linux/powerpc/set_error.c \
648 linux/powerpc/set_scno.c \
649 linux/powerpc/syscallent.h \
650 linux/powerpc/userent.h \
651 linux/powerpc64/arch_defs_.h \
652 linux/powerpc64/arch_regs.c \
653 linux/powerpc64/arch_regs.h \
654 linux/powerpc64/arch_rt_sigframe.c \
655 linux/powerpc64/arch_sigreturn.c \
656 linux/powerpc64/errnoent.h \
657 linux/powerpc64/errnoent1.h \
658 linux/powerpc64/get_error.c \
659 linux/powerpc64/get_scno.c \
660 linux/powerpc64/get_syscall_args.c \
661 linux/powerpc64/getregs_old.c \
662 linux/powerpc64/getregs_old.h \
663 linux/powerpc64/ioctls_arch0.h \
664 linux/powerpc64/ioctls_arch1.h \
665 linux/powerpc64/ioctls_inc0.h \
666 linux/powerpc64/ioctls_inc1.h \
667 linux/powerpc64/rt_sigframe.h \
668 linux/powerpc64/set_error.c \
669 linux/powerpc64/set_scno.c \
670 linux/powerpc64/signalent1.h \
671 linux/powerpc64/syscallent.h \
672 linux/powerpc64/syscallent1.h \
673 linux/powerpc64/userent.h \
674 linux/riscv/arch_defs_.h \
675 linux/riscv/arch_regs.c \
676 linux/riscv/arch_regs.h \
677 linux/riscv/arch_rt_sigframe.c \
678 linux/riscv/errnoent1.h \
679 linux/riscv/get_error.c \
680 linux/riscv/get_scno.c \
681 linux/riscv/get_syscall_args.c \
682 linux/riscv/ioctls_arch0.h \
683 linux/riscv/ioctls_arch1.h \
684 linux/riscv/ioctls_inc0.h \
685 linux/riscv/ioctls_inc1.h \
686 linux/riscv/set_error.c \
687 linux/riscv/set_scno.c \
688 linux/riscv/signalent1.h \
689 linux/riscv/syscallent.h \
690 linux/riscv/syscallent1.h \
691 linux/rt_sigframe.h \
692 linux/s390/arch_defs_.h \
693 linux/s390/arch_regs.c \
694 linux/s390/arch_regs.h \
695 linux/s390/arch_rt_sigframe.c \
696 linux/s390/arch_sigreturn.c \
697 linux/s390/get_error.c \
698 linux/s390/get_scno.c \
699 linux/s390/get_syscall_args.c \
700 linux/s390/ioctls_arch0.h \
701 linux/s390/ioctls_inc0.h \
702 linux/s390/rt_sigframe.h \
703 linux/s390/set_error.c \
704 linux/s390/set_scno.c \
705 linux/s390/syscallent.h \
706 linux/s390/userent.h \
707 linux/s390/userent0.h \
708 linux/s390/userent1.h \
709 linux/s390x/arch_defs_.h \
710 linux/s390x/arch_regs.c \
711 linux/s390x/arch_regs.h \
712 linux/s390x/arch_rt_sigframe.c \
713 linux/s390x/arch_sigreturn.c \
714 linux/s390x/errnoent1.h \
715 linux/s390x/get_error.c \
716 linux/s390x/get_scno.c \
717 linux/s390x/get_syscall_args.c \
718 linux/s390x/ioctls_arch0.h \
719 linux/s390x/ioctls_arch1.h \
720 linux/s390x/ioctls_inc0.h \
721 linux/s390x/ioctls_inc1.h \
722 linux/s390x/rt_sigframe.h \
723 linux/s390x/set_error.c \
724 linux/s390x/set_scno.c \
725 linux/s390x/signalent1.h \
726 linux/s390x/syscallent.h \
727 linux/s390x/syscallent1.h \
728 linux/s390x/userent.h \
729 linux/sh/arch_defs_.h \
730 linux/sh/arch_getrval2.c \
731 linux/sh/arch_regs.c \
732 linux/sh/arch_rt_sigframe.c \
733 linux/sh/get_error.c \
734 linux/sh/get_scno.c \
735 linux/sh/get_syscall_args.c \
736 linux/sh/get_syscall_result.c \
737 linux/sh/ioctls_arch0.h \
738 linux/sh/ioctls_inc0.h \
739 linux/sh/set_error.c \
740 linux/sh/set_scno.c \
741 linux/sh/syscallent.h \
743 linux/sh/userent0.h \
744 linux/sh64/arch_defs_.h \
745 linux/sh64/arch_regs.c \
746 linux/sh64/arch_regs.h \
747 linux/sh64/arch_rt_sigframe.c \
748 linux/sh64/get_error.c \
749 linux/sh64/get_scno.c \
750 linux/sh64/get_syscall_args.c \
751 linux/sh64/get_syscall_result.c \
752 linux/sh64/ioctls_arch0.h \
753 linux/sh64/ioctls_inc0.h \
754 linux/sh64/rt_sigframe.h \
755 linux/sh64/set_error.c \
756 linux/sh64/set_scno.c \
757 linux/sh64/syscallent.h \
758 linux/sh64/userent.h \
759 linux/shuffle_scno.c \
763 linux/sparc/arch_defs_.h \
764 linux/sparc/arch_getrval2.c \
765 linux/sparc/arch_regs.c \
766 linux/sparc/arch_regs.h \
767 linux/sparc/arch_rt_sigframe.c \
768 linux/sparc/arch_sigreturn.c \
769 linux/sparc/errnoent.h \
770 linux/sparc/get_error.c \
771 linux/sparc/get_scno.c \
772 linux/sparc/get_syscall_args.c \
773 linux/sparc/ioctls_arch0.h \
774 linux/sparc/ioctls_inc0.h \
775 linux/sparc/rt_sigframe.h \
776 linux/sparc/set_error.c \
777 linux/sparc/set_scno.c \
778 linux/sparc/signalent.h \
779 linux/sparc/syscallent.h \
780 linux/sparc/userent.h \
781 linux/sparc64/arch_defs_.h \
782 linux/sparc64/arch_getrval2.c \
783 linux/sparc64/arch_regs.c \
784 linux/sparc64/arch_regs.h \
785 linux/sparc64/arch_rt_sigframe.c \
786 linux/sparc64/arch_sigreturn.c \
787 linux/sparc64/errnoent.h \
788 linux/sparc64/errnoent1.h \
789 linux/sparc64/get_error.c \
790 linux/sparc64/get_scno.c \
791 linux/sparc64/get_syscall_args.c \
792 linux/sparc64/ioctls_arch0.h \
793 linux/sparc64/ioctls_arch1.h \
794 linux/sparc64/ioctls_inc0.h \
795 linux/sparc64/ioctls_inc1.h \
796 linux/sparc64/rt_sigframe.h \
797 linux/sparc64/set_error.c \
798 linux/sparc64/set_scno.c \
799 linux/sparc64/signalent.h \
800 linux/sparc64/signalent1.h \
801 linux/sparc64/syscallent.h \
802 linux/sparc64/syscallent1.h \
803 linux/sparc64/userent.h \
806 linux/tile/arch_defs_.h \
807 linux/tile/arch_regs.c \
808 linux/tile/arch_regs.h \
809 linux/tile/arch_rt_sigframe.c \
810 linux/tile/arch_sigreturn.c \
811 linux/tile/errnoent1.h \
812 linux/tile/get_error.c \
813 linux/tile/get_scno.c \
814 linux/tile/get_syscall_args.c \
815 linux/tile/ioctls_arch0.h \
816 linux/tile/ioctls_arch1.h \
817 linux/tile/ioctls_inc0.h \
818 linux/tile/ioctls_inc1.h \
819 linux/tile/rt_sigframe.h \
820 linux/tile/set_error.c \
821 linux/tile/set_scno.c \
822 linux/tile/signalent1.h \
823 linux/tile/syscallent.h \
824 linux/tile/syscallent1.h \
825 linux/tile/userent.h \
829 linux/x32/arch_defs_.h \
830 linux/x32/arch_kvm.c \
831 linux/x32/arch_regs.c \
832 linux/x32/arch_regs.h \
833 linux/x32/arch_rt_sigframe.c \
834 linux/x32/arch_sigreturn.c \
835 linux/x32/errnoent1.h \
836 linux/x32/get_error.c \
837 linux/x32/get_scno.c \
838 linux/x32/get_syscall_args.c \
839 linux/x32/ioctls_arch0.h \
840 linux/x32/ioctls_arch1.h \
841 linux/x32/ioctls_inc0.h \
842 linux/x32/ioctls_inc1.h \
843 linux/x32/rt_sigframe.h \
844 linux/x32/set_error.c \
845 linux/x32/set_scno.c \
846 linux/x32/shuffle_scno.c \
847 linux/x32/signalent1.h \
848 linux/x32/syscallent.h \
849 linux/x32/syscallent1.h \
850 linux/x32/userent.h \
851 linux/x86_64/arch_defs_.h \
852 linux/x86_64/arch_kvm.c \
853 linux/x86_64/arch_regs.c \
854 linux/x86_64/arch_regs.h \
855 linux/x86_64/arch_rt_sigframe.c \
856 linux/x86_64/arch_sigreturn.c \
857 linux/x86_64/errnoent1.h \
858 linux/x86_64/errnoent2.h \
859 linux/x86_64/get_error.c \
860 linux/x86_64/get_scno.c \
861 linux/x86_64/get_syscall_args.c \
862 linux/x86_64/getregs_old.c \
863 linux/x86_64/getregs_old.h \
864 linux/x86_64/ioctls_arch0.h \
865 linux/x86_64/ioctls_arch1.h \
866 linux/x86_64/ioctls_arch2.h \
867 linux/x86_64/ioctls_inc0.h \
868 linux/x86_64/ioctls_inc1.h \
869 linux/x86_64/ioctls_inc2.h \
870 linux/x86_64/rt_sigframe.h \
871 linux/x86_64/set_error.c \
872 linux/x86_64/set_scno.c \
873 linux/x86_64/shuffle_scno.c \
874 linux/x86_64/signalent1.h \
875 linux/x86_64/signalent2.h \
876 linux/x86_64/syscallent.h \
877 linux/x86_64/syscallent1.h \
878 linux/x86_64/syscallent2.h \
879 linux/x86_64/userent.h \
880 linux/xtensa/arch_regs.c \
881 linux/xtensa/arch_rt_sigframe.c \
882 linux/xtensa/get_error.c \
883 linux/xtensa/get_scno.c \
884 linux/xtensa/get_syscall_args.c \
885 linux/xtensa/get_syscall_result.c \
886 linux/xtensa/ioctls_arch0.h \
887 linux/xtensa/ioctls_inc0.h \
888 linux/xtensa/set_error.c \
889 linux/xtensa/set_scno.c \
890 linux/xtensa/syscallent.h \
891 linux/xtensa/userent.h \
900 $(XLAT_INPUT_FILES) \
901 $(XLAT_HEADER_FILES) \
905 .PHONY: check-valgrind-local
906 check-valgrind-local:
910 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
913 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
916 $(filter %.c,$(strace_SOURCES)) $(filter %.c,$(libstrace_a_SOURCES))
918 sys_func.h: $(patsubst %,$(srcdir)/%,$(strace_SOURCES_c))
920 sed -n 's/^SYS_FUNC(.*/extern &;/p' $$f; \
923 syscallent_names = subcall.h syscallent.h syscallent1.h \
924 syscallent-n32.h syscallent-n64.h syscallent-o32.h
925 syscallent_patterns = $(patsubst %,\%/%,$(syscallent_names))
926 syscallent_files = $(filter $(syscallent_patterns),$(EXTRA_DIST))
928 sen.h: $(patsubst %,$(srcdir)/%,$(syscallent_files))
929 for f in $^; do cat -- $$f; done | \
930 $(srcdir)/generate_sen.sh > $@
933 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
934 ${AM_V_GEN}echo $(COPYRIGHT_YEAR) > $(distdir)/.year
935 ${AM_V_GEN}echo $(MANPAGE_DATE) > $(distdir)/.strace.1.in.date
937 today = $(shell date +%Y-%m-%d)
938 version_regexp = $(subst .,\.,$(VERSION))
939 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
942 $(AM_V_GEN)if head -1 $< | \
943 grep -x $(news_check_regexp) >/dev/null; then \
946 echo >&2 '$<: check failed'; \
950 ioctlsort_CC = $(CC_FOR_BUILD)
951 ioctlsort_DEFS = $(DEFS)
952 ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
953 ioctlsort_CPPFLAGS = $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD)
954 ioctlsort_CFLAGS = $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
955 ioctlsort_LDFLAGS = $(AM_LDFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD)
957 ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
958 ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
959 ioctl_redefs_h = $(filter-out ioctl_redefs0.h,$(subst ioctlent,ioctl_redefs,$(ioctlent_h)))
961 ioctl_redefs%.h: ioctlent%.h ioctlent0.h
963 sort ioctlent0.h | comm -23 $<-t - | \
964 sed -r -n 's/^\{ "([^"]+)", (0x[[:xdigit:]]+) \},$$/#ifdef \1\n# undef \1\n# define \1 \2\n#endif/p' \
969 ioctlent%.h: ioctlsort%
972 # Need to pick up <linux/ioctl.h> definitions *for host* while compiling
973 # ioctlsort *for build*, hence this magic.
974 ioctl_iocdef.i: $(srcdir)/ioctl_iocdef.c
975 $(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
976 $(strace_CPPFLAGS) $(CPPFLAGS) $< -o $@
978 ioctl_iocdef.h: ioctl_iocdef.i
979 sed -n 's/^DEFINE HOST/#define /p' $< > $@
981 ioctlsort%$(BUILD_EXEEXT): ioctlsort%.o
982 $(ioctlsort_CC) $(ioctlsort_CFLAGS) $(ioctlsort_LDFLAGS) $< -o $@
984 ioctlsort%.o: ioctls_all%.h ioctl_iocdef.h $(srcdir)/ioctlsort.c
985 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
987 ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
990 BUILT_SOURCES = $(ioctl_redefs_h) $(ioctlent_h) \
991 native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h .version
992 CLEANFILES = $(ioctl_redefs_h) $(ioctlent_h) $(mpers_preproc_files) \
993 ioctl_iocdef.h ioctl_iocdef.i \
994 native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h
995 DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h
999 $(strace_OBJECTS): scno.h
1001 # defines mpers_source_files
1003 srcdir_mpers_source_files = $(patsubst %,$(srcdir)/%,$(mpers_source_files))
1004 mpers_preproc_files = $(mpers_source_files:.c=.c.mpers.i)
1007 mpers_PREFIX = $(mpers_NAME)_
1008 mpers_DEFS = $(DEFS)
1009 mpers_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
1010 mpers_CPPFLAGS = $(strace_CPPFLAGS) $(CPPFLAGS)
1011 mpers_sh_opts = $(mpers_DEFS) $(mpers_INCLUDES) $(mpers_CPPFLAGS)
1012 libmpers_CPPFLAGS = $(strace_CPPFLAGS) -DIN_MPERS
1013 libmpers_CFLAGS = $(strace_CFLAGS)
1017 mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h
1019 READELF="$(READELF)" \
1021 CFLAGS="$(mpers_sh_opts) -DMPERS_IS_$(mpers_NAME)" \
1023 CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \
1024 $(srcdir)/mpers.sh $(mpers_NAME) $(mpers_CC_FLAGS) $$f || exit; \
1028 m%_type_defs.h: $(srcdir_mpers_source_files)
1030 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; \
1032 echo '#undef MPERS_PRINTER_NAME' >> $@-t
1033 echo '#define MPERS_PRINTER_NAME(printer_name) printer_name' >> $@-t
1034 echo '#include "$(mpers_PREFIX)printer_decls.h"' >> $@-t
1035 echo '#include MPERS_$(mpers_PREFIX)IOCTL_MACROS' >> $@-t
1038 m%_funcs.h: $(srcdir_mpers_source_files)
1040 sed -r -n 's/^SYS_FUNC\(([^)]+)\)/#undef sys_\1\n#define sys_\1 $(mpers_PREFIX)sys_\1/p' $$f || exit; \
1042 echo '#include "sys_func.h"' >> $@-t
1047 %.c.mpers.i: $(srcdir)/%.c
1048 $(CPP) -P $(mpers_sh_opts) -DIN_MPERS_BOOTSTRAP $< -o $@
1050 mpers_printer_decl_pattern = ^MPERS_PRINTER_DECL\(([^,)]+),[[:space:]]*([^,)]+),[[:space:]]*([^)]+)\)$$
1052 printers.h: $(mpers_preproc_files)
1053 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1054 echo 'typedef struct {' >> $@-t
1056 sed -r -n 's/$(mpers_printer_decl_pattern)/ \1 (*\2)(\3);\n#define \2 MPERS_PRINTER_NAME(\2)\n/p' $$f \
1059 echo '} struct_printers;' >> $@-t
1060 echo 'extern const struct_printers *printers;' >> $@-t
1061 echo '#define MPERS_PRINTER_NAME(printer_name) printers->printer_name' >> $@-t
1064 %_printer_decls.h: $(mpers_preproc_files)
1065 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1067 sed -r -n 's/$(mpers_printer_decl_pattern)/extern \1 $(mpers_PREFIX)\2(\3);/p' $$f \
1072 %_printer_defs.h: $(mpers_preproc_files)
1073 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1075 sed -r -n 's/$(mpers_printer_decl_pattern)/.\2 = $(mpers_PREFIX)\2,/p' $$f \
1080 native_printer_decls.h native_printer_defs.h: mpers_PREFIX =
1084 strace_LDADD += libmpers-m32.a
1085 noinst_LIBRARIES += libmpers-m32.a
1086 libmpers_m32_a_SOURCES = $(mpers_source_files)
1087 libmpers_m32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_m32 -I$(builddir)/mpers-m32
1088 libmpers_m32_a_CFLAGS = $(libmpers_CFLAGS)
1089 mpers_m32_targets = mpers-m32.stamp m32_type_defs.h m32_funcs.h m32_printer_decls.h m32_printer_defs.h
1091 BUILT_SOURCES += $(mpers_m32_targets)
1092 CLEANFILES += $(mpers_m32_targets)
1094 $(mpers_m32_targets): mpers_NAME = m32
1095 $(mpers_m32_targets): mpers_CC_FLAGS = @cc_flags_m32@
1097 endif # HAVE_M32_MPERS
1101 strace_LDADD += libmpers-mx32.a
1102 noinst_LIBRARIES += libmpers-mx32.a
1103 libmpers_mx32_a_SOURCES = $(mpers_source_files)
1104 libmpers_mx32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_mx32 -I$(builddir)/mpers-mx32
1105 libmpers_mx32_a_CFLAGS = $(libmpers_CFLAGS)
1106 mpers_mx32_targets = mpers-mx32.stamp mx32_type_defs.h mx32_funcs.h mx32_printer_decls.h mx32_printer_defs.h
1108 BUILT_SOURCES += $(mpers_mx32_targets)
1109 CLEANFILES += $(mpers_mx32_targets)
1111 $(mpers_mx32_targets): mpers_NAME = mx32
1112 $(mpers_mx32_targets): mpers_CC_FLAGS = @cc_flags_mx32@
1114 endif # HAVE_MX32_MPERS
1117 -rm -rf mpers-m32 mpers-mx32
1121 gen_changelog_start_date = 2009-07-08 20:00
1122 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
1126 ./gitlog-to-changelog --append-dot \
1127 --since='$(gen_changelog_start_date)'; \
1128 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
1133 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
1134 $(srcdir)/Makefile.in $(srcdir)/.version
1138 sed '/^##/,$$d' CREDITS.in; \
1139 sed -n '1,/^##>/d; s/ */\t/; s/^./&/p' CREDITS.in \
1140 | maint/gen-contributors-list.sh - -e HEAD --initial \
1141 | sed 's/\t/ /g; s/^/\t/' \
1142 ) > $@-t && mv $@-t $@
1144 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX