Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 1 | # Automake input for strace. |
| 2 | |
| 3 | bin_PROGRAMS = strace |
| 4 | man_MANS = strace.1 |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 5 | bin_SCRIPTS = strace-graph |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 6 | |
| 7 | # OS is one of `linux', `sunos4', `svr4', or `freebsd'. |
| 8 | OS = @opsys@ |
| 9 | # ARCH is `i386', `m68k', `sparc', etc. |
| 10 | ARCH = @arch@ |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 11 | |
Roland McGrath | 44f24c7 | 2003-01-09 06:53:25 +0000 | [diff] [blame] | 12 | AM_CFLAGS = $(WARNFLAGS) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 13 | INCLUDES = -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) -I$(srcdir)/$(OS) |
| 14 | |
Dmitry V. Levin | 7d61ff1 | 2006-12-21 21:15:04 +0000 | [diff] [blame] | 15 | strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \ |
Dmitry V. Levin | ef5c3d6 | 2006-10-16 00:26:47 +0000 | [diff] [blame] | 16 | io.c ioctl.c mem.c net.c process.c bjm.c quota.c \ |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 17 | resource.c signal.c sock.c system.c term.c time.c \ |
Dmitry V. Levin | b011af5 | 2007-06-30 11:37:09 +0000 | [diff] [blame] | 18 | proc.c scsi.c stream.c |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 19 | noinst_HEADERS = defs.h |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 20 | |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 21 | EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame^] | 22 | debian/changelog debian/control debian/copyright debian/rules \ |
Roland McGrath | 09a007c | 2008-07-22 08:33:40 +0000 | [diff] [blame] | 23 | debian/compat debian/strace64.install debian/strace64.manpages \ |
| 24 | debian/strace.docs debian/strace.examples debian/strace.install \ |
| 25 | debian/strace.manpages debian/strace-udeb.install \ |
Roland McGrath | 44f24c7 | 2003-01-09 06:53:25 +0000 | [diff] [blame] | 26 | strace.spec \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 27 | strace-graph COPYRIGHT CREDITS PORTING \ |
| 28 | README-CVS README-freebsd README-linux README-sunos4 README-svr4 \ |
| 29 | linux/ioctlsort.c linux/ioctlent.sh \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 30 | linux/ioctlent.h linux/errnoent.h linux/signalent.h \ |
| 31 | linux/syscall.h linux/syscallent.h linux/dummy.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 32 | linux/alpha/errnoent.h linux/alpha/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 33 | linux/alpha/signalent.h linux/alpha/syscallent.h \ |
Roland McGrath | 1cdfb8f | 2008-08-01 01:15:24 +0000 | [diff] [blame] | 34 | linux/arm/syscallent.h linux/arm/syscallent1.h \ |
| 35 | linux/arm/signalent1.h linux/arm/ioctlent1.h \ |
| 36 | linux/arm/errnoent1.h \ |
Dmitry V. Levin | 87ea1f4 | 2008-11-10 22:21:41 +0000 | [diff] [blame] | 37 | linux/bfin/ioctlent.h linux/bfin/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 38 | linux/hppa/errnoent.h linux/hppa/ioctlent.h \ |
| 39 | linux/hppa/signalent.h linux/hppa/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 40 | linux/ia64/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 41 | linux/ia64/ioctlent.h linux/ia64/signalent.h \ |
Roland McGrath | cdb2473 | 2005-12-02 04:27:47 +0000 | [diff] [blame] | 42 | linux/m68k/syscallent.h \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame^] | 43 | linux/mips/ioctlent.sh linux/mips/errnoent.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 44 | linux/mips/ioctlent.h linux/mips/signalent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 45 | linux/mips/syscallent.h \ |
| 46 | linux/powerpc/syscallent.h \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame^] | 47 | linux/powerpc/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 48 | linux/powerpc/signalent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 49 | linux/s390/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 50 | linux/s390/signalent.h linux/s390/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 51 | linux/s390x/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 52 | linux/s390x/signalent.h linux/s390x/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 53 | linux/sh/syscallent.h \ |
Roland McGrath | ac971c2 | 2003-03-31 01:03:33 +0000 | [diff] [blame] | 54 | linux/sh/ioctlent.h linux/sh/signalent.h \ |
Roland McGrath | 6617729 | 2004-07-12 07:27:23 +0000 | [diff] [blame] | 55 | linux/sh64/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 56 | linux/sparc/dummy2.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 57 | linux/sparc/errnoent.h linux/sparc/errnoent1.h \ |
| 58 | linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \ |
| 59 | linux/sparc/signalent.h linux/sparc/signalent1.h \ |
| 60 | linux/sparc/syscall.h linux/sparc/syscall1.h \ |
| 61 | linux/sparc/syscallent.h linux/sparc/syscallent1.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 62 | linux/sparc/gen.pl linux/sparc/syscall.h.2 \ |
Roland McGrath | 0165e77 | 2004-07-12 07:53:59 +0000 | [diff] [blame] | 63 | linux/sparc64/dummy2.h linux/sparc64/errnoent.h \ |
| 64 | linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \ |
| 65 | linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \ |
| 66 | linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \ |
| 67 | linux/sparc64/signalent1.h linux/sparc64/signalent2.h \ |
| 68 | linux/sparc64/syscall.h linux/sparc64/syscall1.h \ |
| 69 | linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \ |
| 70 | linux/sparc64/syscallent2.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 71 | linux/x86_64/syscallent.h linux/x86_64/gentab.pl \ |
Roland McGrath | 7daaace | 2002-12-30 09:33:20 +0000 | [diff] [blame] | 72 | linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \ |
| 73 | linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 74 | freebsd/ioctlent.sh \ |
| 75 | freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 76 | freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \ |
| 77 | freebsd/i386/signalent.h \ |
| 78 | freebsd/i386/syscall.h freebsd/i386/syscallent.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 79 | sunos4/dummy.h sunos4/errnoent.h \ |
| 80 | sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \ |
| 81 | sunos4/syscall.h sunos4/syscallent.h \ |
| 82 | svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \ |
Roland McGrath | 5a862ff | 2006-04-25 07:33:20 +0000 | [diff] [blame] | 83 | svr4/signalent.h svr4/syscall.h svr4/syscallent.h \ |
| 84 | xlate.el |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 85 | |
| 86 | if MAINTAINER_MODE |
| 87 | if LINUX |
| 88 | |
| 89 | IOCTLDIR = /usr/include |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 90 | IOCTLASM = asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 91 | |
| 92 | if I386 |
| 93 | ioctlent_h = linux/ioctlent.h |
| 94 | else |
| 95 | ioctlent_h = linux/$(ARCH)/ioctlent.h |
| 96 | endif |
| 97 | |
| 98 | BUILT_SOURCES = $(ioctlent_h) |
| 99 | |
| 100 | $(srcdir)/$(ioctlent_h): ioctlsort |
| 101 | $(<D)/$(<F) > $@ |
| 102 | ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 103 | $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ |
| 104 | -o $@ $< |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 105 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 106 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 107 | ioctldefs.h: ioctls.h ; |
| 108 | |
| 109 | endif |
| 110 | endif |