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-2017 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 = \
84 # end of libstrace_a_SOURCES
99 bpf_seccomp_filter.c \
130 fetch_struct_flock.c \
131 fetch_struct_keyctl_kdf_params.c \
132 fetch_struct_mmsghdr.c \
133 fetch_struct_msghdr.c \
134 fetch_struct_stat.c \
135 fetch_struct_stat64.c \
136 fetch_struct_statfs.c \
168 keyctl_kdf_params.h \
173 linux/x32/asm_stat.h \
174 linux/x86_64/asm_stat.h \
197 netlink_sock_diag.h \
198 netlink_inet_diag.c \
199 netlink_netlink_diag.c \
200 netlink_packet_diag.c \
205 netlink_sock_diag.c \
206 netlink_unix_diag.c \
220 perf_event_struct.h \
231 print_sg_req_info.c \
234 print_struct_stat.c \
296 supported_personalities.h \
301 sysent_shorthand_defs.h \
302 sysent_shorthand_undefs.h \
331 # end of strace_SOURCES
334 strace_SOURCES += unwind.c
335 strace_CPPFLAGS += $(libunwind_CPPFLAGS)
336 strace_LDFLAGS += $(libunwind_LDFLAGS)
337 strace_LDADD += $(libunwind_LIBS)
339 strace_CPPFLAGS += $(libiberty_CPPFLAGS)
340 strace_LDFLAGS += $(libiberty_LDFLAGS)
341 strace_LDADD += $(libiberty_LIBS)
345 @CODE_COVERAGE_RULES@
346 CODE_COVERAGE_BRANCH_COVERAGE = 1
347 CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) \
348 --prefix $(shell cd $(abs_top_srcdir)/.. && pwd || echo .)
349 CODE_COVERAGE_IGNORE_PATTERN = '/usr/include/*'
350 strace_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
351 strace_CFLAGS += $(CODE_COVERAGE_CFLAGS)
352 strace_LDADD += $(CODE_COVERAGE_LIBS)
354 # Enable this to get link map generated
355 #strace_LDFLAGS += -Wl,-Map=strace.mapfile
364 README-linux-ptrace \
370 debian/source/format \
371 debian/strace-udeb.install \
373 debian/strace.examples \
374 debian/strace.install \
375 debian/strace.manpages \
376 debian/strace64.install \
377 debian/strace64.manpages \
382 linux/32/ioctls_inc.h \
383 linux/32/ioctls_inc_align16.h \
384 linux/32/ioctls_inc_align32.h \
385 linux/32/ioctls_inc_align64.h \
386 linux/32/syscallent.h \
387 linux/64/ioctls_inc.h \
388 linux/64/syscallent.h \
389 linux/aarch64/arch_defs.h \
390 linux/aarch64/arch_regs.c \
391 linux/aarch64/arch_regs.h \
392 linux/aarch64/arch_rt_sigframe.c\
393 linux/aarch64/arch_sigreturn.c \
394 linux/aarch64/errnoent1.h \
395 linux/aarch64/get_error.c \
396 linux/aarch64/get_scno.c \
397 linux/aarch64/get_syscall_args.c\
398 linux/aarch64/ioctls_arch0.h \
399 linux/aarch64/ioctls_arch1.h \
400 linux/aarch64/ioctls_inc0.h \
401 linux/aarch64/ioctls_inc1.h \
402 linux/aarch64/set_error.c \
403 linux/aarch64/set_scno.c \
404 linux/aarch64/signalent1.h \
405 linux/aarch64/syscallent.h \
406 linux/aarch64/syscallent1.h \
407 linux/alpha/arch_getrval2.c \
408 linux/alpha/arch_regs.c \
409 linux/alpha/arch_regs.h \
410 linux/alpha/arch_rt_sigframe.c \
411 linux/alpha/arch_sigreturn.c \
412 linux/alpha/errnoent.h \
413 linux/alpha/get_error.c \
414 linux/alpha/get_scno.c \
415 linux/alpha/get_syscall_args.c \
416 linux/alpha/get_syscall_result.c\
417 linux/alpha/ioctls_arch0.h \
418 linux/alpha/ioctls_inc0.h \
419 linux/alpha/set_error.c \
420 linux/alpha/set_scno.c \
421 linux/alpha/signalent.h \
422 linux/alpha/syscallent.h \
423 linux/alpha/userent.h \
424 linux/arc/arch_regs.c \
425 linux/arc/arch_regs.h \
426 linux/arc/arch_rt_sigframe.c \
427 linux/arc/get_error.c \
428 linux/arc/get_scno.c \
429 linux/arc/get_syscall_args.c \
430 linux/arc/ioctls_arch0.h \
431 linux/arc/ioctls_inc0.h \
432 linux/arc/set_error.c \
433 linux/arc/set_scno.c \
434 linux/arc/syscallent.h \
438 linux/arch_sigreturn.c \
439 linux/arm/arch_defs.h \
440 linux/arm/arch_regs.c \
441 linux/arm/arch_regs.h \
442 linux/arm/arch_rt_sigframe.c \
443 linux/arm/arch_sigreturn.c \
444 linux/arm/get_error.c \
445 linux/arm/get_scno.c \
446 linux/arm/get_syscall_args.c \
447 linux/arm/ioctls_arch0.h \
448 linux/arm/ioctls_inc0.h \
449 linux/arm/set_error.c \
450 linux/arm/set_scno.c \
451 linux/arm/syscallent.h \
452 linux/arm/userent.h \
453 linux/avr32/arch_regs.c \
454 linux/avr32/arch_regs.h \
455 linux/avr32/arch_rt_sigframe.c \
456 linux/avr32/get_error.c \
457 linux/avr32/get_scno.c \
458 linux/avr32/get_syscall_args.c \
459 linux/avr32/ioctls_arch0.h \
460 linux/avr32/ioctls_inc0.h \
461 linux/avr32/set_error.c \
462 linux/avr32/set_scno.c \
463 linux/avr32/syscallent.h \
464 linux/avr32/userent.h \
465 linux/bfin/arch_regs.c \
466 linux/bfin/arch_rt_sigframe.c \
467 linux/bfin/get_error.c \
468 linux/bfin/get_scno.c \
469 linux/bfin/get_syscall_args.c \
470 linux/bfin/get_syscall_result.c \
471 linux/bfin/ioctls_arch0.h \
472 linux/bfin/ioctls_inc0.h \
473 linux/bfin/rt_sigframe.h \
474 linux/bfin/set_error.c \
475 linux/bfin/set_scno.c \
476 linux/bfin/syscallent.h \
477 linux/bfin/userent.h \
478 linux/crisv10/arch_regs.c \
479 linux/crisv10/arch_rt_sigframe.c\
480 linux/crisv10/arch_sigreturn.c \
481 linux/crisv10/get_error.c \
482 linux/crisv10/get_scno.c \
483 linux/crisv10/get_syscall_args.c \
484 linux/crisv10/get_syscall_result.c \
485 linux/crisv10/rt_sigframe.h \
486 linux/crisv10/set_error.c \
487 linux/crisv10/set_scno.c \
488 linux/crisv10/syscallent.h \
489 linux/crisv10/userent.h \
490 linux/crisv32/arch_regs.c \
491 linux/crisv32/arch_rt_sigframe.c\
492 linux/crisv32/arch_sigreturn.c \
493 linux/crisv32/get_error.c \
494 linux/crisv32/get_scno.c \
495 linux/crisv32/get_syscall_args.c \
496 linux/crisv32/get_syscall_result.c \
497 linux/crisv32/rt_sigframe.h \
498 linux/crisv32/set_error.c \
499 linux/crisv32/set_scno.c \
500 linux/crisv32/syscallent.h \
501 linux/crisv32/userent.h \
504 linux/getregs_old.h \
505 linux/hppa/arch_regs.c \
506 linux/hppa/arch_regs.h \
507 linux/hppa/arch_rt_sigframe.c \
508 linux/hppa/errnoent.h \
509 linux/hppa/get_error.c \
510 linux/hppa/get_scno.c \
511 linux/hppa/get_syscall_args.c \
512 linux/hppa/get_syscall_result.c \
513 linux/hppa/ioctls_arch0.h \
514 linux/hppa/ioctls_inc0.h \
515 linux/hppa/rt_sigframe.h \
516 linux/hppa/set_error.c \
517 linux/hppa/set_scno.c \
518 linux/hppa/signalent.h \
519 linux/hppa/syscallent.h \
520 linux/i386/arch_kvm.c \
521 linux/i386/arch_defs.h \
522 linux/i386/arch_regs.c \
523 linux/i386/arch_regs.h \
524 linux/i386/arch_rt_sigframe.c \
525 linux/i386/arch_sigreturn.c \
526 linux/i386/get_error.c \
527 linux/i386/get_scno.c \
528 linux/i386/get_syscall_args.c \
529 linux/i386/ioctls_arch0.h \
530 linux/i386/ioctls_inc0.h \
531 linux/i386/rt_sigframe.h \
532 linux/i386/set_error.c \
533 linux/i386/set_scno.c \
534 linux/i386/syscallent.h \
535 linux/i386/userent.h \
536 linux/i386/userent0.h \
537 linux/ia64/arch_getrval2.c \
538 linux/ia64/arch_regs.c \
539 linux/ia64/arch_regs.h \
540 linux/ia64/arch_rt_sigframe.c \
541 linux/ia64/get_error.c \
542 linux/ia64/get_scno.c \
543 linux/ia64/get_syscall_args.c \
544 linux/ia64/ioctls_arch0.h \
545 linux/ia64/ioctls_inc0.h \
546 linux/ia64/rt_sigframe.h \
547 linux/ia64/set_error.c \
548 linux/ia64/set_scno.c \
549 linux/ia64/syscallent.h \
550 linux/ia64/userent.h \
552 linux/m68k/arch_defs.h \
553 linux/m68k/arch_regs.c \
554 linux/m68k/arch_regs.h \
555 linux/m68k/arch_rt_sigframe.c \
556 linux/m68k/arch_sigreturn.c \
557 linux/m68k/get_error.c \
558 linux/m68k/get_scno.c \
559 linux/m68k/get_syscall_args.c \
560 linux/m68k/ioctls_arch0.h \
561 linux/m68k/ioctls_inc0.h \
562 linux/m68k/rt_sigframe.h \
563 linux/m68k/set_error.c \
564 linux/m68k/set_scno.c \
565 linux/m68k/syscallent.h \
566 linux/m68k/userent.h \
567 linux/metag/arch_regs.c \
568 linux/metag/arch_regs.h \
569 linux/metag/arch_rt_sigframe.c \
570 linux/metag/get_error.c \
571 linux/metag/get_scno.c \
572 linux/metag/get_syscall_args.c \
573 linux/metag/ioctls_arch0.h \
574 linux/metag/ioctls_inc0.h \
575 linux/metag/set_error.c \
576 linux/metag/set_scno.c \
577 linux/metag/syscallent.h \
578 linux/microblaze/arch_regs.c \
579 linux/microblaze/arch_rt_sigframe.c\
580 linux/microblaze/arch_sigreturn.c \
581 linux/microblaze/get_error.c \
582 linux/microblaze/get_scno.c \
583 linux/microblaze/get_syscall_args.c \
584 linux/microblaze/get_syscall_result.c \
585 linux/microblaze/ioctls_arch0.h \
586 linux/microblaze/ioctls_inc0.h \
587 linux/microblaze/set_error.c \
588 linux/microblaze/set_scno.c \
589 linux/microblaze/syscallent.h \
590 linux/microblaze/userent.h \
591 linux/mips/arch_getrval2.c \
592 linux/mips/arch_regs.c \
593 linux/mips/arch_regs.h \
594 linux/mips/arch_rt_sigframe.c \
595 linux/mips/arch_sigreturn.c \
596 linux/mips/errnoent.h \
597 linux/mips/genstub.sh \
598 linux/mips/get_error.c \
599 linux/mips/get_scno.c \
600 linux/mips/get_syscall_args.c \
601 linux/mips/ioctls_arch0.h \
602 linux/mips/ioctls_inc0.h \
603 linux/mips/rt_sigframe.h \
604 linux/mips/set_error.c \
605 linux/mips/set_scno.c \
606 linux/mips/signalent.h \
607 linux/mips/syscallent-compat.h \
608 linux/mips/syscallent-n32.h \
609 linux/mips/syscallent-n64.h \
610 linux/mips/syscallent-o32.h \
611 linux/mips/syscallent.h \
612 linux/mips/userent.h \
613 linux/netlink_diag.h \
614 linux/nios2/arch_regs.c \
615 linux/nios2/arch_regs.h \
616 linux/nios2/arch_rt_sigframe.c \
617 linux/nios2/get_error.c \
618 linux/nios2/get_scno.c \
619 linux/nios2/get_syscall_args.c \
620 linux/nios2/ioctls_arch0.h \
621 linux/nios2/ioctls_inc0.h \
622 linux/nios2/set_error.c \
623 linux/nios2/set_scno.c \
624 linux/nios2/syscallent.h \
625 linux/or1k/arch_regs.c \
626 linux/or1k/arch_regs.h \
627 linux/or1k/arch_rt_sigframe.c \
628 linux/or1k/get_error.c \
629 linux/or1k/get_scno.c \
630 linux/or1k/get_syscall_args.c \
631 linux/or1k/ioctls_arch0.h \
632 linux/or1k/ioctls_inc0.h \
633 linux/or1k/set_error.c \
634 linux/or1k/set_scno.c \
635 linux/or1k/syscallent.h \
636 linux/or1k/userent.h \
637 linux/packet_diag.h \
638 linux/powerpc/arch_regs.c \
639 linux/powerpc/arch_regs.h \
640 linux/powerpc/arch_rt_sigframe.c\
641 linux/powerpc/arch_sigreturn.c \
642 linux/powerpc/errnoent.h \
643 linux/powerpc/get_error.c \
644 linux/powerpc/get_scno.c \
645 linux/powerpc/get_syscall_args.c \
646 linux/powerpc/getregs_old.c \
647 linux/powerpc/getregs_old.h \
648 linux/powerpc/ioctls_arch0.h \
649 linux/powerpc/ioctls_inc0.h \
650 linux/powerpc/set_error.c \
651 linux/powerpc/set_scno.c \
652 linux/powerpc/syscallent.h \
653 linux/powerpc/userent.h \
654 linux/powerpc64/arch_regs.c \
655 linux/powerpc64/arch_regs.h \
656 linux/powerpc64/arch_rt_sigframe.c\
657 linux/powerpc64/arch_sigreturn.c \
658 linux/powerpc64/errnoent.h \
659 linux/powerpc64/errnoent1.h \
660 linux/powerpc64/get_error.c \
661 linux/powerpc64/get_scno.c \
662 linux/powerpc64/get_syscall_args.c \
663 linux/powerpc64/getregs_old.c \
664 linux/powerpc64/getregs_old.h \
665 linux/powerpc64/ioctls_arch0.h \
666 linux/powerpc64/ioctls_arch1.h \
667 linux/powerpc64/ioctls_inc0.h \
668 linux/powerpc64/ioctls_inc1.h \
669 linux/powerpc64/rt_sigframe.h \
670 linux/powerpc64/set_error.c \
671 linux/powerpc64/set_scno.c \
672 linux/powerpc64/signalent1.h \
673 linux/powerpc64/syscallent.h \
674 linux/powerpc64/syscallent1.h \
675 linux/powerpc64/userent.h \
676 linux/riscv/arch_regs.c \
677 linux/riscv/arch_regs.h \
678 linux/riscv/arch_rt_sigframe.c \
679 linux/riscv/errnoent1.h \
680 linux/riscv/get_error.c \
681 linux/riscv/get_scno.c \
682 linux/riscv/get_syscall_args.c \
683 linux/riscv/ioctls_arch0.h \
684 linux/riscv/ioctls_arch1.h \
685 linux/riscv/ioctls_inc0.h \
686 linux/riscv/ioctls_inc1.h \
687 linux/riscv/set_error.c \
688 linux/riscv/set_scno.c \
689 linux/riscv/signalent1.h \
690 linux/riscv/syscallent.h \
691 linux/riscv/syscallent1.h \
692 linux/rt_sigframe.h \
693 linux/s390/arch_defs.h \
694 linux/s390/arch_regs.c \
695 linux/s390/arch_regs.h \
696 linux/s390/arch_rt_sigframe.c \
697 linux/s390/arch_sigreturn.c \
698 linux/s390/get_error.c \
699 linux/s390/get_scno.c \
700 linux/s390/get_syscall_args.c \
701 linux/s390/ioctls_arch0.h \
702 linux/s390/ioctls_inc0.h \
703 linux/s390/rt_sigframe.h \
704 linux/s390/set_error.c \
705 linux/s390/set_scno.c \
706 linux/s390/syscallent.h \
707 linux/s390/userent.h \
708 linux/s390/userent0.h \
709 linux/s390/userent1.h \
710 linux/s390x/arch_defs.h \
711 linux/s390x/arch_regs.c \
712 linux/s390x/arch_regs.h \
713 linux/s390x/arch_rt_sigframe.c \
714 linux/s390x/arch_sigreturn.c \
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_inc0.h \
720 linux/s390x/rt_sigframe.h \
721 linux/s390x/set_error.c \
722 linux/s390x/set_scno.c \
723 linux/s390x/syscallent.h \
724 linux/s390x/userent.h \
725 linux/sh/arch_getrval2.c \
726 linux/sh/arch_regs.c \
727 linux/sh/arch_rt_sigframe.c \
728 linux/sh/get_error.c \
729 linux/sh/get_scno.c \
730 linux/sh/get_syscall_args.c \
731 linux/sh/get_syscall_result.c \
732 linux/sh/ioctls_arch0.h \
733 linux/sh/ioctls_inc0.h \
734 linux/sh/set_error.c \
735 linux/sh/set_scno.c \
736 linux/sh/syscallent.h \
738 linux/sh/userent0.h \
739 linux/sh64/arch_regs.c \
740 linux/sh64/arch_regs.h \
741 linux/sh64/arch_rt_sigframe.c \
742 linux/sh64/get_error.c \
743 linux/sh64/get_scno.c \
744 linux/sh64/get_syscall_args.c \
745 linux/sh64/get_syscall_result.c \
746 linux/sh64/ioctls_arch0.h \
747 linux/sh64/ioctls_inc0.h \
748 linux/sh64/rt_sigframe.h \
749 linux/sh64/set_error.c \
750 linux/sh64/set_scno.c \
751 linux/sh64/syscallent.h \
752 linux/sh64/userent.h \
756 linux/sparc/arch_getrval2.c \
757 linux/sparc/arch_regs.c \
758 linux/sparc/arch_regs.h \
759 linux/sparc/arch_rt_sigframe.c \
760 linux/sparc/arch_sigreturn.c \
761 linux/sparc/errnoent.h \
763 linux/sparc/get_error.c \
764 linux/sparc/get_scno.c \
765 linux/sparc/get_syscall_args.c \
766 linux/sparc/ioctls_arch0.h \
767 linux/sparc/ioctls_inc0.h \
768 linux/sparc/rt_sigframe.h \
769 linux/sparc/set_error.c \
770 linux/sparc/set_scno.c \
771 linux/sparc/signalent.h \
772 linux/sparc/syscallent.h \
773 linux/sparc/userent.h \
774 linux/sparc64/arch_getrval2.c \
775 linux/sparc64/arch_regs.c \
776 linux/sparc64/arch_regs.h \
777 linux/sparc64/arch_rt_sigframe.c\
778 linux/sparc64/arch_sigreturn.c \
779 linux/sparc64/errnoent.h \
780 linux/sparc64/errnoent1.h \
781 linux/sparc64/get_error.c \
782 linux/sparc64/get_scno.c \
783 linux/sparc64/get_syscall_args.c\
784 linux/sparc64/ioctls_arch0.h \
785 linux/sparc64/ioctls_arch1.h \
786 linux/sparc64/ioctls_inc0.h \
787 linux/sparc64/ioctls_inc1.h \
788 linux/sparc64/rt_sigframe.h \
789 linux/sparc64/set_error.c \
790 linux/sparc64/set_scno.c \
791 linux/sparc64/signalent.h \
792 linux/sparc64/signalent1.h \
793 linux/sparc64/syscallent.h \
794 linux/sparc64/syscallent1.h \
795 linux/sparc64/userent.h \
798 linux/tile/arch_regs.c \
799 linux/tile/arch_regs.h \
800 linux/tile/arch_rt_sigframe.c \
801 linux/tile/arch_sigreturn.c \
802 linux/tile/errnoent1.h \
803 linux/tile/get_error.c \
804 linux/tile/get_scno.c \
805 linux/tile/get_syscall_args.c \
806 linux/tile/ioctls_arch0.h \
807 linux/tile/ioctls_arch1.h \
808 linux/tile/ioctls_inc0.h \
809 linux/tile/ioctls_inc1.h \
810 linux/tile/rt_sigframe.h \
811 linux/tile/set_error.c \
812 linux/tile/set_scno.c \
813 linux/tile/signalent1.h \
814 linux/tile/syscallent.h \
815 linux/tile/syscallent1.h \
816 linux/tile/userent.h \
820 linux/x32/arch_defs.h \
821 linux/x32/arch_kvm.c \
822 linux/x32/arch_regs.c \
823 linux/x32/arch_regs.h \
824 linux/x32/arch_rt_sigframe.c \
825 linux/x32/arch_sigreturn.c \
826 linux/x32/errnoent1.h \
827 linux/x32/get_error.c \
828 linux/x32/get_scno.c \
829 linux/x32/get_syscall_args.c \
830 linux/x32/ioctls_arch0.h \
831 linux/x32/ioctls_arch1.h \
832 linux/x32/ioctls_inc0.h \
833 linux/x32/ioctls_inc1.h \
834 linux/x32/rt_sigframe.h \
835 linux/x32/set_error.c \
836 linux/x32/set_scno.c \
837 linux/x32/signalent1.h \
838 linux/x32/syscallent.h \
839 linux/x32/syscallent1.h \
840 linux/x32/userent.h \
841 linux/x86_64/arch_defs.h \
842 linux/x86_64/arch_kvm.c \
843 linux/x86_64/arch_regs.c \
844 linux/x86_64/arch_regs.h \
845 linux/x86_64/arch_rt_sigframe.c \
846 linux/x86_64/arch_sigreturn.c \
847 linux/x86_64/errnoent1.h \
848 linux/x86_64/errnoent2.h \
849 linux/x86_64/gentab.pl \
850 linux/x86_64/get_error.c \
851 linux/x86_64/get_scno.c \
852 linux/x86_64/get_syscall_args.c \
853 linux/x86_64/getregs_old.c \
854 linux/x86_64/getregs_old.h \
855 linux/x86_64/ioctls_arch0.h \
856 linux/x86_64/ioctls_arch1.h \
857 linux/x86_64/ioctls_arch2.h \
858 linux/x86_64/ioctls_inc0.h \
859 linux/x86_64/ioctls_inc1.h \
860 linux/x86_64/ioctls_inc2.h \
861 linux/x86_64/rt_sigframe.h \
862 linux/x86_64/set_error.c \
863 linux/x86_64/set_scno.c \
864 linux/x86_64/signalent1.h \
865 linux/x86_64/signalent2.h \
866 linux/x86_64/syscallent.h \
867 linux/x86_64/syscallent1.h \
868 linux/x86_64/syscallent2.h \
869 linux/x86_64/userent.h \
870 linux/xtensa/arch_regs.c \
871 linux/xtensa/arch_rt_sigframe.c \
872 linux/xtensa/get_error.c \
873 linux/xtensa/get_scno.c \
874 linux/xtensa/get_syscall_args.c \
875 linux/xtensa/get_syscall_result.c \
876 linux/xtensa/ioctls_arch0.h \
877 linux/xtensa/ioctls_inc0.h \
878 linux/xtensa/set_error.c \
879 linux/xtensa/set_scno.c \
880 linux/xtensa/syscallent.h \
881 linux/xtensa/userent.h \
890 $(XLAT_INPUT_FILES) \
891 $(XLAT_HEADER_FILES) \
895 .PHONY: check-valgrind-local
896 check-valgrind-local:
900 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
903 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
906 $(filter %.c,$(strace_SOURCES)) $(filter %.c,$(libstrace_a_SOURCES))
908 sys_func.h: $(patsubst %,$(srcdir)/%,$(strace_SOURCES_c))
910 sed -n 's/^SYS_FUNC(.*/extern &;/p' $$f; \
913 syscallent_names = subcall.h syscallent.h syscallent1.h \
914 syscallent-n32.h syscallent-n64.h syscallent-o32.h
915 syscallent_patterns = $(patsubst %,\%/%,$(syscallent_names))
916 syscallent_files = $(filter $(syscallent_patterns),$(EXTRA_DIST))
918 sen.h: $(patsubst %,$(srcdir)/%,$(syscallent_files))
919 for f in $^; do cat -- $$f; done | \
920 $(srcdir)/generate_sen.sh > $@
923 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
924 ${AM_V_GEN}echo $(COPYRIGHT_YEAR) > $(distdir)/.year
925 ${AM_V_GEN}echo $(MANPAGE_DATE) > $(distdir)/.strace.1.in.date
927 today = $(shell date +%Y-%m-%d)
928 version_regexp = $(subst .,\.,$(VERSION))
929 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
932 $(AM_V_GEN)if head -1 $< | \
933 grep -x $(news_check_regexp) >/dev/null; then \
936 echo >&2 '$<: check failed'; \
940 ioctlsort_CC = $(CC_FOR_BUILD)
941 ioctlsort_DEFS = $(DEFS)
942 ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
943 ioctlsort_CPPFLAGS = $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD)
944 ioctlsort_CFLAGS = $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
945 ioctlsort_LDFLAGS = $(AM_LDFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD)
947 ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
948 ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
949 ioctl_redefs_h = $(filter-out ioctl_redefs0.h,$(subst ioctlent,ioctl_redefs,$(ioctlent_h)))
951 ioctl_redefs%.h: ioctlent%.h ioctlent0.h
953 sort ioctlent0.h | comm -23 $<-t - | \
954 sed -r -n 's/^\{ "([^"]+)", (0x[[:xdigit:]]+) \},$$/#ifdef \1\n# undef \1\n# define \1 \2\n#endif/p' \
959 ioctlent%.h: ioctlsort%
962 # Need to pick up <linux/ioctl.h> definitions *for host* while compiling
963 # ioctlsort *for build*, hence this magic.
964 ioctl_iocdef.i: $(srcdir)/ioctl_iocdef.c
965 $(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
966 $(strace_CPPFLAGS) $(CPPFLAGS) $< -o $@
968 ioctl_iocdef.h: ioctl_iocdef.i
969 sed -n 's/^DEFINE HOST/#define /p' $< > $@
971 ioctlsort%$(BUILD_EXEEXT): ioctlsort%.o
972 $(ioctlsort_CC) $(ioctlsort_CFLAGS) $(ioctlsort_LDFLAGS) $< -o $@
974 ioctlsort%.o: ioctls_all%.h ioctl_iocdef.h $(srcdir)/ioctlsort.c
975 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
977 ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
980 BUILT_SOURCES = $(ioctl_redefs_h) $(ioctlent_h) \
981 native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h .version
982 CLEANFILES = $(ioctl_redefs_h) $(ioctlent_h) $(mpers_preproc_files) \
983 ioctl_iocdef.h ioctl_iocdef.i \
984 native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h
985 DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h
989 $(strace_OBJECTS): scno.h
991 # defines mpers_source_files
993 srcdir_mpers_source_files = $(patsubst %,$(srcdir)/%,$(mpers_source_files))
994 mpers_preproc_files = $(mpers_source_files:.c=.c.mpers.i)
997 mpers_PREFIX = $(mpers_NAME)_
999 mpers_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
1000 mpers_CPPFLAGS = $(strace_CPPFLAGS) $(CPPFLAGS)
1001 mpers_sh_opts = $(mpers_DEFS) $(mpers_INCLUDES) $(mpers_CPPFLAGS)
1002 libmpers_CPPFLAGS = $(strace_CPPFLAGS) -DIN_MPERS
1003 libmpers_CFLAGS = $(strace_CFLAGS)
1007 mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h
1009 READELF="$(READELF)" \
1011 CFLAGS="$(mpers_sh_opts) -DMPERS_IS_$(mpers_NAME)" \
1013 CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \
1014 $(srcdir)/mpers.sh $(mpers_NAME) $(mpers_CC_FLAGS) $$f || exit; \
1018 m%_type_defs.h: $(srcdir_mpers_source_files)
1020 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; \
1022 echo '#undef MPERS_PRINTER_NAME' >> $@-t
1023 echo '#define MPERS_PRINTER_NAME(printer_name) printer_name' >> $@-t
1024 echo '#include "$(mpers_PREFIX)printer_decls.h"' >> $@-t
1025 echo '#include MPERS_$(mpers_PREFIX)IOCTL_MACROS' >> $@-t
1028 m%_funcs.h: $(srcdir_mpers_source_files)
1030 sed -r -n 's/^SYS_FUNC\(([^)]+)\)/#undef sys_\1\n#define sys_\1 $(mpers_PREFIX)sys_\1/p' $$f || exit; \
1032 echo '#include "sys_func.h"' >> $@-t
1037 %.c.mpers.i: $(srcdir)/%.c
1038 $(CPP) -P $(mpers_sh_opts) -DIN_MPERS_BOOTSTRAP $< -o $@
1040 mpers_printer_decl_pattern = ^MPERS_PRINTER_DECL\(([^,)]+),[[:space:]]*([^,)]+),[[:space:]]*([^)]+)\)$$
1042 printers.h: $(mpers_preproc_files)
1043 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1044 echo 'typedef struct {' >> $@-t
1046 sed -r -n 's/$(mpers_printer_decl_pattern)/ \1 (*\2)(\3);\n#define \2 MPERS_PRINTER_NAME(\2)\n/p' $$f \
1049 echo '} struct_printers;' >> $@-t
1050 echo 'extern const struct_printers *printers;' >> $@-t
1051 echo '#define MPERS_PRINTER_NAME(printer_name) printers->printer_name' >> $@-t
1054 %_printer_decls.h: $(mpers_preproc_files)
1055 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1057 sed -r -n 's/$(mpers_printer_decl_pattern)/extern \1 $(mpers_PREFIX)\2(\3);/p' $$f \
1062 %_printer_defs.h: $(mpers_preproc_files)
1063 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
1065 sed -r -n 's/$(mpers_printer_decl_pattern)/.\2 = $(mpers_PREFIX)\2,/p' $$f \
1070 native_printer_decls.h native_printer_defs.h: mpers_PREFIX =
1074 strace_LDADD += libmpers-m32.a
1075 noinst_LIBRARIES += libmpers-m32.a
1076 libmpers_m32_a_SOURCES = $(mpers_source_files)
1077 libmpers_m32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_m32 -I$(builddir)/mpers-m32
1078 libmpers_m32_a_CFLAGS = $(libmpers_CFLAGS)
1079 mpers_m32_targets = mpers-m32.stamp m32_type_defs.h m32_funcs.h m32_printer_decls.h m32_printer_defs.h
1081 BUILT_SOURCES += $(mpers_m32_targets)
1082 CLEANFILES += $(mpers_m32_targets)
1084 $(mpers_m32_targets): mpers_NAME = m32
1085 $(mpers_m32_targets): mpers_CC_FLAGS = @cc_flags_m32@
1087 endif # HAVE_M32_MPERS
1091 strace_LDADD += libmpers-mx32.a
1092 noinst_LIBRARIES += libmpers-mx32.a
1093 libmpers_mx32_a_SOURCES = $(mpers_source_files)
1094 libmpers_mx32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_mx32 -I$(builddir)/mpers-mx32
1095 libmpers_mx32_a_CFLAGS = $(libmpers_CFLAGS)
1096 mpers_mx32_targets = mpers-mx32.stamp mx32_type_defs.h mx32_funcs.h mx32_printer_decls.h mx32_printer_defs.h
1098 BUILT_SOURCES += $(mpers_mx32_targets)
1099 CLEANFILES += $(mpers_mx32_targets)
1101 $(mpers_mx32_targets): mpers_NAME = mx32
1102 $(mpers_mx32_targets): mpers_CC_FLAGS = @cc_flags_mx32@
1104 endif # HAVE_MX32_MPERS
1107 -rm -rf mpers-m32 mpers-mx32
1111 gen_changelog_start_date = 2009-07-08 20:00
1112 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
1116 ./gitlog-to-changelog --append-dot \
1117 --since='$(gen_changelog_start_date)'; \
1118 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
1123 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
1124 $(srcdir)/Makefile.in $(srcdir)/.version
1128 sed '/^##/,$$d' CREDITS.in; \
1129 sed -n '1,/^##>/d; s/ */\t/; s/^./&/p' CREDITS.in \
1130 | maint/gen-contributors-list.sh - -e HEAD --initial \
1131 | sed 's/\t/ /g; s/^/\t/' \
1132 ) > $@-t && mv $@-t $@
1134 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX