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 | |
Dmitry V. Levin | 916aded | 2010-09-09 17:36:36 +0000 | [diff] [blame] | 12 | ACLOCAL_AMFLAGS = -I m4 |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 13 | AM_CFLAGS = $(WARN_CFLAGS) |
| 14 | AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 15 | |
Dmitry V. Levin | 7d61ff1 | 2006-12-21 21:15:04 +0000 | [diff] [blame] | 16 | 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] | 17 | 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] | 18 | resource.c signal.c sock.c system.c term.c time.c \ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 19 | proc.c scsi.c stream.c block.c |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 20 | noinst_HEADERS = defs.h |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 21 | |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 22 | EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame] | 23 | debian/changelog debian/control debian/copyright debian/rules \ |
Roland McGrath | 09a007c | 2008-07-22 08:33:40 +0000 | [diff] [blame] | 24 | debian/compat debian/strace64.install debian/strace64.manpages \ |
| 25 | debian/strace.docs debian/strace.examples debian/strace.install \ |
| 26 | debian/strace.manpages debian/strace-udeb.install \ |
Roland McGrath | 44f24c7 | 2003-01-09 06:53:25 +0000 | [diff] [blame] | 27 | strace.spec \ |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 28 | strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \ |
Dmitry V. Levin | 82f4cc6 | 2009-07-07 22:33:41 +0000 | [diff] [blame] | 29 | README-freebsd README-linux README-sunos4 README-svr4 \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 30 | linux/ioctlsort.c linux/ioctlent.sh \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 31 | linux/ioctlent.h linux/errnoent.h linux/signalent.h \ |
Dmitry V. Levin | c94a774 | 2010-04-07 10:17:24 +0000 | [diff] [blame] | 32 | linux/syscall.h linux/dummy.h \ |
| 33 | linux/i386/syscallent.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 34 | linux/alpha/errnoent.h linux/alpha/ioctlent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 35 | linux/alpha/signalent.h linux/alpha/syscallent.h \ |
Roland McGrath | 1cdfb8f | 2008-08-01 01:15:24 +0000 | [diff] [blame] | 36 | linux/arm/syscallent.h linux/arm/syscallent1.h \ |
| 37 | linux/arm/signalent1.h linux/arm/ioctlent1.h \ |
| 38 | linux/arm/errnoent1.h \ |
Denys Vlasenko | 5ae2b7c | 2009-02-27 20:32:52 +0000 | [diff] [blame] | 39 | linux/avr32/syscallent.h \ |
Dmitry V. Levin | 87ea1f4 | 2008-11-10 22:21:41 +0000 | [diff] [blame] | 40 | linux/bfin/ioctlent.h linux/bfin/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 41 | linux/hppa/errnoent.h linux/hppa/ioctlent.h \ |
| 42 | linux/hppa/signalent.h linux/hppa/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 43 | linux/ia64/syscallent.h \ |
Denys Vlasenko | f3c9ed4 | 2009-02-20 17:38:47 +0000 | [diff] [blame] | 44 | linux/ia64/ioctlent.h \ |
Roland McGrath | cdb2473 | 2005-12-02 04:27:47 +0000 | [diff] [blame] | 45 | linux/m68k/syscallent.h \ |
Edgar E. Iglesias | 939caba | 2010-07-06 14:21:07 +0200 | [diff] [blame] | 46 | linux/microblaze/syscallent.h \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame] | 47 | linux/mips/ioctlent.sh linux/mips/errnoent.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 48 | linux/mips/ioctlent.h linux/mips/signalent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 49 | linux/mips/syscallent.h \ |
| 50 | linux/powerpc/syscallent.h \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame] | 51 | linux/powerpc/ioctlent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 52 | linux/s390/ioctlent.h \ |
Denys Vlasenko | f3c9ed4 | 2009-02-20 17:38:47 +0000 | [diff] [blame] | 53 | linux/s390/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 54 | linux/s390x/ioctlent.h \ |
Denys Vlasenko | f3c9ed4 | 2009-02-20 17:38:47 +0000 | [diff] [blame] | 55 | linux/s390x/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 56 | linux/sh/syscallent.h \ |
Denys Vlasenko | 5356026 | 2009-02-20 16:24:39 +0000 | [diff] [blame] | 57 | linux/sh/ioctlent.h \ |
Roland McGrath | 6617729 | 2004-07-12 07:27:23 +0000 | [diff] [blame] | 58 | linux/sh64/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 59 | linux/sparc/dummy2.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 60 | linux/sparc/errnoent.h linux/sparc/errnoent1.h \ |
| 61 | linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \ |
| 62 | linux/sparc/signalent.h linux/sparc/signalent1.h \ |
| 63 | linux/sparc/syscall.h linux/sparc/syscall1.h \ |
| 64 | linux/sparc/syscallent.h linux/sparc/syscallent1.h \ |
Mike Frysinger | 71a78bc | 2011-02-19 15:13:05 -0500 | [diff] [blame^] | 65 | linux/sparc/gen.pl \ |
Roland McGrath | 0165e77 | 2004-07-12 07:53:59 +0000 | [diff] [blame] | 66 | linux/sparc64/dummy2.h linux/sparc64/errnoent.h \ |
| 67 | linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \ |
| 68 | linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \ |
| 69 | linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \ |
| 70 | linux/sparc64/signalent1.h linux/sparc64/signalent2.h \ |
| 71 | linux/sparc64/syscall.h linux/sparc64/syscall1.h \ |
| 72 | linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \ |
| 73 | linux/sparc64/syscallent2.h \ |
Chris Metcalf | c8c6698 | 2009-12-28 10:00:15 -0500 | [diff] [blame] | 74 | linux/tile/syscallent.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 75 | linux/x86_64/syscallent.h linux/x86_64/gentab.pl \ |
Roland McGrath | 7daaace | 2002-12-30 09:33:20 +0000 | [diff] [blame] | 76 | linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \ |
| 77 | linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 78 | freebsd/ioctlent.sh \ |
| 79 | freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 80 | freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \ |
| 81 | freebsd/i386/signalent.h \ |
| 82 | freebsd/i386/syscall.h freebsd/i386/syscallent.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 83 | sunos4/dummy.h sunos4/errnoent.h \ |
| 84 | sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \ |
| 85 | sunos4/syscall.h sunos4/syscallent.h \ |
| 86 | svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \ |
Roland McGrath | 5a862ff | 2006-04-25 07:33:20 +0000 | [diff] [blame] | 87 | svr4/signalent.h svr4/syscall.h svr4/syscallent.h \ |
| 88 | xlate.el |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 89 | |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 90 | .PHONY: srpm |
| 91 | srpm: dist-bzip2 |
| 92 | rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.bz2 |
| 93 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 94 | if MAINTAINER_MODE |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 95 | |
| 96 | gen_changelog_start_date = 2009-07-08 20:00 |
| 97 | $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ |
| 98 | $(top_srcdir)/.git/refs/heads/* |
| 99 | @rm -f $@.new |
| 100 | (cd $(top_srcdir); \ |
| 101 | ./gitlog-to-changelog --since='$(gen_changelog_start_date)'; \ |
| 102 | echo; echo; echo 'See ChangeLog-CVS for older changes.' \ |
| 103 | ) > $@.new |
| 104 | chmod 444 $@.new |
| 105 | mv -f $@.new $@ |
| 106 | |
Dmitry V. Levin | 76ac37d | 2009-10-09 22:10:09 +0000 | [diff] [blame] | 107 | export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX |
| 108 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 109 | if LINUX |
| 110 | |
| 111 | IOCTLDIR = /usr/include |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 112 | IOCTLASM = asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 113 | |
| 114 | if I386 |
| 115 | ioctlent_h = linux/ioctlent.h |
| 116 | else |
| 117 | ioctlent_h = linux/$(ARCH)/ioctlent.h |
| 118 | endif |
| 119 | |
| 120 | BUILT_SOURCES = $(ioctlent_h) |
| 121 | |
| 122 | $(srcdir)/$(ioctlent_h): ioctlsort |
| 123 | $(<D)/$(<F) > $@ |
| 124 | ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 125 | $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ |
| 126 | -o $@ $< |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 127 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 128 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 129 | ioctldefs.h: ioctls.h ; |
| 130 | |
| 131 | endif |
| 132 | endif |