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