1 # Automake input for strace.
7 TESTS_MX32 = tests-mx32
9 SUBDIRS = tests $(TESTS_M32) $(TESTS_MX32)
13 bin_SCRIPTS = strace-graph strace-log-merge
16 # ARCH is `i386', `m68k', `sparc', etc.
19 ACLOCAL_AMFLAGS = -I m4
20 AM_CFLAGS = $(WARN_CFLAGS)
21 AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \
22 -I$(srcdir)/$(OS)/$(ARCH) \
28 include xlat/Makemodule.am
30 strace_CPPFLAGS = $(AM_CPPFLAGS)
64 fetch_seccomp_fprog.c \
173 # end of strace_SOURCES
176 strace_SOURCES += unwind.c
177 strace_CPPFLAGS += $(libunwind_CPPFLAGS)
178 strace_LDFLAGS += $(libunwind_LDFLAGS)
179 strace_LDADD += $(libunwind_LIBS)
182 noinst_HEADERS = defs.h
183 # Enable this to get link map generated
184 #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
193 README-linux-ptrace \
199 debian/source/format \
200 debian/strace-udeb.install \
202 debian/strace.examples \
203 debian/strace.install \
204 debian/strace.manpages \
205 debian/strace64.install \
206 debian/strace64.manpages \
211 linux/32/ioctls_inc.h \
212 linux/32/ioctls_inc_align32.h \
213 linux/32/ioctls_inc_align64.h \
214 linux/32/syscallent.h \
215 linux/64/ioctls_inc.h \
216 linux/64/syscallent.h \
217 linux/aarch64/arch_regs.c \
218 linux/aarch64/arch_regs.h \
219 linux/aarch64/arch_sigreturn.c \
220 linux/aarch64/errnoent1.h \
221 linux/aarch64/get_error.c \
222 linux/aarch64/get_scno.c \
223 linux/aarch64/get_syscall_args.c\
224 linux/aarch64/ioctls_arch0.h \
225 linux/aarch64/ioctls_arch1.h \
226 linux/aarch64/ioctls_inc0.h \
227 linux/aarch64/ioctls_inc1.h \
228 linux/aarch64/print_pc.c \
229 linux/aarch64/signalent1.h \
230 linux/aarch64/syscallent.h \
231 linux/aarch64/syscallent1.h \
232 linux/alpha/arch_getrval2.c \
233 linux/alpha/arch_regs.c \
234 linux/alpha/arch_regs.h \
235 linux/alpha/arch_sigreturn.c \
236 linux/alpha/errnoent.h \
237 linux/alpha/get_error.c \
238 linux/alpha/get_scno.c \
239 linux/alpha/get_syscall_args.c \
240 linux/alpha/get_syscall_result.c\
241 linux/alpha/ioctls_arch0.h \
242 linux/alpha/ioctls_inc0.h \
243 linux/alpha/print_pc.c \
244 linux/alpha/signalent.h \
245 linux/alpha/syscallent.h \
246 linux/alpha/userent.h \
247 linux/arc/arch_regs.c \
248 linux/arc/get_error.c \
249 linux/arc/get_scno.c \
250 linux/arc/get_syscall_args.c \
251 linux/arc/ioctls_arch0.h \
252 linux/arc/ioctls_inc0.h \
253 linux/arc/print_pc.c \
254 linux/arc/syscallent.h \
256 linux/arch_sigreturn.c \
257 linux/arm/arch_regs.c \
258 linux/arm/arch_regs.h \
259 linux/arm/arch_sigreturn.c \
260 linux/arm/get_error.c \
261 linux/arm/get_scno.c \
262 linux/arm/get_syscall_args.c \
263 linux/arm/ioctls_arch0.h \
264 linux/arm/ioctls_inc0.h \
265 linux/arm/print_pc.c \
266 linux/arm/syscallent.h \
267 linux/arm/userent.h \
268 linux/avr32/arch_regs.c \
269 linux/avr32/get_error.c \
270 linux/avr32/get_scno.c \
271 linux/avr32/get_syscall_args.c \
272 linux/avr32/ioctls_arch0.h \
273 linux/avr32/ioctls_inc0.h \
274 linux/avr32/print_pc.c \
275 linux/avr32/syscallent.h \
276 linux/avr32/userent.h \
277 linux/bfin/arch_regs.c \
278 linux/bfin/get_error.c \
279 linux/bfin/get_scno.c \
280 linux/bfin/get_syscall_args.c \
281 linux/bfin/get_syscall_result.c \
282 linux/bfin/ioctls_arch0.h \
283 linux/bfin/ioctls_inc0.h \
284 linux/bfin/print_pc.c \
285 linux/bfin/syscallent.h \
286 linux/bfin/userent.h \
287 linux/crisv10/arch_regs.c \
288 linux/crisv10/arch_sigreturn.c \
289 linux/crisv10/get_error.c \
290 linux/crisv10/get_scno.c \
291 linux/crisv10/get_syscall_args.c \
292 linux/crisv10/get_syscall_result.c \
293 linux/crisv10/print_pc.c \
294 linux/crisv10/userent.h \
295 linux/crisv32/arch_regs.c \
296 linux/crisv32/arch_sigreturn.c \
297 linux/crisv32/get_error.c \
298 linux/crisv32/get_scno.c \
299 linux/crisv32/get_syscall_args.c \
300 linux/crisv32/get_syscall_result.c \
301 linux/crisv32/print_pc.c \
302 linux/crisv32/userent.h \
305 linux/hppa/arch_regs.c \
306 linux/hppa/arch_regs.h \
307 linux/hppa/errnoent.h \
308 linux/hppa/get_error.c \
309 linux/hppa/get_scno.c \
310 linux/hppa/get_syscall_args.c \
311 linux/hppa/get_syscall_result.c \
312 linux/hppa/ioctls_arch0.h \
313 linux/hppa/ioctls_inc0.h \
314 linux/hppa/print_pc.c \
315 linux/hppa/signalent.h \
316 linux/hppa/syscallent.h \
317 linux/i386/arch_regs.c \
318 linux/i386/arch_regs.h \
319 linux/i386/arch_sigreturn.c \
320 linux/i386/get_error.c \
321 linux/i386/get_scno.c \
322 linux/i386/get_syscall_args.c \
323 linux/i386/ioctls_arch0.h \
324 linux/i386/ioctls_inc0.h \
325 linux/i386/print_pc.c \
326 linux/i386/syscallent.h \
327 linux/i386/userent.h \
328 linux/i386/userent0.h \
329 linux/ia64/arch_getrval2.c \
330 linux/ia64/arch_regs.c \
331 linux/ia64/arch_regs.h \
332 linux/ia64/arch_sigreturn.c \
333 linux/ia64/get_error.c \
334 linux/ia64/get_scno.c \
335 linux/ia64/get_syscall_args.c \
336 linux/ia64/ioctls_arch0.h \
337 linux/ia64/ioctls_inc0.h \
338 linux/ia64/print_pc.c \
339 linux/ia64/syscallent.h \
340 linux/ia64/userent.h \
342 linux/m68k/arch_regs.c \
343 linux/m68k/arch_sigreturn.c \
344 linux/m68k/get_error.c \
345 linux/m68k/get_scno.c \
346 linux/m68k/get_syscall_args.c \
347 linux/m68k/get_syscall_result.c \
348 linux/m68k/ioctls_arch0.h \
349 linux/m68k/ioctls_inc0.h \
350 linux/m68k/print_pc.c \
351 linux/m68k/syscallent.h \
352 linux/m68k/userent.h \
353 linux/metag/arch_regs.c \
354 linux/metag/get_error.c \
355 linux/metag/get_scno.c \
356 linux/metag/get_syscall_args.c \
357 linux/metag/ioctls_arch0.h \
358 linux/metag/ioctls_inc0.h \
359 linux/metag/print_pc.c \
360 linux/metag/syscallent.h \
361 linux/microblaze/arch_regs.c \
362 linux/microblaze/arch_sigreturn.c \
363 linux/microblaze/get_error.c \
364 linux/microblaze/get_scno.c \
365 linux/microblaze/get_syscall_args.c \
366 linux/microblaze/get_syscall_result.c \
367 linux/microblaze/ioctls_arch0.h \
368 linux/microblaze/ioctls_inc0.h \
369 linux/microblaze/print_pc.c \
370 linux/microblaze/syscallent.h \
371 linux/microblaze/userent.h \
372 linux/mips/arch_getrval2.c \
373 linux/mips/arch_regs.c \
374 linux/mips/arch_regs.h \
375 linux/mips/arch_sigreturn.c \
376 linux/mips/errnoent.h \
377 linux/mips/genstub.sh \
378 linux/mips/get_error.c \
379 linux/mips/get_scno.c \
380 linux/mips/get_syscall_args.c \
381 linux/mips/ioctls_arch0.h \
382 linux/mips/ioctls_inc0.h \
383 linux/mips/print_pc.c \
384 linux/mips/signalent.h \
385 linux/mips/syscallent-compat.h \
386 linux/mips/syscallent-n32.h \
387 linux/mips/syscallent-n64.h \
388 linux/mips/syscallent-o32.h \
389 linux/mips/syscallent.h \
390 linux/mips/userent.h \
392 linux/nios2/arch_regs.c \
393 linux/nios2/get_error.c \
394 linux/nios2/get_scno.c \
395 linux/nios2/get_syscall_args.c \
396 linux/nios2/ioctls_arch0.h \
397 linux/nios2/ioctls_inc0.h \
398 linux/nios2/print_pc.c \
399 linux/nios2/syscallent.h \
400 linux/or1k/arch_regs.c \
401 linux/or1k/get_error.c \
402 linux/or1k/get_scno.c \
403 linux/or1k/get_syscall_args.c \
404 linux/or1k/ioctls_arch0.h \
405 linux/or1k/ioctls_inc0.h \
406 linux/or1k/print_pc.c \
407 linux/or1k/syscallent.h \
408 linux/or1k/userent.h \
409 linux/personality.h \
410 linux/powerpc/arch_regs.c \
411 linux/powerpc/arch_regs.h \
412 linux/powerpc/arch_sigreturn.c \
413 linux/powerpc/errnoent.h \
414 linux/powerpc/get_error.c \
415 linux/powerpc/get_scno.c \
416 linux/powerpc/get_syscall_args.c \
417 linux/powerpc/getregs_old.c \
418 linux/powerpc/ioctls_arch0.h \
419 linux/powerpc/ioctls_inc0.h \
420 linux/powerpc/print_pc.c \
421 linux/powerpc/syscallent.h \
422 linux/powerpc/userent.h \
423 linux/powerpc64/arch_regs.c \
424 linux/powerpc64/arch_regs.h \
425 linux/powerpc64/arch_sigreturn.c \
426 linux/powerpc64/errnoent.h \
427 linux/powerpc64/errnoent1.h \
428 linux/powerpc64/get_error.c \
429 linux/powerpc64/get_scno.c \
430 linux/powerpc64/get_syscall_args.c \
431 linux/powerpc64/getregs_old.c \
432 linux/powerpc64/ioctls_arch0.h \
433 linux/powerpc64/ioctls_arch1.h \
434 linux/powerpc64/ioctls_inc0.h \
435 linux/powerpc64/ioctls_inc1.h \
436 linux/powerpc64/print_pc.c \
437 linux/powerpc64/signalent1.h \
438 linux/powerpc64/syscallent.h \
439 linux/powerpc64/syscallent1.h \
440 linux/powerpc64/userent.h \
442 linux/s390/arch_regs.c \
443 linux/s390/arch_regs.h \
444 linux/s390/arch_sigreturn.c \
445 linux/s390/get_error.c \
446 linux/s390/get_scno.c \
447 linux/s390/get_syscall_args.c \
448 linux/s390/ioctls_arch0.h \
449 linux/s390/ioctls_inc0.h \
450 linux/s390/print_pc.c \
451 linux/s390/syscallent.h \
452 linux/s390/userent.h \
453 linux/s390/userent0.h \
454 linux/s390/userent1.h \
455 linux/s390x/arch_regs.c \
456 linux/s390x/arch_regs.h \
457 linux/s390x/arch_sigreturn.c \
458 linux/s390x/get_error.c \
459 linux/s390x/get_scno.c \
460 linux/s390x/get_syscall_args.c \
461 linux/s390x/ioctls_arch0.h \
462 linux/s390x/ioctls_inc0.h \
463 linux/s390x/print_pc.c \
464 linux/s390x/syscallent.h \
465 linux/s390x/userent.h \
466 linux/sh/arch_getrval2.c \
467 linux/sh/arch_regs.c \
468 linux/sh/get_error.c \
469 linux/sh/get_scno.c \
470 linux/sh/get_syscall_args.c \
471 linux/sh/get_syscall_result.c \
472 linux/sh/ioctls_arch0.h \
473 linux/sh/ioctls_inc0.h \
474 linux/sh/print_pc.c \
475 linux/sh/syscallent.h \
477 linux/sh/userent0.h \
478 linux/sh64/arch_regs.c \
479 linux/sh64/arch_regs.h \
480 linux/sh64/get_error.c \
481 linux/sh64/get_scno.c \
482 linux/sh64/get_syscall_args.c \
483 linux/sh64/get_syscall_result.c \
484 linux/sh64/ioctls_arch0.h \
485 linux/sh64/ioctls_inc0.h \
486 linux/sh64/print_pc.c \
487 linux/sh64/syscallent.h \
488 linux/sh64/userent.h \
491 linux/sparc/arch_getrval2.c \
492 linux/sparc/arch_regs.c \
493 linux/sparc/arch_regs.h \
494 linux/sparc/arch_sigreturn.c \
495 linux/sparc/errnoent.h \
497 linux/sparc/get_error.c \
498 linux/sparc/get_scno.c \
499 linux/sparc/get_syscall_args.c \
500 linux/sparc/ioctls_arch0.h \
501 linux/sparc/ioctls_inc0.h \
502 linux/sparc/print_pc.c \
503 linux/sparc/signalent.h \
504 linux/sparc/syscallent.h \
505 linux/sparc/userent.h \
506 linux/sparc64/arch_getrval2.c \
507 linux/sparc64/arch_regs.c \
508 linux/sparc64/arch_regs.h \
509 linux/sparc64/arch_sigreturn.c \
510 linux/sparc64/errnoent.h \
511 linux/sparc64/errnoent1.h \
512 linux/sparc64/get_error.c \
513 linux/sparc64/get_scno.c \
514 linux/sparc64/get_syscall_args.c\
515 linux/sparc64/ioctls_arch0.h \
516 linux/sparc64/ioctls_arch1.h \
517 linux/sparc64/ioctls_inc0.h \
518 linux/sparc64/ioctls_inc1.h \
519 linux/sparc64/print_pc.c \
520 linux/sparc64/signalent.h \
521 linux/sparc64/signalent1.h \
522 linux/sparc64/syscallent.h \
523 linux/sparc64/syscallent1.h \
524 linux/sparc64/userent.h \
527 linux/tile/arch_regs.c \
528 linux/tile/arch_regs.h \
529 linux/tile/arch_sigreturn.c \
530 linux/tile/errnoent1.h \
531 linux/tile/get_error.c \
532 linux/tile/get_scno.c \
533 linux/tile/get_syscall_args.c \
534 linux/tile/ioctls_arch0.h \
535 linux/tile/ioctls_arch1.h \
536 linux/tile/ioctls_inc0.h \
537 linux/tile/ioctls_inc1.h \
538 linux/tile/print_pc.c \
539 linux/tile/signalent1.h \
540 linux/tile/syscallent.h \
541 linux/tile/syscallent1.h \
542 linux/tile/userent.h \
547 linux/x32/arch_regs.c \
548 linux/x32/arch_regs.h \
549 linux/x32/arch_sigreturn.c \
550 linux/x32/errnoent1.h \
551 linux/x32/get_error.c \
552 linux/x32/get_scno.c \
553 linux/x32/get_syscall_args.c \
554 linux/x32/ioctls_arch0.h \
555 linux/x32/ioctls_arch1.h \
556 linux/x32/ioctls_inc0.h \
557 linux/x32/ioctls_inc1.h \
558 linux/x32/print_pc.c \
559 linux/x32/signalent1.h \
560 linux/x32/syscallent.h \
561 linux/x32/syscallent1.h \
562 linux/x32/userent.h \
563 linux/x86_64/arch_regs.c \
564 linux/x86_64/arch_regs.h \
565 linux/x86_64/arch_sigreturn.c \
566 linux/x86_64/errnoent1.h \
567 linux/x86_64/errnoent2.h \
568 linux/x86_64/gentab.pl \
569 linux/x86_64/get_error.c \
570 linux/x86_64/get_scno.c \
571 linux/x86_64/get_syscall_args.c \
572 linux/x86_64/getregs_old.c \
573 linux/x86_64/ioctls_arch0.h \
574 linux/x86_64/ioctls_arch1.h \
575 linux/x86_64/ioctls_arch2.h \
576 linux/x86_64/ioctls_inc0.h \
577 linux/x86_64/ioctls_inc1.h \
578 linux/x86_64/ioctls_inc2.h \
579 linux/x86_64/print_pc.c \
580 linux/x86_64/signalent1.h \
581 linux/x86_64/signalent2.h \
582 linux/x86_64/syscallent.h \
583 linux/x86_64/syscallent1.h \
584 linux/x86_64/syscallent2.h \
585 linux/x86_64/userent.h \
586 linux/xtensa/arch_regs.c \
587 linux/xtensa/get_error.c \
588 linux/xtensa/get_scno.c \
589 linux/xtensa/get_syscall_args.c \
590 linux/xtensa/get_syscall_result.c \
591 linux/xtensa/ioctls_arch0.h \
592 linux/xtensa/ioctls_inc0.h \
593 linux/xtensa/print_pc.c \
594 linux/xtensa/syscallent.h \
595 linux/xtensa/userent.h \
596 maint/ioctls_gen.sh \
597 maint/ioctls_hex.sh \
598 maint/ioctls_sym.sh \
599 maint/print_ioctlent.c \
609 $(XLAT_INPUT_FILES) \
610 $(XLAT_HEADER_FILES) \
616 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
619 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
621 strace_SOURCES_c = $(filter %.c,$(strace_SOURCES))
623 sys_func.h: $(patsubst %,$(srcdir)/%,$(strace_SOURCES_c))
625 sed -n 's/^SYS_FUNC(.*/extern &;/p' $$f; \
628 syscallent_names = subcall.h syscallent.h syscallent1.h \
629 syscallent-n32.h syscallent-n64.h syscallent-o32.h
630 syscallent_patterns = $(patsubst %,\%/%,$(syscallent_names))
631 syscallent_files = $(filter $(syscallent_patterns),$(EXTRA_DIST))
633 sen.h: $(patsubst %,$(srcdir)/%,$(syscallent_files))
634 for f in $^; do cat -- $$f; done | \
635 $(srcdir)/generate_sen.sh > $@
638 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
640 today = $(shell date +%Y-%m-%d)
641 version_regexp = $(subst .,\.,$(VERSION))
642 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
645 $(AM_V_GEN)if head -1 $< | \
646 grep -x $(news_check_regexp) >/dev/null; then \
649 echo >&2 '$<: check failed'; \
653 ioctlsort_CC = $(CC_FOR_BUILD)
654 ioctlsort_DEFS = $(DEFS)
655 ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
656 ioctlsort_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD)
657 ioctlsort_CFLAGS = $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
658 ioctlsort_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD)
660 ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
661 ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
663 ioctlent%.h: ioctlsort%
666 ioctlsort%$(BUILD_EXEEXT): ioctlsort%.o
667 $(ioctlsort_CC) $(ioctlsort_CFLAGS) $(ioctlsort_LDFLAGS) $< -o $@
669 ioctlsort%.o: ioctls_all%.h $(srcdir)/ioctlsort.c
670 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
672 ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
675 BUILT_SOURCES = $(ioctlent_h) native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h .version
676 CLEANFILES = $(ioctlent_h) native_printer_decls.h native_printer_defs.h printers.h sen.h sys_func.h
677 DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h
679 # defines mpers_source_files
681 srcdir_mpers_source_files = $(patsubst %,$(srcdir)/%,$(mpers_source_files))
684 mpers_PREFIX = $(mpers_NAME)_
686 mpers_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
687 mpers_CPPFLAGS = $(strace_CPPFLAGS) $(CPPFLAGS)
688 mpers_sh_opts = $(mpers_DEFS) $(mpers_INCLUDES) $(mpers_CPPFLAGS)
689 libmpers_CPPFLAGS = $(AM_CPPFLAGS) -DIN_MPERS
693 mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h
695 CC="$(CC)" CFLAGS="$(mpers_sh_opts)" \
696 CPP="$(CPP)" CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \
697 $(srcdir)/mpers.sh -$(mpers_NAME) $$f || exit; \
701 m%_type_defs.h: $(srcdir_mpers_source_files)
703 sed -n 's/^#include DEF_MPERS_TYPE(\([^)]\+\))/#ifdef MPERS_$(mpers_PREFIX)\1\n# define \1 MPERS_$(mpers_PREFIX)\1\n#endif/p' $$f || exit; \
705 echo '#undef MPERS_PRINTER_NAME' >> $@-t
706 echo '#define MPERS_PRINTER_NAME(printer_name) printer_name' >> $@-t
707 echo '#include "$(mpers_PREFIX)printer_decls.h"' >> $@-t
710 m%_funcs.h: $(srcdir_mpers_source_files)
712 sed -n 's/^SYS_FUNC(\([^)]\+\))/#undef sys_\1\n#define sys_\1 $(mpers_PREFIX)sys_\1/p' $$f || exit; \
714 echo '#include "sys_func.h"' >> $@-t
719 printers.h: $(srcdir_mpers_source_files)
720 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
721 echo 'typedef struct {' >> $@-t
723 sed -n 's/^MPERS_PRINTER_DECL(\([^,]\+\),[[:space:]]*\([^)]\+\))\(.*\)/ \1 (*\2) \3;\n#define \2 MPERS_PRINTER_NAME(\2)\n/p' $$f || exit; \
725 echo '} struct_printers;' >> $@-t
726 echo 'extern const struct_printers *printers;' >> $@-t
727 echo '#define MPERS_PRINTER_NAME(printer_name) printers->printer_name' >> $@-t
730 %_printer_decls.h: $(srcdir_mpers_source_files)
731 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
733 sed -n 's/^MPERS_PRINTER_DECL(\([^,]\+\),[[:space:]]*\([^)]\+\))\(.*\)/extern \1 $(mpers_PREFIX)\2\3;/p' $$f || exit; \
737 %_printer_defs.h: $(srcdir_mpers_source_files)
738 echo '/* Generated by Makefile from $^; do not edit. */' > $@-t
740 sed -n 's/^MPERS_PRINTER_DECL(\([^,]\+\),[[:space:]]*\([^)]\+\))\(.*\)/\.\2 = $(mpers_PREFIX)\2,/p' $$f || exit; \
744 native_printer_decls.h native_printer_defs.h: mpers_PREFIX =
748 strace_LDADD += libmpers-m32.a
749 noinst_LIBRARIES += libmpers-m32.a
750 libmpers_m32_a_SOURCES = $(mpers_source_files)
751 libmpers_m32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_m32 -I$(builddir)/mpers-m32
752 mpers_m32_targets = mpers-m32.stamp m32_type_defs.h m32_funcs.h m32_printer_decls.h m32_printer_defs.h
754 BUILT_SOURCES += $(mpers_m32_targets)
755 CLEANFILES += $(mpers_m32_targets)
757 $(mpers_m32_targets): mpers_NAME = m32
759 endif # HAVE_M32_MPERS
763 strace_LDADD += libmpers-mx32.a
764 noinst_LIBRARIES += libmpers-mx32.a
765 libmpers_mx32_a_SOURCES = $(mpers_source_files)
766 libmpers_mx32_a_CPPFLAGS = $(libmpers_CPPFLAGS) -DMPERS_IS_mx32 -I$(builddir)/mpers-mx32
767 mpers_mx32_targets = mpers-mx32.stamp mx32_type_defs.h mx32_funcs.h mx32_printer_decls.h mx32_printer_defs.h
769 BUILT_SOURCES += $(mpers_mx32_targets)
770 CLEANFILES += $(mpers_mx32_targets)
772 $(mpers_mx32_targets): mpers_NAME = mx32
774 endif # HAVE_MX32_MPERS
777 -rm -rf mpers-m32 mpers-mx32
781 gen_changelog_start_date = 2009-07-08 20:00
782 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
786 ./gitlog-to-changelog --append-dot \
787 --since='$(gen_changelog_start_date)'; \
788 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
793 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
794 $(srcdir)/Makefile.in $(srcdir)/.version
798 sed '/^##/,$$d' CREDITS.in; \
799 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
800 git log --pretty=format:'%aN %aE'; \
801 } | LC_ALL=C sort -u \
802 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
803 ) > $@-t && mv $@-t $@
805 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX