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 | |
Roland McGrath | 9c9a253 | 2003-02-20 02:56:29 +0000 | [diff] [blame] | 15 | strace_SOURCES = strace.c syscall.c util.c desc.c file.c ipc.c \ |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 16 | io.c ioctl.c mem.c net.c process.c bjm.c \ |
| 17 | resource.c signal.c sock.c system.c term.c time.c \ |
| 18 | proc.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 \ |
Roland McGrath | 44f24c7 | 2003-01-09 06:53:25 +0000 | [diff] [blame] | 22 | debian/changelog debian/control debian/copyright debian/rules \ |
| 23 | strace.spec \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 24 | strace-graph COPYRIGHT CREDITS PORTING \ |
| 25 | README-CVS README-freebsd README-linux README-sunos4 README-svr4 \ |
| 26 | linux/ioctlsort.c linux/ioctlent.sh \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 27 | linux/ioctlent.h linux/errnoent.h linux/signalent.h \ |
| 28 | linux/syscall.h linux/syscallent.h linux/dummy.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 29 | linux/alpha/errnoent.h linux/alpha/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 30 | linux/alpha/signalent.h linux/alpha/syscallent.h \ |
Roland McGrath | cdb2473 | 2005-12-02 04:27:47 +0000 | [diff] [blame] | 31 | linux/arm/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 32 | linux/hppa/errnoent.h linux/hppa/ioctlent.h \ |
| 33 | linux/hppa/signalent.h linux/hppa/syscallent.h \ |
| 34 | linux/ia64/syscallent.h linux/ia64/errnoent.h \ |
| 35 | linux/ia64/ioctlent.h linux/ia64/signalent.h \ |
Roland McGrath | cdb2473 | 2005-12-02 04:27:47 +0000 | [diff] [blame] | 36 | linux/m68k/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 37 | linux/mips/ioctlent.sh linux/mips/errnoent.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 38 | linux/mips/ioctlent.h linux/mips/signalent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 39 | linux/mips/syscallent.h \ |
| 40 | linux/powerpc/syscallent.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 41 | linux/powerpc/errnoent.h linux/powerpc/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 42 | linux/powerpc/signalent.h \ |
| 43 | linux/s390/errnoent.h linux/s390/ioctlent.h \ |
| 44 | linux/s390/signalent.h linux/s390/syscallent.h \ |
| 45 | linux/s390x/errnoent.h linux/s390x/ioctlent.h \ |
| 46 | linux/s390x/signalent.h linux/s390x/syscallent.h \ |
Roland McGrath | ac971c2 | 2003-03-31 01:03:33 +0000 | [diff] [blame] | 47 | linux/sh/syscallent.h linux/sh/errnoent.h \ |
| 48 | linux/sh/ioctlent.h linux/sh/signalent.h \ |
Roland McGrath | 6617729 | 2004-07-12 07:27:23 +0000 | [diff] [blame] | 49 | linux/sh64/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 50 | linux/sparc/dummy2.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 51 | linux/sparc/errnoent.h linux/sparc/errnoent1.h \ |
| 52 | linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \ |
| 53 | linux/sparc/signalent.h linux/sparc/signalent1.h \ |
| 54 | linux/sparc/syscall.h linux/sparc/syscall1.h \ |
| 55 | linux/sparc/syscallent.h linux/sparc/syscallent1.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 56 | linux/sparc/gen.pl linux/sparc/syscall.h.2 \ |
Roland McGrath | 0165e77 | 2004-07-12 07:53:59 +0000 | [diff] [blame] | 57 | linux/sparc64/dummy2.h linux/sparc64/errnoent.h \ |
| 58 | linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \ |
| 59 | linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \ |
| 60 | linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \ |
| 61 | linux/sparc64/signalent1.h linux/sparc64/signalent2.h \ |
| 62 | linux/sparc64/syscall.h linux/sparc64/syscall1.h \ |
| 63 | linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \ |
| 64 | linux/sparc64/syscallent2.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 65 | linux/x86_64/syscallent.h linux/x86_64/gentab.pl \ |
Roland McGrath | 7daaace | 2002-12-30 09:33:20 +0000 | [diff] [blame] | 66 | linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \ |
| 67 | linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 68 | freebsd/ioctlent.sh \ |
| 69 | freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 70 | freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \ |
| 71 | freebsd/i386/signalent.h \ |
| 72 | freebsd/i386/syscall.h freebsd/i386/syscallent.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 73 | sunos4/dummy.h sunos4/errnoent.h \ |
| 74 | sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \ |
| 75 | sunos4/syscall.h sunos4/syscallent.h \ |
| 76 | svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 77 | svr4/signalent.h svr4/syscall.h svr4/syscallent.h |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 78 | |
| 79 | if MAINTAINER_MODE |
| 80 | if LINUX |
| 81 | |
| 82 | IOCTLDIR = /usr/include |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 83 | IOCTLASM = asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 84 | |
| 85 | if I386 |
| 86 | ioctlent_h = linux/ioctlent.h |
| 87 | else |
| 88 | ioctlent_h = linux/$(ARCH)/ioctlent.h |
| 89 | endif |
| 90 | |
| 91 | BUILT_SOURCES = $(ioctlent_h) |
| 92 | |
| 93 | $(srcdir)/$(ioctlent_h): ioctlsort |
| 94 | $(<D)/$(<F) > $@ |
| 95 | ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 96 | $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ |
| 97 | -o $@ $< |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 98 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 99 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 100 | ioctldefs.h: ioctls.h ; |
| 101 | |
| 102 | endif |
| 103 | endif |