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 |
| 5 | |
| 6 | # OS is one of `linux', `sunos4', `svr4', or `freebsd'. |
| 7 | OS = @opsys@ |
| 8 | # ARCH is `i386', `m68k', `sparc', etc. |
| 9 | ARCH = @arch@ |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 10 | |
| 11 | INCLUDES = -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) -I$(srcdir)/$(OS) |
| 12 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 13 | strace_SOURCES = strace.c version.c syscall.c util.c desc.c file.c ipc.c \ |
| 14 | io.c ioctl.c mem.c net.c process.c bjm.c \ |
| 15 | resource.c signal.c sock.c system.c term.c time.c \ |
| 16 | proc.c stream.c |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame^] | 17 | noinst_HEADERS = defs.h |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 18 | |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 19 | EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \ |
| 20 | linux/ioctlsort.c \ |
| 21 | linux/ioctlent.h linux/errnoent.h linux/signalent.h \ |
| 22 | linux/syscall.h linux/syscallent.h linux/dummy.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame^] | 23 | linux/alpha/errnoent.h linux/alpha/ioctlent.h \ |
| 24 | linux/alpha/signalent.h linux/alpha/syscallent.h linux/dummy.h \ |
| 25 | linux/errnoent.h linux/ioctlent.h linux/signalent.h \ |
| 26 | linux/syscall.h linux/syscallent.h linux/hppa/errnoent.h \ |
| 27 | linux/hppa/ioctlent.h linux/hppa/signalent.h \ |
| 28 | linux/hppa/syscallent.h linux/ia64/syscallent.h \ |
| 29 | linux/ia64/errnoent.h linux/ia64/ioctlent.h \ |
| 30 | linux/ia64/signalent.h linux/mips/errnoent.h \ |
| 31 | linux/mips/ioctlent.h linux/mips/signalent.h \ |
| 32 | linux/mips/syscallent.h linux/powerpc/syscallent.h \ |
| 33 | linux/powerpc/errnoent.h linux/powerpc/ioctlent.h \ |
| 34 | linux/powerpc/signalent.h linux/s390/errnoent.h \ |
| 35 | linux/s390/ioctlent.h linux/s390/signalent.h \ |
| 36 | linux/s390/syscallent.h linux/s390x/errnoent.h \ |
| 37 | linux/s390x/ioctlent.h linux/s390x/signalent.h \ |
| 38 | linux/s390x/syscallent.h linux/sparc/dummy2.h \ |
| 39 | linux/sparc/errnoent.h linux/sparc/errnoent1.h \ |
| 40 | linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \ |
| 41 | linux/sparc/signalent.h linux/sparc/signalent1.h \ |
| 42 | linux/sparc/syscall.h linux/sparc/syscall1.h \ |
| 43 | linux/sparc/syscallent.h linux/sparc/syscallent1.h \ |
| 44 | linux/x86_64/syscallent.h linux/x86_64/gentab.pl \ |
| 45 | linux/x86_64/i386-headers.diff linux/x86_64/makeheaders.sh \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 46 | freebsd/ioctlent.sh \ |
| 47 | freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame^] | 48 | freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \ |
| 49 | freebsd/i386/signalent.h \ |
| 50 | freebsd/i386/syscall.h freebsd/i386/syscallent.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 51 | sunos4/dummy.h sunos4/errnoent.h \ |
| 52 | sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \ |
| 53 | sunos4/syscall.h sunos4/syscallent.h \ |
| 54 | svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame^] | 55 | svr4/signalent.h svr4/syscall.h svr4/syscallent.h \ |
| 56 | debian/changelog debian/control debian/copyright \ |
| 57 | debian/postinst debian/prerm debian/rules strace.spec |
| 58 | |
| 59 | if LINUX |
| 60 | if X86_64 |
| 61 | |
| 62 | BUILT_SOURCES = linux/x86_64/syscallent1.h linux/x86_64/syscall1.h \ |
| 63 | linux/x86_64/signalent1.h linux/x86_64/ioctls1.h \ |
| 64 | linux/x86_64/ioctlent1.h linux/x86_64/ioctldefs1.h \ |
| 65 | linux/x86_64/errnoent1.h linux/x86_64/dummy1.h |
| 66 | |
| 67 | $(BUILT_SOURCES): $(srcdir)/linux/x86_64/makeheaders.sh |
| 68 | cd linux/x86_64 && $(SHELL) ./makeheaders.sh |
| 69 | |
| 70 | endif X86_64 |
| 71 | endif LINUX |