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