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 $(clock_LIBS) $(timer_LIBS)
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 \
88 # end of libstrace_a_SOURCES
105 bpf_seccomp_filter.c \
140 fetch_struct_flock.c \
141 fetch_struct_keyctl_kdf_params.c \
142 fetch_struct_mmsghdr.c \
143 fetch_struct_msghdr.c \
144 fetch_struct_stat.c \
145 fetch_struct_stat64.c \
146 fetch_struct_statfs.c \
178 keyctl_kdf_params.h \
180 largefile_wrappers.h \
184 linux/x32/asm_stat.h \
185 linux/x86_64/asm_stat.h \
210 netlink_kobject_uevent.c \
211 netlink_kobject_uevent.h \
212 netlink_sock_diag.h \
213 netlink_inet_diag.c \
214 netlink_netfilter.c \
215 netlink_netlink_diag.c \
216 netlink_packet_diag.c \
221 netlink_sock_diag.c \
222 netlink_unix_diag.c \
236 perf_event_struct.h \
248 print_sg_req_info.c \
251 print_struct_stat.c \
323 sysent_shorthand_defs.h \
324 sysent_shorthand_undefs.h \
353 $(strace_SOURCES_check) \
354 # end of strace_SOURCES
356 strace_SOURCES_check = bpf_attr_check.c
359 strace_SOURCES += unwind.c unwind.h
361 strace_SOURCES += unwind-libdw.c
362 strace_CPPFLAGS += $(libdw_CPPFLAGS)
363 strace_CFLAGS += $(libdw_CFLAGS)
364 strace_LDFLAGS += $(libdw_LDFLAGS)
365 strace_LDADD += $(libdw_LIBS)
368 strace_SOURCES += unwind-libunwind.c
369 strace_CPPFLAGS += $(libunwind_CPPFLAGS)
370 strace_LDFLAGS += $(libunwind_LDFLAGS)
371 strace_LDADD += $(libunwind_LIBS)
374 strace_CPPFLAGS += $(libiberty_CPPFLAGS)
375 strace_LDFLAGS += $(libiberty_LDFLAGS)
376 strace_LDADD += $(libiberty_LIBS)
380 @CODE_COVERAGE_RULES@
381 CODE_COVERAGE_BRANCH_COVERAGE = 1
382 CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) \
383 --prefix $(shell cd $(abs_top_srcdir)/.. && pwd || echo .)
384 CODE_COVERAGE_IGNORE_PATTERN = '/usr/include/*'
385 strace_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
386 strace_CFLAGS += $(CODE_COVERAGE_CFLAGS)
387 strace_LDADD += $(CODE_COVERAGE_LIBS)
389 # Enable this to get link map generated
390 #strace_LDFLAGS += -Wl,-Map=strace.mapfile
399 README-linux-ptrace \
405 debian/source/format \
406 debian/strace-udeb.install \
408 debian/strace.examples \
409 debian/strace.install \
410 debian/strace.manpages \
411 debian/strace64.install \
412 debian/strace64.manpages \
414 gen_bpf_attr_check.sh \
418 linux/32/ioctls_inc.h \
419 linux/32/ioctls_inc_align16.h \
420 linux/32/ioctls_inc_align32.h \
421 linux/32/ioctls_inc_align64.h \
422 linux/32/syscallent.h \
423 linux/64/ioctls_inc.h \
424 linux/64/syscallent.h \
425 linux/aarch64/arch_defs_.h \
426 linux/aarch64/arch_regs.c \
427 linux/aarch64/arch_regs.h \
428 linux/aarch64/arch_rt_sigframe.c \
429 linux/aarch64/arch_sigreturn.c \
430 linux/aarch64/errnoent1.h \
431 linux/aarch64/get_error.c \
432 linux/aarch64/get_scno.c \
433 linux/aarch64/get_syscall_args.c \
434 linux/aarch64/ioctls_arch0.h \
435 linux/aarch64/ioctls_arch1.h \
436 linux/aarch64/ioctls_inc0.h \
437 linux/aarch64/ioctls_inc1.h \
438 linux/aarch64/nr_prefix.c \
439 linux/aarch64/raw_syscall.h \
440 linux/aarch64/set_error.c \
441 linux/aarch64/set_scno.c \
442 linux/aarch64/shuffle_scno.c \
443 linux/aarch64/signalent1.h \
444 linux/aarch64/syscallent.h \
445 linux/aarch64/syscallent1.h \
446 linux/alpha/arch_defs_.h \
447 linux/alpha/arch_getrval2.c \
448 linux/alpha/arch_regs.c \
449 linux/alpha/arch_regs.h \
450 linux/alpha/arch_rt_sigframe.c \
451 linux/alpha/arch_sigreturn.c \
452 linux/alpha/errnoent.h \
453 linux/alpha/get_error.c \
454 linux/alpha/get_scno.c \
455 linux/alpha/get_syscall_args.c \
456 linux/alpha/get_syscall_result.c \
457 linux/alpha/ioctls_arch0.h \
458 linux/alpha/ioctls_inc0.h \
459 linux/alpha/raw_syscall.h \
460 linux/alpha/set_error.c \
461 linux/alpha/set_scno.c \
462 linux/alpha/signalent.h \
463 linux/alpha/syscallent.h \
464 linux/alpha/userent.h \
465 linux/arc/arch_regs.c \
466 linux/arc/arch_regs.h \
467 linux/arc/arch_rt_sigframe.c \
468 linux/arc/get_error.c \
469 linux/arc/get_scno.c \
470 linux/arc/get_syscall_args.c \
471 linux/arc/ioctls_arch0.h \
472 linux/arc/ioctls_inc0.h \
473 linux/arc/raw_syscall.h \
474 linux/arc/set_error.c \
475 linux/arc/set_scno.c \
476 linux/arc/syscallent.h \
480 linux/arch_sigreturn.c \
481 linux/arm/arch_defs_.h \
482 linux/arm/arch_regs.c \
483 linux/arm/arch_regs.h \
484 linux/arm/arch_rt_sigframe.c \
485 linux/arm/arch_sigreturn.c \
486 linux/arm/get_error.c \
487 linux/arm/get_scno.c \
488 linux/arm/get_syscall_args.c \
489 linux/arm/ioctls_arch0.h \
490 linux/arm/ioctls_inc0.h \
491 linux/arm/nr_prefix.c \
492 linux/arm/raw_syscall.h \
493 linux/arm/set_error.c \
494 linux/arm/set_scno.c \
495 linux/arm/shuffle_scno.c \
496 linux/arm/syscallent.h \
497 linux/arm/userent.h \
498 linux/avr32/arch_regs.c \
499 linux/avr32/arch_regs.h \
500 linux/avr32/arch_rt_sigframe.c \
501 linux/avr32/get_error.c \
502 linux/avr32/get_scno.c \
503 linux/avr32/get_syscall_args.c \
504 linux/avr32/ioctls_arch0.h \
505 linux/avr32/ioctls_inc0.h \
506 linux/avr32/raw_syscall.h \
507 linux/avr32/set_error.c \
508 linux/avr32/set_scno.c \
509 linux/avr32/syscallent.h \
510 linux/avr32/userent.h \
511 linux/bfin/arch_defs_.h \
512 linux/bfin/arch_regs.c \
513 linux/bfin/arch_rt_sigframe.c \
514 linux/bfin/get_error.c \
515 linux/bfin/get_scno.c \
516 linux/bfin/get_syscall_args.c \
517 linux/bfin/get_syscall_result.c \
518 linux/bfin/ioctls_arch0.h \
519 linux/bfin/ioctls_inc0.h \
520 linux/bfin/raw_syscall.h \
521 linux/bfin/rt_sigframe.h \
522 linux/bfin/set_error.c \
523 linux/bfin/set_scno.c \
524 linux/bfin/syscallent.h \
525 linux/bfin/userent.h \
528 linux/getregs_old.h \
529 linux/hppa/arch_defs_.h \
530 linux/hppa/arch_regs.c \
531 linux/hppa/arch_regs.h \
532 linux/hppa/arch_rt_sigframe.c \
533 linux/hppa/errnoent.h \
534 linux/hppa/get_error.c \
535 linux/hppa/get_scno.c \
536 linux/hppa/get_syscall_args.c \
537 linux/hppa/get_syscall_result.c \
538 linux/hppa/ioctls_arch0.h \
539 linux/hppa/ioctls_inc0.h \
540 linux/hppa/raw_syscall.h \
541 linux/hppa/rt_sigframe.h \
542 linux/hppa/set_error.c \
543 linux/hppa/set_scno.c \
544 linux/hppa/signalent.h \
545 linux/hppa/syscallent.h \
546 linux/i386/arch_kvm.c \
547 linux/i386/arch_defs_.h \
548 linux/i386/arch_regs.c \
549 linux/i386/arch_regs.h \
550 linux/i386/arch_rt_sigframe.c \
551 linux/i386/arch_sigreturn.c \
552 linux/i386/get_error.c \
553 linux/i386/get_scno.c \
554 linux/i386/get_syscall_args.c \
555 linux/i386/ioctls_arch0.h \
556 linux/i386/ioctls_inc0.h \
557 linux/i386/raw_syscall.h \
558 linux/i386/rt_sigframe.h \
559 linux/i386/set_error.c \
560 linux/i386/set_scno.c \
561 linux/i386/syscallent.h \
562 linux/i386/userent.h \
563 linux/i386/userent0.h \
564 linux/ia64/arch_defs_.h \
565 linux/ia64/arch_getrval2.c \
566 linux/ia64/arch_regs.c \
567 linux/ia64/arch_regs.h \
568 linux/ia64/arch_rt_sigframe.c \
569 linux/ia64/get_error.c \
570 linux/ia64/get_scno.c \
571 linux/ia64/get_syscall_args.c \
572 linux/ia64/ioctls_arch0.h \
573 linux/ia64/ioctls_inc0.h \
574 linux/ia64/raw_syscall.h \
575 linux/ia64/rt_sigframe.h \
576 linux/ia64/set_error.c \
577 linux/ia64/set_scno.c \
578 linux/ia64/syscallent.h \
579 linux/ia64/userent.h \
581 linux/m68k/arch_defs_.h \
582 linux/m68k/arch_regs.c \
583 linux/m68k/arch_regs.h \
584 linux/m68k/arch_rt_sigframe.c \
585 linux/m68k/arch_sigreturn.c \
586 linux/m68k/get_error.c \
587 linux/m68k/get_scno.c \
588 linux/m68k/get_syscall_args.c \
589 linux/m68k/ioctls_arch0.h \
590 linux/m68k/ioctls_inc0.h \
591 linux/m68k/raw_syscall.h \
592 linux/m68k/rt_sigframe.h \
593 linux/m68k/set_error.c \
594 linux/m68k/set_scno.c \
595 linux/m68k/syscallent.h \
596 linux/m68k/userent.h \
597 linux/metag/arch_regs.c \
598 linux/metag/arch_regs.h \
599 linux/metag/arch_rt_sigframe.c \
600 linux/metag/get_error.c \
601 linux/metag/get_scno.c \
602 linux/metag/get_syscall_args.c \
603 linux/metag/ioctls_arch0.h \
604 linux/metag/ioctls_inc0.h \
605 linux/metag/raw_syscall.h \
606 linux/metag/set_error.c \
607 linux/metag/set_scno.c \
608 linux/metag/syscallent.h \
609 linux/microblaze/arch_defs_.h \
610 linux/microblaze/arch_regs.c \
611 linux/microblaze/arch_rt_sigframe.c \
612 linux/microblaze/arch_sigreturn.c \
613 linux/microblaze/get_error.c \
614 linux/microblaze/get_scno.c \
615 linux/microblaze/get_syscall_args.c \
616 linux/microblaze/get_syscall_result.c \
617 linux/microblaze/ioctls_arch0.h \
618 linux/microblaze/ioctls_inc0.h \
619 linux/microblaze/raw_syscall.h \
620 linux/microblaze/set_error.c \
621 linux/microblaze/set_scno.c \
622 linux/microblaze/syscallent.h \
623 linux/microblaze/userent.h \
624 linux/mips/arch_defs_.h \
625 linux/mips/arch_getrval2.c \
626 linux/mips/arch_regs.c \
627 linux/mips/arch_regs.h \
628 linux/mips/arch_rt_sigframe.c \
629 linux/mips/arch_sigreturn.c \
630 linux/mips/errnoent.h \
631 linux/mips/genstub.sh \
632 linux/mips/get_error.c \
633 linux/mips/get_scno.c \
634 linux/mips/get_syscall_args.c \
635 linux/mips/ioctls_arch0.h \
636 linux/mips/ioctls_inc0.h \
637 linux/mips/raw_syscall.h \
638 linux/mips/rt_sigframe.h \
639 linux/mips/set_error.c \
640 linux/mips/set_scno.c \
641 linux/mips/signalent.h \
642 linux/mips/syscallent-compat.h \
643 linux/mips/syscallent-n32.h \
644 linux/mips/syscallent-n64.h \
645 linux/mips/syscallent-o32.h \
646 linux/mips/syscallent.h \
647 linux/mips/userent.h \
648 linux/netlink_diag.h \
649 linux/nios2/arch_defs_.h \
650 linux/nios2/arch_regs.c \
651 linux/nios2/arch_regs.h \
652 linux/nios2/arch_rt_sigframe.c \
653 linux/nios2/get_error.c \
654 linux/nios2/get_scno.c \
655 linux/nios2/get_syscall_args.c \
656 linux/nios2/ioctls_arch0.h \
657 linux/nios2/ioctls_inc0.h \
658 linux/nios2/raw_syscall.h \
659 linux/nios2/set_error.c \
660 linux/nios2/set_scno.c \
661 linux/nios2/syscallent.h \
663 linux/or1k/arch_regs.c \
664 linux/or1k/arch_regs.h \
665 linux/or1k/arch_rt_sigframe.c \
666 linux/or1k/get_error.c \
667 linux/or1k/get_scno.c \
668 linux/or1k/get_syscall_args.c \
669 linux/or1k/ioctls_arch0.h \
670 linux/or1k/ioctls_inc0.h \
671 linux/or1k/raw_syscall.h \
672 linux/or1k/set_error.c \
673 linux/or1k/set_scno.c \
674 linux/or1k/syscallent.h \
675 linux/or1k/userent.h \
676 linux/packet_diag.h \
677 linux/powerpc/arch_defs_.h \
678 linux/powerpc/arch_regs.c \
679 linux/powerpc/arch_regs.h \
680 linux/powerpc/arch_rt_sigframe.c \
681 linux/powerpc/arch_sigreturn.c \
682 linux/powerpc/errnoent.h \
683 linux/powerpc/get_error.c \
684 linux/powerpc/get_scno.c \
685 linux/powerpc/get_syscall_args.c \
686 linux/powerpc/getregs_old.c \
687 linux/powerpc/getregs_old.h \
688 linux/powerpc/ioctls_arch0.h \
689 linux/powerpc/ioctls_inc0.h \
690 linux/powerpc/raw_syscall.h \
691 linux/powerpc/set_error.c \
692 linux/powerpc/set_scno.c \
693 linux/powerpc/syscallent.h \
694 linux/powerpc/userent.h \
695 linux/powerpc64/arch_defs_.h \
696 linux/powerpc64/arch_regs.c \
697 linux/powerpc64/arch_regs.h \
698 linux/powerpc64/arch_rt_sigframe.c \
699 linux/powerpc64/arch_sigreturn.c \
700 linux/powerpc64/errnoent.h \
701 linux/powerpc64/errnoent1.h \
702 linux/powerpc64/get_error.c \
703 linux/powerpc64/get_scno.c \
704 linux/powerpc64/get_syscall_args.c \
705 linux/powerpc64/getregs_old.c \
706 linux/powerpc64/getregs_old.h \
707 linux/powerpc64/ioctls_arch0.h \
708 linux/powerpc64/ioctls_arch1.h \
709 linux/powerpc64/ioctls_inc0.h \
710 linux/powerpc64/ioctls_inc1.h \
711 linux/powerpc64/raw_syscall.h \
712 linux/powerpc64/rt_sigframe.h \
713 linux/powerpc64/set_error.c \
714 linux/powerpc64/set_scno.c \
715 linux/powerpc64/signalent1.h \
716 linux/powerpc64/syscallent.h \
717 linux/powerpc64/syscallent1.h \
718 linux/powerpc64/userent.h \
719 linux/raw_syscall.h \
720 linux/riscv/arch_defs_.h \
721 linux/riscv/arch_regs.c \
722 linux/riscv/arch_regs.h \
723 linux/riscv/arch_rt_sigframe.c \
724 linux/riscv/errnoent1.h \
725 linux/riscv/get_error.c \
726 linux/riscv/get_scno.c \
727 linux/riscv/get_syscall_args.c \
728 linux/riscv/ioctls_arch0.h \
729 linux/riscv/ioctls_arch1.h \
730 linux/riscv/ioctls_inc0.h \
731 linux/riscv/ioctls_inc1.h \
732 linux/riscv/raw_syscall.h \
733 linux/riscv/set_error.c \
734 linux/riscv/set_scno.c \
735 linux/riscv/signalent1.h \
736 linux/riscv/syscallent.h \
737 linux/riscv/syscallent1.h \
738 linux/rt_sigframe.h \
739 linux/s390/arch_defs_.h \
740 linux/s390/arch_regs.c \
741 linux/s390/arch_regs.h \
742 linux/s390/arch_rt_sigframe.c \
743 linux/s390/arch_sigreturn.c \
744 linux/s390/get_error.c \
745 linux/s390/get_scno.c \
746 linux/s390/get_syscall_args.c \
747 linux/s390/ioctls_arch0.h \
748 linux/s390/ioctls_inc0.h \
749 linux/s390/raw_syscall.h \
750 linux/s390/rt_sigframe.h \
751 linux/s390/set_error.c \
752 linux/s390/set_scno.c \
753 linux/s390/syscallent.h \
754 linux/s390/userent.h \
755 linux/s390/userent0.h \
756 linux/s390/userent1.h \
757 linux/s390x/arch_defs_.h \
758 linux/s390x/arch_regs.c \
759 linux/s390x/arch_regs.h \
760 linux/s390x/arch_rt_sigframe.c \
761 linux/s390x/arch_sigreturn.c \
762 linux/s390x/errnoent1.h \
763 linux/s390x/get_error.c \
764 linux/s390x/get_scno.c \
765 linux/s390x/get_syscall_args.c \
766 linux/s390x/ioctls_arch0.h \
767 linux/s390x/ioctls_arch1.h \
768 linux/s390x/ioctls_inc0.h \
769 linux/s390x/ioctls_inc1.h \
770 linux/s390x/raw_syscall.h \
771 linux/s390x/rt_sigframe.h \
772 linux/s390x/set_error.c \
773 linux/s390x/set_scno.c \
774 linux/s390x/signalent1.h \
775 linux/s390x/syscallent.h \
776 linux/s390x/syscallent1.h \
777 linux/s390x/userent.h \
778 linux/sh/arch_defs_.h \
779 linux/sh/arch_getrval2.c \
780 linux/sh/arch_regs.c \
781 linux/sh/arch_rt_sigframe.c \
782 linux/sh/get_error.c \
783 linux/sh/get_scno.c \
784 linux/sh/get_syscall_args.c \
785 linux/sh/get_syscall_result.c \
786 linux/sh/ioctls_arch0.h \
787 linux/sh/ioctls_inc0.h \
788 linux/sh/raw_syscall.h \
789 linux/sh/set_error.c \
790 linux/sh/set_scno.c \
791 linux/sh/syscallent.h \
793 linux/sh/userent0.h \
794 linux/sh64/arch_defs_.h \
795 linux/sh64/arch_regs.c \
796 linux/sh64/arch_regs.h \
797 linux/sh64/arch_rt_sigframe.c \
798 linux/sh64/get_error.c \
799 linux/sh64/get_scno.c \
800 linux/sh64/get_syscall_args.c \
801 linux/sh64/get_syscall_result.c \
802 linux/sh64/ioctls_arch0.h \
803 linux/sh64/ioctls_inc0.h \
804 linux/sh64/raw_syscall.h \
805 linux/sh64/rt_sigframe.h \
806 linux/sh64/set_error.c \
807 linux/sh64/set_scno.c \
808 linux/sh64/syscallent.h \
809 linux/sh64/userent.h \
810 linux/shuffle_scno.c \
814 linux/sparc/arch_defs_.h \
815 linux/sparc/arch_getrval2.c \
816 linux/sparc/arch_regs.c \
817 linux/sparc/arch_regs.h \
818 linux/sparc/arch_rt_sigframe.c \
819 linux/sparc/arch_sigreturn.c \
820 linux/sparc/errnoent.h \
821 linux/sparc/get_error.c \
822 linux/sparc/get_scno.c \
823 linux/sparc/get_syscall_args.c \
824 linux/sparc/ioctls_arch0.h \
825 linux/sparc/ioctls_inc0.h \
826 linux/sparc/raw_syscall.h \
827 linux/sparc/rt_sigframe.h \
828 linux/sparc/set_error.c \
829 linux/sparc/set_scno.c \
830 linux/sparc/signalent.h \
831 linux/sparc/syscallent.h \
832 linux/sparc/userent.h \
833 linux/sparc64/arch_defs_.h \
834 linux/sparc64/arch_getrval2.c \
835 linux/sparc64/arch_regs.c \
836 linux/sparc64/arch_regs.h \
837 linux/sparc64/arch_rt_sigframe.c \
838 linux/sparc64/arch_sigreturn.c \
839 linux/sparc64/errnoent.h \
840 linux/sparc64/errnoent1.h \
841 linux/sparc64/get_error.c \
842 linux/sparc64/get_scno.c \
843 linux/sparc64/get_syscall_args.c \
844 linux/sparc64/ioctls_arch0.h \
845 linux/sparc64/ioctls_arch1.h \
846 linux/sparc64/ioctls_inc0.h \
847 linux/sparc64/ioctls_inc1.h \
848 linux/sparc64/raw_syscall.h \
849 linux/sparc64/rt_sigframe.h \
850 linux/sparc64/set_error.c \
851 linux/sparc64/set_scno.c \
852 linux/sparc64/signalent.h \
853 linux/sparc64/signalent1.h \
854 linux/sparc64/syscallent.h \
855 linux/sparc64/syscallent1.h \
856 linux/sparc64/userent.h \
859 linux/tile/arch_defs_.h \
860 linux/tile/arch_regs.c \
861 linux/tile/arch_regs.h \
862 linux/tile/arch_rt_sigframe.c \
863 linux/tile/arch_sigreturn.c \
864 linux/tile/errnoent1.h \
865 linux/tile/get_error.c \
866 linux/tile/get_scno.c \
867 linux/tile/get_syscall_args.c \
868 linux/tile/ioctls_arch0.h \
869 linux/tile/ioctls_arch1.h \
870 linux/tile/ioctls_inc0.h \
871 linux/tile/ioctls_inc1.h \
872 linux/tile/raw_syscall.h \
873 linux/tile/rt_sigframe.h \
874 linux/tile/set_error.c \
875 linux/tile/set_scno.c \
876 linux/tile/signalent1.h \
877 linux/tile/syscallent.h \
878 linux/tile/syscallent1.h \
879 linux/tile/userent.h \
883 linux/x32/arch_defs_.h \
884 linux/x32/arch_kvm.c \
885 linux/x32/arch_regs.c \
886 linux/x32/arch_regs.h \
887 linux/x32/arch_rt_sigframe.c \
888 linux/x32/arch_sigreturn.c \
889 linux/x32/errnoent1.h \
890 linux/x32/get_error.c \
891 linux/x32/get_scno.c \
892 linux/x32/get_syscall_args.c \
893 linux/x32/ioctls_arch0.h \
894 linux/x32/ioctls_arch1.h \
895 linux/x32/ioctls_inc0.h \
896 linux/x32/ioctls_inc1.h \
897 linux/x32/raw_syscall.h \
898 linux/x32/rt_sigframe.h \
899 linux/x32/set_error.c \
900 linux/x32/set_scno.c \
901 linux/x32/shuffle_scno.c \
902 linux/x32/signalent1.h \
903 linux/x32/syscallent.h \
904 linux/x32/syscallent1.h \
905 linux/x32/userent.h \
906 linux/x86_64/arch_defs_.h \
907 linux/x86_64/arch_kvm.c \
908 linux/x86_64/arch_regs.c \
909 linux/x86_64/arch_regs.h \
910 linux/x86_64/arch_rt_sigframe.c \
911 linux/x86_64/arch_sigreturn.c \
912 linux/x86_64/errnoent1.h \
913 linux/x86_64/errnoent2.h \
914 linux/x86_64/get_error.c \
915 linux/x86_64/get_scno.c \
916 linux/x86_64/get_syscall_args.c \
917 linux/x86_64/getregs_old.c \
918 linux/x86_64/getregs_old.h \
919 linux/x86_64/ioctls_arch0.h \
920 linux/x86_64/ioctls_arch1.h \
921 linux/x86_64/ioctls_arch2.h \
922 linux/x86_64/ioctls_inc0.h \
923 linux/x86_64/ioctls_inc1.h \
924 linux/x86_64/ioctls_inc2.h \
925 linux/x86_64/raw_syscall.h \
926 linux/x86_64/rt_sigframe.h \
927 linux/x86_64/set_error.c \
928 linux/x86_64/set_scno.c \
929 linux/x86_64/shuffle_scno.c \
930 linux/x86_64/signalent1.h \
931 linux/x86_64/signalent2.h \
932 linux/x86_64/syscallent.h \
933 linux/x86_64/syscallent1.h \
934 linux/x86_64/syscallent2.h \
935 linux/x86_64/userent.h \
936 linux/xtensa/arch_regs.c \
937 linux/xtensa/arch_rt_sigframe.c \
938 linux/xtensa/get_error.c \
939 linux/xtensa/get_scno.c \
940 linux/xtensa/get_syscall_args.c \
941 linux/xtensa/get_syscall_result.c \
942 linux/xtensa/ioctls_arch0.h \
943 linux/xtensa/ioctls_inc0.h \
944 linux/xtensa/raw_syscall.h \
945 linux/xtensa/set_error.c \
946 linux/xtensa/set_scno.c \
947 linux/xtensa/syscallent.h \
948 linux/xtensa/userent.h \
957 $(XLAT_INPUT_FILES) \
958 $(XLAT_HEADER_FILES) \
962 .PHONY: check-valgrind-local
963 check-valgrind-local:
967 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
970 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
972 bpf_attr_check.c: $(srcdir)/bpf_attr.h $(srcdir)/gen_bpf_attr_check.sh
973 $(srcdir)/gen_bpf_attr_check.sh $< > $@-t && mv $@-t $@
976 $(filter %.c,$(strace_SOURCES)) $(filter %.c,$(libstrace_a_SOURCES))
978 sys_func_h_sources = $(filter-out $(strace_SOURCES_check),$(strace_SOURCES_c))
980 sys_func.h: $(patsubst %,$(srcdir)/%,$(sys_func_h_sources))
982 sed -n 's/^SYS_FUNC(.*/extern &;/p' $$f; \
985 syscallent_names = subcall.h syscallent.h syscallent1.h \
986 syscallent-n32.h syscallent-n64.h syscallent-o32.h
987 syscallent_patterns = $(patsubst %,\%/%,$(syscallent_names))
988 syscallent_files = $(filter $(syscallent_patterns),$(EXTRA_DIST))
990 sen.h: $(patsubst %,$(srcdir)/%,$(syscallent_files))
991 for f in $^; do cat -- $$f; done | \
992 $(srcdir)/generate_sen.sh > $@
995 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
996 ${AM_V_GEN}echo $(COPYRIGHT_YEAR) > $(distdir)/.year
997 ${AM_V_GEN}echo $(MANPAGE_DATE) > $(distdir)/.strace.1.in.date
999 today = $(shell LC_TIME=C date -u +%Y-%m-%d)
1000 version_regexp = $(subst .,\.,$(VERSION))
1001 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
1004 $(AM_V_GEN)if head -1 $< | \
1005 grep -x $(news_check_regexp) >/dev/null; then \
1008 echo >&2 '$<: check failed'; \
1012 ioctlsort_CC = $(CC_FOR_BUILD)
1013 ioctlsort_DEFS = $(DEFS)
1014 ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
1015 ioctlsort_CPPFLAGS = $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD)
1016 ioctlsort_CFLAGS = $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
1017 ioctlsort_LDFLAGS = $(AM_LDFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD)
1019 ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
1020 ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
1021 ioctl_redefs_h = $(filter-out ioctl_redefs0.h,$(subst ioctlent,ioctl_redefs,$(ioctlent_h)))
1023 ioctl_redefs%.h: ioctlent%.h ioctlent0.h
1025 sort ioctlent0.h | comm -23 $<-t - | \
1026 sed -r -n 's/^\{ "([^"]+)", (0x[[:xdigit:]]+) \},$$/#ifdef \1\n# undef \1\n# define \1 \2\n#endif/p' \
1031 ioctlent%.h: ioctlsort%
1034 # Need to pick up <linux/ioctl.h> definitions *for host* while compiling
1035 # ioctlsort *for build*, hence this magic.
1036 ioctl_iocdef.i: $(srcdir)/ioctl_iocdef.c
1037 $(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
1038 $(strace_CPPFLAGS) $(CPPFLAGS) $< -o $@
1040 ioctl_iocdef.h: ioctl_iocdef.i
1041 sed -n 's/^DEFINE HOST/#define /p' $< > $@
1043 ioctlsort%$(BUILD_EXEEXT): ioctlsort%.o
1044 $(ioctlsort_CC) $(ioctlsort_CFLAGS) $(ioctlsort_LDFLAGS) $< -o $@
1046 ioctlsort%.o: ioctls_all%.h ioctl_iocdef.h $(srcdir)/ioctlsort.c
1047 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
1049 ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
1052 BUILT_SOURCES = $(ioctl_redefs_h) $(ioctlent_h) \
1053 bpf_attr_check.c native_printer_decls.h native_printer_defs.h \
1054 printers.h sen.h sys_func.h .version
1055 CLEANFILES = $(ioctl_redefs_h) $(ioctlent_h) $(mpers_preproc_files) \
1056 ioctl_iocdef.h ioctl_iocdef.i \
1057 bpf_attr_check.c native_printer_decls.h native_printer_defs.h \
1058 printers.h sen.h sys_func.h
1059 DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h
1063 $(strace_OBJECTS): scno.h
1065 # defines mpers_source_files
1067 srcdir_mpers_source_files = $(patsubst %,$(srcdir)/%,$(mpers_source_files))
1068 mpers_preproc_files = $(mpers_source_files:.c=.c.mpers.i)
1071 mpers_PREFIX = $(mpers_NAME)_
1072 mpers_DEFS = $(DEFS)
1073 mpers_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
1074 mpers_CPPFLAGS = $(strace_CPPFLAGS) $(CPPFLAGS)
1075 mpers_sh_opts = $(mpers_DEFS) $(mpers_INCLUDES) $(mpers_CPPFLAGS)
1076 libmpers_CPPFLAGS = $(strace_CPPFLAGS) -DIN_MPERS
1077 libmpers_CFLAGS = $(strace_CFLAGS)
1081 mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h
1083 READELF="$(READELF)" \
1085 CFLAGS="$(mpers_sh_opts) -DMPERS_IS_$(mpers_NAME)" \
1087 CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \
1088 $(srcdir)/mpers.sh $(mpers_NAME) $(mpers_CC_FLAGS) $$f || exit; \
1092 m%_type_defs.h: $(srcdir_mpers_source_files)
1094 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; \
1096 echo '#undef MPERS_PRINTER_NAME' >> $@-t
1097 echo '#define MPERS_PRINTER_NAME(printer_name) printer_name' >> $@-t
1098 echo '#include "$(mpers_PREFIX)printer_decls.h"' >> $@-t
1099 echo '#include MPERS_$(mpers_PREFIX)IOCTL_MACROS' >> $@-t
1102 m%_funcs.h: $(srcdir_mpers_source_files)
1104 sed -r -n 's/^SYS_FUNC\(([^)]+)\)/#undef sys_\1\n#define sys_\1 $(mpers_PREFIX)sys_\1/p' $$f || exit; \
1106 echo '#include "sys_func.h"' >> $@-t
1111 %.c.mpers.i: $(srcdir)/%.c
1112 $(CPP) -P $(mpers_sh_opts) -DIN_MPERS_BOOTSTRAP $< -o $@
1114 mpers_printer_decl_pattern = ^MPERS_PRINTER_DECL\(([^,)]+),[[:space:]]*([^,)]+),[[:space:]]*([^)]+)\)$$
1116 printers.h: $(mpers_preproc_files)
1117 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1118 echo 'typedef struct {' >> $@-t
1120 sed -r -n 's/$(mpers_printer_decl_pattern)/ \1 (*\2)(\3);\n#define \2 MPERS_PRINTER_NAME(\2)\n/p' $$f \
1123 echo '} struct_printers;' >> $@-t
1124 echo 'extern const struct_printers *printers;' >> $@-t
1125 echo '#define MPERS_PRINTER_NAME(printer_name) printers->printer_name' >> $@-t
1128 %_printer_decls.h: $(mpers_preproc_files)
1129 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1131 sed -r -n 's/$(mpers_printer_decl_pattern)/extern \1 $(mpers_PREFIX)\2(\3);/p' $$f \
1136 %_printer_defs.h: $(mpers_preproc_files)
1137 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1139 sed -r -n 's/$(mpers_printer_decl_pattern)/.\2 = $(mpers_PREFIX)\2,/p' $$f \
1144 native_printer_decls.h native_printer_defs.h: mpers_PREFIX =
1148 strace_LDADD += libmpers-m32.a
1149 noinst_LIBRARIES += libmpers-m32.a
1150 libmpers_m32_a_SOURCES = $(mpers_source_files)
1151 libmpers_m32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_m32 -I$(builddir)/mpers-m32
1152 libmpers_m32_a_CFLAGS = $(libmpers_CFLAGS)
1153 mpers_m32_targets = mpers-m32.stamp m32_type_defs.h m32_funcs.h m32_printer_decls.h m32_printer_defs.h
1155 BUILT_SOURCES += $(mpers_m32_targets)
1156 CLEANFILES += $(mpers_m32_targets)
1158 $(mpers_m32_targets): mpers_NAME = m32
1159 $(mpers_m32_targets): mpers_CC_FLAGS = @cc_flags_m32@
1161 endif # HAVE_M32_MPERS
1165 strace_LDADD += libmpers-mx32.a
1166 noinst_LIBRARIES += libmpers-mx32.a
1167 libmpers_mx32_a_SOURCES = $(mpers_source_files)
1168 libmpers_mx32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_mx32 -I$(builddir)/mpers-mx32
1169 libmpers_mx32_a_CFLAGS = $(libmpers_CFLAGS)
1170 mpers_mx32_targets = mpers-mx32.stamp mx32_type_defs.h mx32_funcs.h mx32_printer_decls.h mx32_printer_defs.h
1172 BUILT_SOURCES += $(mpers_mx32_targets)
1173 CLEANFILES += $(mpers_mx32_targets)
1175 $(mpers_mx32_targets): mpers_NAME = mx32
1176 $(mpers_mx32_targets): mpers_CC_FLAGS = @cc_flags_mx32@
1178 endif # HAVE_MX32_MPERS
1181 -rm -rf mpers-m32 mpers-mx32
1185 gen_changelog_start_date = 2009-07-08 20:00
1186 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
1190 ./gitlog-to-changelog --append-dot \
1191 --since='$(gen_changelog_start_date)'; \
1192 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
1197 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
1198 $(srcdir)/Makefile.in $(srcdir)/.version
1202 sed '/^##/,$$d' CREDITS.in; \
1203 sed -n '1,/^##>/d; s/ */\t/; s/^./&/p' CREDITS.in \
1204 | maint/gen-contributors-list.sh - -e HEAD --initial \
1205 | sed 's/\t/ /g; s/^/\t/' \
1206 ) > $@-t && mv $@-t $@
1208 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX