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