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