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) \
26 include xlat/Makemodule.am
127 strace_SOURCES += unwind.c
128 strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
129 strace_LDFLAGS = $(libunwind_LDFLAGS)
130 strace_LDADD = $(libunwind_LIBS)
132 strace_CPPFLAGS = $(AM_CPPFLAGS)
135 noinst_HEADERS = defs.h
136 # Enable this to get link map generated
137 #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
146 README-linux-ptrace \
152 debian/source/format \
153 debian/strace-udeb.install \
155 debian/strace.examples \
156 debian/strace.install \
157 debian/strace.manpages \
158 debian/strace64.install \
159 debian/strace64.manpages \
163 linux/32/ioctls_inc.h \
164 linux/32/syscallent.h \
165 linux/64/ioctls_inc.h \
166 linux/64/syscallent.h \
167 linux/aarch64/arch_regs.c \
168 linux/aarch64/arch_regs.h \
169 linux/aarch64/arch_sigreturn.c \
170 linux/aarch64/errnoent1.h \
171 linux/aarch64/get_error.c \
172 linux/aarch64/get_scno.c \
173 linux/aarch64/get_syscall_args.c\
174 linux/aarch64/ioctls_arch0.h \
175 linux/aarch64/ioctls_arch1.h \
176 linux/aarch64/ioctls_inc0.h \
177 linux/aarch64/ioctls_inc1.h \
178 linux/aarch64/print_pc.c \
179 linux/aarch64/signalent1.h \
180 linux/aarch64/syscallent.h \
181 linux/aarch64/syscallent1.h \
182 linux/alpha/arch_getrval2.c \
183 linux/alpha/arch_regs.c \
184 linux/alpha/arch_regs.h \
185 linux/alpha/arch_sigreturn.c \
186 linux/alpha/errnoent.h \
187 linux/alpha/get_error.c \
188 linux/alpha/get_scno.c \
189 linux/alpha/get_syscall_args.c \
190 linux/alpha/get_syscall_result.c\
191 linux/alpha/ioctls_arch0.h \
192 linux/alpha/ioctls_inc0.h \
193 linux/alpha/print_pc.c \
194 linux/alpha/signalent.h \
195 linux/alpha/syscallent.h \
196 linux/alpha/userent.h \
197 linux/arc/arch_regs.c \
198 linux/arc/get_error.c \
199 linux/arc/get_scno.c \
200 linux/arc/get_syscall_args.c \
201 linux/arc/ioctls_arch0.h \
202 linux/arc/ioctls_inc0.h \
203 linux/arc/print_pc.c \
204 linux/arc/syscallent.h \
206 linux/arch_sigreturn.c \
207 linux/arm/arch_regs.c \
208 linux/arm/arch_regs.h \
209 linux/arm/arch_sigreturn.c \
210 linux/arm/get_error.c \
211 linux/arm/get_scno.c \
212 linux/arm/get_syscall_args.c \
213 linux/arm/ioctls_arch0.h \
214 linux/arm/ioctls_inc0.h \
215 linux/arm/print_pc.c \
216 linux/arm/syscallent.h \
217 linux/arm/userent.h \
218 linux/avr32/arch_regs.c \
219 linux/avr32/get_error.c \
220 linux/avr32/get_scno.c \
221 linux/avr32/get_syscall_args.c \
222 linux/avr32/ioctls_arch0.h \
223 linux/avr32/ioctls_inc0.h \
224 linux/avr32/print_pc.c \
225 linux/avr32/syscallent.h \
226 linux/avr32/userent.h \
227 linux/bfin/arch_regs.c \
228 linux/bfin/get_error.c \
229 linux/bfin/get_scno.c \
230 linux/bfin/get_syscall_args.c \
231 linux/bfin/get_syscall_result.c \
232 linux/bfin/ioctls_arch0.h \
233 linux/bfin/ioctls_inc0.h \
234 linux/bfin/print_pc.c \
235 linux/bfin/syscallent.h \
236 linux/bfin/userent.h \
237 linux/crisv10/arch_regs.c \
238 linux/crisv10/arch_sigreturn.c \
239 linux/crisv10/get_error.c \
240 linux/crisv10/get_scno.c \
241 linux/crisv10/get_syscall_args.c \
242 linux/crisv10/get_syscall_result.c \
243 linux/crisv10/print_pc.c \
244 linux/crisv10/userent.h \
245 linux/crisv32/arch_regs.c \
246 linux/crisv32/arch_sigreturn.c \
247 linux/crisv32/get_error.c \
248 linux/crisv32/get_scno.c \
249 linux/crisv32/get_syscall_args.c \
250 linux/crisv32/get_syscall_result.c \
251 linux/crisv32/print_pc.c \
252 linux/crisv32/userent.h \
255 linux/hppa/arch_regs.c \
256 linux/hppa/arch_regs.h \
257 linux/hppa/errnoent.h \
258 linux/hppa/get_error.c \
259 linux/hppa/get_scno.c \
260 linux/hppa/get_syscall_args.c \
261 linux/hppa/get_syscall_result.c \
262 linux/hppa/ioctls_arch0.h \
263 linux/hppa/ioctls_inc0.h \
264 linux/hppa/print_pc.c \
265 linux/hppa/signalent.h \
266 linux/hppa/syscallent.h \
267 linux/i386/arch_regs.c \
268 linux/i386/arch_regs.h \
269 linux/i386/arch_sigreturn.c \
270 linux/i386/get_error.c \
271 linux/i386/get_scno.c \
272 linux/i386/get_syscall_args.c \
273 linux/i386/ioctls_arch0.h \
274 linux/i386/ioctls_inc0.h \
275 linux/i386/print_pc.c \
276 linux/i386/syscallent.h \
277 linux/i386/userent.h \
278 linux/i386/userent0.h \
279 linux/ia64/arch_getrval2.c \
280 linux/ia64/arch_regs.c \
281 linux/ia64/arch_regs.h \
282 linux/ia64/arch_sigreturn.c \
283 linux/ia64/get_error.c \
284 linux/ia64/get_scno.c \
285 linux/ia64/get_syscall_args.c \
286 linux/ia64/ioctls_arch0.h \
287 linux/ia64/ioctls_inc0.h \
288 linux/ia64/print_pc.c \
289 linux/ia64/syscallent.h \
290 linux/ia64/userent.h \
292 linux/m68k/arch_regs.c \
293 linux/m68k/arch_sigreturn.c \
294 linux/m68k/get_error.c \
295 linux/m68k/get_scno.c \
296 linux/m68k/get_syscall_args.c \
297 linux/m68k/get_syscall_result.c \
298 linux/m68k/ioctls_arch0.h \
299 linux/m68k/ioctls_inc0.h \
300 linux/m68k/print_pc.c \
301 linux/m68k/syscallent.h \
302 linux/m68k/userent.h \
303 linux/metag/arch_regs.c \
304 linux/metag/get_error.c \
305 linux/metag/get_scno.c \
306 linux/metag/get_syscall_args.c \
307 linux/metag/ioctls_arch0.h \
308 linux/metag/ioctls_inc0.h \
309 linux/metag/print_pc.c \
310 linux/metag/syscallent.h \
311 linux/microblaze/arch_regs.c \
312 linux/microblaze/arch_sigreturn.c \
313 linux/microblaze/get_error.c \
314 linux/microblaze/get_scno.c \
315 linux/microblaze/get_syscall_args.c \
316 linux/microblaze/get_syscall_result.c \
317 linux/microblaze/ioctls_arch0.h \
318 linux/microblaze/ioctls_inc0.h \
319 linux/microblaze/print_pc.c \
320 linux/microblaze/syscallent.h \
321 linux/microblaze/userent.h \
322 linux/mips/arch_getrval2.c \
323 linux/mips/arch_regs.c \
324 linux/mips/arch_regs.h \
325 linux/mips/arch_sigreturn.c \
326 linux/mips/errnoent.h \
327 linux/mips/genstub.sh \
328 linux/mips/get_error.c \
329 linux/mips/get_scno.c \
330 linux/mips/get_syscall_args.c \
331 linux/mips/ioctls_arch0.h \
332 linux/mips/ioctls_inc0.h \
333 linux/mips/print_pc.c \
334 linux/mips/signalent.h \
335 linux/mips/syscallent-compat.h \
336 linux/mips/syscallent-n32.h \
337 linux/mips/syscallent-n64.h \
338 linux/mips/syscallent-o32.h \
339 linux/mips/syscallent.h \
340 linux/mips/userent.h \
342 linux/or1k/arch_regs.c \
343 linux/or1k/get_error.c \
344 linux/or1k/get_scno.c \
345 linux/or1k/get_syscall_args.c \
346 linux/or1k/ioctls_arch0.h \
347 linux/or1k/ioctls_inc0.h \
348 linux/or1k/print_pc.c \
349 linux/or1k/syscallent.h \
350 linux/or1k/userent.h \
351 linux/personality.h \
352 linux/powerpc/arch_regs.c \
353 linux/powerpc/arch_regs.h \
354 linux/powerpc/arch_sigreturn.c \
355 linux/powerpc/errnoent.h \
356 linux/powerpc/get_error.c \
357 linux/powerpc/get_scno.c \
358 linux/powerpc/get_syscall_args.c \
359 linux/powerpc/getregs_old.c \
360 linux/powerpc/ioctls_arch0.h \
361 linux/powerpc/ioctls_inc0.h \
362 linux/powerpc/print_pc.c \
363 linux/powerpc/syscallent.h \
364 linux/powerpc/userent.h \
365 linux/powerpc64/arch_regs.c \
366 linux/powerpc64/arch_regs.h \
367 linux/powerpc64/arch_sigreturn.c \
368 linux/powerpc64/errnoent.h \
369 linux/powerpc64/errnoent1.h \
370 linux/powerpc64/get_error.c \
371 linux/powerpc64/get_scno.c \
372 linux/powerpc64/get_syscall_args.c \
373 linux/powerpc64/getregs_old.c \
374 linux/powerpc64/ioctls_arch0.h \
375 linux/powerpc64/ioctls_arch1.h \
376 linux/powerpc64/ioctls_inc0.h \
377 linux/powerpc64/ioctls_inc1.h \
378 linux/powerpc64/print_pc.c \
379 linux/powerpc64/signalent1.h \
380 linux/powerpc64/syscallent.h \
381 linux/powerpc64/syscallent1.h \
382 linux/powerpc64/userent.h \
384 linux/s390/arch_regs.c \
385 linux/s390/arch_regs.h \
386 linux/s390/arch_sigreturn.c \
387 linux/s390/get_error.c \
388 linux/s390/get_scno.c \
389 linux/s390/get_syscall_args.c \
390 linux/s390/ioctls_arch0.h \
391 linux/s390/ioctls_inc0.h \
392 linux/s390/print_pc.c \
393 linux/s390/syscallent.h \
394 linux/s390/userent.h \
395 linux/s390/userent0.h \
396 linux/s390/userent1.h \
397 linux/s390x/arch_regs.c \
398 linux/s390x/arch_regs.h \
399 linux/s390x/arch_sigreturn.c \
400 linux/s390x/get_error.c \
401 linux/s390x/get_scno.c \
402 linux/s390x/get_syscall_args.c \
403 linux/s390x/ioctls_arch0.h \
404 linux/s390x/ioctls_inc0.h \
405 linux/s390x/print_pc.c \
406 linux/s390x/syscallent.h \
407 linux/s390x/userent.h \
408 linux/sh/arch_getrval2.c \
409 linux/sh/arch_regs.c \
410 linux/sh/get_error.c \
411 linux/sh/get_scno.c \
412 linux/sh/get_syscall_args.c \
413 linux/sh/get_syscall_result.c \
414 linux/sh/ioctls_arch0.h \
415 linux/sh/ioctls_inc0.h \
416 linux/sh/print_pc.c \
417 linux/sh/syscallent.h \
419 linux/sh/userent0.h \
420 linux/sh64/arch_regs.c \
421 linux/sh64/arch_regs.h \
422 linux/sh64/get_error.c \
423 linux/sh64/get_scno.c \
424 linux/sh64/get_syscall_args.c \
425 linux/sh64/get_syscall_result.c \
426 linux/sh64/ioctls_arch0.h \
427 linux/sh64/ioctls_inc0.h \
428 linux/sh64/print_pc.c \
429 linux/sh64/syscallent.h \
430 linux/sh64/userent.h \
433 linux/sparc/arch_getrval2.c \
434 linux/sparc/arch_regs.c \
435 linux/sparc/arch_regs.h \
436 linux/sparc/arch_sigreturn.c \
437 linux/sparc/dummy2.h \
438 linux/sparc/errnoent.h \
439 linux/sparc/errnoent1.h \
441 linux/sparc/get_error.c \
442 linux/sparc/get_scno.c \
443 linux/sparc/get_syscall_args.c \
444 linux/sparc/ioctlent1.h \
445 linux/sparc/ioctls_arch0.h \
446 linux/sparc/ioctls_inc0.h \
447 linux/sparc/print_pc.c \
448 linux/sparc/signalent.h \
449 linux/sparc/signalent1.h \
450 linux/sparc/syscall1.h \
451 linux/sparc/syscallent.h \
452 linux/sparc/syscallent1.h \
453 linux/sparc/userent.h \
454 linux/sparc64/arch_getrval2.c \
455 linux/sparc64/arch_regs.c \
456 linux/sparc64/arch_regs.h \
457 linux/sparc64/arch_sigreturn.c \
458 linux/sparc64/dummy2.h \
459 linux/sparc64/errnoent.h \
460 linux/sparc64/errnoent1.h \
461 linux/sparc64/errnoent2.h \
462 linux/sparc64/get_error.c \
463 linux/sparc64/get_scno.c \
464 linux/sparc64/get_syscall_args.c\
465 linux/sparc64/ioctlent1.h \
466 linux/sparc64/ioctls_arch0.h \
467 linux/sparc64/ioctls_arch2.h \
468 linux/sparc64/ioctls_inc0.h \
469 linux/sparc64/ioctls_inc2.h \
470 linux/sparc64/print_pc.c \
471 linux/sparc64/signalent.h \
472 linux/sparc64/signalent1.h \
473 linux/sparc64/signalent2.h \
474 linux/sparc64/syscall1.h \
475 linux/sparc64/syscallent.h \
476 linux/sparc64/syscallent1.h \
477 linux/sparc64/syscallent2.h \
478 linux/sparc64/userent.h \
481 linux/tile/arch_regs.c \
482 linux/tile/arch_regs.h \
483 linux/tile/arch_sigreturn.c \
484 linux/tile/errnoent1.h \
485 linux/tile/get_error.c \
486 linux/tile/get_scno.c \
487 linux/tile/get_syscall_args.c \
488 linux/tile/ioctls_arch0.h \
489 linux/tile/ioctls_arch1.h \
490 linux/tile/ioctls_inc0.h \
491 linux/tile/ioctls_inc1.h \
492 linux/tile/print_pc.c \
493 linux/tile/signalent1.h \
494 linux/tile/syscallent.h \
495 linux/tile/syscallent1.h \
496 linux/tile/userent.h \
501 linux/x32/arch_regs.c \
502 linux/x32/arch_regs.h \
503 linux/x32/arch_sigreturn.c \
504 linux/x32/errnoent1.h \
505 linux/x32/get_error.c \
506 linux/x32/get_scno.c \
507 linux/x32/get_syscall_args.c \
508 linux/x32/ioctls_arch0.h \
509 linux/x32/ioctls_arch1.h \
510 linux/x32/ioctls_inc0.h \
511 linux/x32/ioctls_inc1.h \
512 linux/x32/print_pc.c \
513 linux/x32/signalent1.h \
514 linux/x32/syscallent.h \
515 linux/x32/syscallent1.h \
516 linux/x32/userent.h \
517 linux/x86_64/arch_regs.c \
518 linux/x86_64/arch_regs.h \
519 linux/x86_64/arch_sigreturn.c \
520 linux/x86_64/errnoent1.h \
521 linux/x86_64/errnoent2.h \
522 linux/x86_64/gentab.pl \
523 linux/x86_64/get_error.c \
524 linux/x86_64/get_scno.c \
525 linux/x86_64/get_syscall_args.c \
526 linux/x86_64/getregs_old.c \
527 linux/x86_64/ioctls_arch0.h \
528 linux/x86_64/ioctls_arch1.h \
529 linux/x86_64/ioctls_arch2.h \
530 linux/x86_64/ioctls_inc0.h \
531 linux/x86_64/ioctls_inc1.h \
532 linux/x86_64/ioctls_inc2.h \
533 linux/x86_64/print_pc.c \
534 linux/x86_64/signalent1.h \
535 linux/x86_64/signalent2.h \
536 linux/x86_64/syscallent.h \
537 linux/x86_64/syscallent1.h \
538 linux/x86_64/syscallent2.h \
539 linux/x86_64/userent.h \
540 linux/xtensa/arch_regs.c \
541 linux/xtensa/get_error.c \
542 linux/xtensa/get_scno.c \
543 linux/xtensa/get_syscall_args.c \
544 linux/xtensa/get_syscall_result.c \
545 linux/xtensa/ioctls_arch0.h \
546 linux/xtensa/ioctls_inc0.h \
547 linux/xtensa/print_pc.c \
548 linux/xtensa/syscallent.h \
549 linux/xtensa/userent.h \
550 maint/ioctls_gen.sh \
551 maint/ioctls_hex.sh \
552 maint/ioctls_sym.sh \
553 maint/print_ioctlent.c \
559 $(XLAT_INPUT_FILES) \
560 $(XLAT_HEADER_FILES) \
566 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
568 BUILT_SOURCES = .version
571 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
574 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
576 today = $(shell date +%Y-%m-%d)
577 version_regexp = $(subst .,\.,$(VERSION))
578 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
581 $(AM_V_GEN)if head -1 $< | \
582 grep -x $(news_check_regexp) >/dev/null; then \
585 echo >&2 '$<: check failed'; \
589 ioctlsort_CC = $(CC_FOR_BUILD)
590 ioctlsort_DEFS = $(DEFS)
591 ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
592 ioctlsort_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD)
593 ioctlsort_CFLAGS = $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
594 ioctlsort_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD)
596 ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
597 ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
598 BUILT_SOURCES += $(ioctlent_h)
599 CLEANFILES = $(ioctlent_h)
601 ioctlent%.h: ioctlsort%
604 ioctlsort%$(BUILD_EXEEXT): ioctlsort%.o
605 $(ioctlsort_CC) $(ioctlsort_CFLAGS) $(ioctlsort_LDFLAGS) $< -o $@
607 ioctlsort%.o: ioctls_all%.h $(srcdir)/ioctlsort.c
608 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
610 ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
615 gen_changelog_start_date = 2009-07-08 20:00
616 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
620 ./gitlog-to-changelog --append-dot \
621 --since='$(gen_changelog_start_date)'; \
622 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
627 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
628 $(srcdir)/Makefile.in $(srcdir)/.version
632 sed '/^##/,$$d' CREDITS.in; \
633 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
634 git log --pretty=format:'%aN %aE'; \
635 } | LC_ALL=C sort -u \
636 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
637 ) > $@-t && mv $@-t $@
639 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX