Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 1 | # Automake input for strace. |
| 2 | |
Dmitry V. Levin | 4e4b5ad | 2011-02-27 00:28:50 +0000 | [diff] [blame] | 3 | SUBDIRS = tests |
| 4 | |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 5 | bin_PROGRAMS = strace |
| 6 | man_MANS = strace.1 |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 7 | bin_SCRIPTS = strace-graph |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 8 | |
| 9 | # OS is one of `linux', `sunos4', `svr4', or `freebsd'. |
| 10 | OS = @opsys@ |
| 11 | # ARCH is `i386', `m68k', `sparc', etc. |
| 12 | ARCH = @arch@ |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 13 | |
Dmitry V. Levin | 916aded | 2010-09-09 17:36:36 +0000 | [diff] [blame] | 14 | ACLOCAL_AMFLAGS = -I m4 |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 15 | AM_CFLAGS = $(WARN_CFLAGS) |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 16 | AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS) -I$(builddir)/$(OS) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 17 | |
Dmitry V. Levin | 7d61ff1 | 2006-12-21 21:15:04 +0000 | [diff] [blame] | 18 | 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] | 19 | 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] | 20 | resource.c signal.c sock.c system.c term.c time.c \ |
Grant Edwards | 8a08277 | 2011-04-07 20:25:40 +0000 | [diff] [blame] | 21 | proc.c scsi.c stream.c block.c pathtrace.c |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 22 | noinst_HEADERS = defs.h |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 23 | |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 24 | EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \ |
Dmitry V. Levin | 0afbf85 | 2011-02-23 12:43:46 +0000 | [diff] [blame] | 25 | debian/changelog debian/compat debian/control debian/copyright \ |
| 26 | debian/rules debian/source/format debian/watch \ |
| 27 | debian/strace64.install debian/strace64.manpages \ |
Roland McGrath | 09a007c | 2008-07-22 08:33:40 +0000 | [diff] [blame] | 28 | debian/strace.docs debian/strace.examples debian/strace.install \ |
| 29 | debian/strace.manpages debian/strace-udeb.install \ |
Roland McGrath | 44f24c7 | 2003-01-09 06:53:25 +0000 | [diff] [blame] | 30 | strace.spec \ |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 31 | strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \ |
Dmitry V. Levin | 82f4cc6 | 2009-07-07 22:33:41 +0000 | [diff] [blame] | 32 | README-freebsd README-linux README-sunos4 README-svr4 \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 33 | linux/ioctlsort.c linux/ioctlent.sh \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 34 | linux/ioctlent.h.in linux/errnoent.h linux/signalent.h \ |
Dmitry V. Levin | c94a774 | 2010-04-07 10:17:24 +0000 | [diff] [blame] | 35 | linux/syscall.h linux/dummy.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 36 | linux/i386/ioctlent.h.in linux/i386/syscallent.h \ |
| 37 | linux/alpha/errnoent.h linux/alpha/ioctlent.h.in \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 38 | linux/alpha/signalent.h linux/alpha/syscallent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 39 | linux/arm/ioctlent.h.in linux/arm/syscallent.h \ |
| 40 | linux/arm/syscallent1.h \ |
Roland McGrath | 1cdfb8f | 2008-08-01 01:15:24 +0000 | [diff] [blame] | 41 | linux/arm/signalent1.h linux/arm/ioctlent1.h \ |
| 42 | linux/arm/errnoent1.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 43 | linux/avr32/ioctlent.h.in linux/avr32/syscallent.h \ |
| 44 | linux/bfin/ioctlent.h.in linux/bfin/syscallent.h \ |
| 45 | linux/hppa/errnoent.h linux/hppa/ioctlent.h.in \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 46 | linux/hppa/signalent.h linux/hppa/syscallent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 47 | linux/ia64/ioctlent.h.in \ |
Dmitry V. Levin | 0afbf85 | 2011-02-23 12:43:46 +0000 | [diff] [blame] | 48 | linux/ia64/signalent.h \ |
| 49 | linux/ia64/syscallent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 50 | linux/m68k/ioctlent.h.in linux/m68k/syscallent.h \ |
| 51 | linux/microblaze/ioctlent.h.in linux/microblaze/syscallent.h \ |
Denys Vlasenko | 185cce1 | 2009-02-20 16:00:41 +0000 | [diff] [blame] | 52 | linux/mips/ioctlent.sh linux/mips/errnoent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 53 | linux/mips/ioctlent.h.in linux/mips/signalent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 54 | linux/mips/syscallent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 55 | linux/powerpc/ioctlent.h.in linux/powerpc/ioctlent1.h \ |
Dmitry V. Levin | 0afbf85 | 2011-02-23 12:43:46 +0000 | [diff] [blame] | 56 | linux/powerpc/syscallent.h linux/powerpc/syscallent1.h \ |
| 57 | linux/powerpc/errnoent1.h linux/powerpc/signalent1.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 58 | linux/s390/ioctlent.h.in \ |
Denys Vlasenko | f3c9ed4 | 2009-02-20 17:38:47 +0000 | [diff] [blame] | 59 | linux/s390/syscallent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 60 | linux/s390x/ioctlent.h.in \ |
Denys Vlasenko | f3c9ed4 | 2009-02-20 17:38:47 +0000 | [diff] [blame] | 61 | linux/s390x/syscallent.h \ |
Denys Vlasenko | d8df371 | 2009-02-20 15:51:51 +0000 | [diff] [blame] | 62 | linux/sh/syscallent.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 63 | linux/sh/ioctlent.h.in \ |
| 64 | linux/sh64/ioctlent.h.in linux/sh64/syscallent.h \ |
Roland McGrath | d97b207 | 2002-12-30 10:45:58 +0000 | [diff] [blame] | 65 | linux/sparc/dummy2.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 66 | linux/sparc/errnoent.h linux/sparc/errnoent1.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 67 | linux/sparc/ioctlent.h.in linux/sparc/ioctlent1.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 68 | linux/sparc/signalent.h linux/sparc/signalent1.h \ |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 69 | linux/sparc/syscall1.h \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 70 | linux/sparc/syscallent.h linux/sparc/syscallent1.h \ |
Mike Frysinger | 71a78bc | 2011-02-19 15:13:05 -0500 | [diff] [blame] | 71 | linux/sparc/gen.pl \ |
Roland McGrath | 0165e77 | 2004-07-12 07:53:59 +0000 | [diff] [blame] | 72 | linux/sparc64/dummy2.h linux/sparc64/errnoent.h \ |
| 73 | linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 74 | linux/sparc64/ioctlent.h.in linux/sparc64/ioctlent1.h \ |
Roland McGrath | 0165e77 | 2004-07-12 07:53:59 +0000 | [diff] [blame] | 75 | linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \ |
| 76 | linux/sparc64/signalent1.h linux/sparc64/signalent2.h \ |
Mike Frysinger | 330a895 | 2011-02-19 15:48:52 -0500 | [diff] [blame] | 77 | linux/sparc64/syscall1.h \ |
Roland McGrath | 0165e77 | 2004-07-12 07:53:59 +0000 | [diff] [blame] | 78 | linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \ |
| 79 | linux/sparc64/syscallent2.h \ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 80 | linux/tile/ioctlent.h.in linux/tile/syscallent.h \ |
| 81 | linux/x86_64/ioctlent.h.in linux/x86_64/syscallent.h \ |
| 82 | linux/x86_64/gentab.pl \ |
Roland McGrath | 7daaace | 2002-12-30 09:33:20 +0000 | [diff] [blame] | 83 | linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \ |
| 84 | linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 85 | freebsd/ioctlent.sh \ |
| 86 | freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \ |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 87 | freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \ |
| 88 | freebsd/i386/signalent.h \ |
| 89 | freebsd/i386/syscall.h freebsd/i386/syscallent.h \ |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 90 | sunos4/dummy.h sunos4/errnoent.h \ |
| 91 | sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \ |
| 92 | sunos4/syscall.h sunos4/syscallent.h \ |
| 93 | svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \ |
Roland McGrath | 5a862ff | 2006-04-25 07:33:20 +0000 | [diff] [blame] | 94 | svr4/signalent.h svr4/syscall.h svr4/syscallent.h \ |
| 95 | xlate.el |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 96 | |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 97 | .PHONY: srpm |
Dmitry V. Levin | 525a39a | 2011-02-27 14:05:58 +0000 | [diff] [blame] | 98 | srpm: dist-xz |
| 99 | rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 100 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 101 | BUILT_SOURCES = |
| 102 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 103 | if MAINTAINER_MODE |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 104 | |
| 105 | gen_changelog_start_date = 2009-07-08 20:00 |
| 106 | $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ |
| 107 | $(top_srcdir)/.git/refs/heads/* |
| 108 | @rm -f $@.new |
| 109 | (cd $(top_srcdir); \ |
| 110 | ./gitlog-to-changelog --since='$(gen_changelog_start_date)'; \ |
| 111 | echo; echo; echo 'See ChangeLog-CVS for older changes.' \ |
| 112 | ) > $@.new |
| 113 | chmod 444 $@.new |
| 114 | mv -f $@.new $@ |
| 115 | |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 116 | $(srcdir)/CREDITS: $(top_srcdir)/CREDITS.in $(top_srcdir)/.mailmap \ |
Sebastian Pipping | 6c0e2fc | 2011-03-04 02:21:28 +0100 | [diff] [blame] | 117 | $(srcdir)/Makefile.in $(top_srcdir)/.git/refs/heads/* |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 118 | $(AM_V_GEN) \ |
| 119 | { \ |
| 120 | cd $(top_srcdir); \ |
| 121 | sed '/^##/,$$d' CREDITS.in; \ |
| 122 | { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \ |
| 123 | git log --pretty=format:'%aN %aE'; \ |
| 124 | } | LC_ALL=C sort -u \ |
| 125 | | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \ |
| 126 | } > $@-t && mv $@-t $@ |
| 127 | |
Dmitry V. Levin | 76ac37d | 2009-10-09 22:10:09 +0000 | [diff] [blame] | 128 | export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX |
| 129 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 130 | if LINUX |
| 131 | |
| 132 | IOCTLDIR = /usr/include |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 133 | IOCTLASM = asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 134 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 135 | ioctlent_h_in = linux/ioctlent.h.in |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 136 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 137 | BUILT_SOURCES += $(ioctlent_h_in) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 138 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 139 | $(srcdir)/$(ioctlent_h_in): ioctlsort |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 140 | $(<D)/$(<F) > $@ |
| 141 | ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 142 | $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ |
| 143 | -o $@ $< |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 144 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 145 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 146 | ioctldefs.h: ioctls.h ; |
| 147 | |
| 148 | endif |
| 149 | endif |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 150 | |
| 151 | if LINUX |
| 152 | |
| 153 | ioctlent_h = $(builddir)/$(OS)/ioctlent.h |
| 154 | BUILT_SOURCES += $(ioctlent_h) |
| 155 | CLEANFILES = $(ioctlent_h) |
| 156 | ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in |
| 157 | $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps) |
| 158 | $(MKDIR_P) $(builddir)/$(OS) |
| 159 | cat $(ioctlent_h_deps) | \ |
| 160 | $(COMPILE) -E -P - | \ |
| 161 | LC_ALL=C sort -u -k3,3 -k2,2 > $@ |
| 162 | |
| 163 | endif |