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 |
Denys Vlasenko | 796f6e8 | 2012-03-09 14:21:59 +0100 | [diff] [blame] | 7 | bin_SCRIPTS = strace-graph strace-log-merge |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 8 | |
Dmitry V. Levin | ee245d8 | 2012-02-25 15:34:10 +0100 | [diff] [blame] | 9 | OS = linux |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 10 | # ARCH is `i386', `m68k', `sparc', etc. |
| 11 | ARCH = @arch@ |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 12 | |
Dmitry V. Levin | 916aded | 2010-09-09 17:36:36 +0000 | [diff] [blame] | 13 | ACLOCAL_AMFLAGS = -I m4 |
Dmitry V. Levin | 918e49b | 2010-09-09 17:41:15 +0000 | [diff] [blame] | 14 | AM_CFLAGS = $(WARN_CFLAGS) |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 15 | AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS) -I$(builddir)/$(OS) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 16 | |
Dmitry V. Levin | 7d61ff1 | 2006-12-21 21:15:04 +0000 | [diff] [blame] | 17 | 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] | 18 | 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] | 19 | resource.c signal.c sock.c system.c term.c time.c \ |
Denys Vlasenko | 1a3cf10 | 2012-02-25 02:54:34 +0100 | [diff] [blame] | 20 | scsi.c stream.c block.c pathtrace.c |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 21 | noinst_HEADERS = defs.h |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 22 | |
Roland McGrath | 80964aa | 2002-12-30 01:11:08 +0000 | [diff] [blame] | 23 | 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] | 24 | debian/changelog debian/compat debian/control debian/copyright \ |
| 25 | debian/rules debian/source/format debian/watch \ |
| 26 | debian/strace64.install debian/strace64.manpages \ |
Roland McGrath | 09a007c | 2008-07-22 08:33:40 +0000 | [diff] [blame] | 27 | debian/strace.docs debian/strace.examples debian/strace.install \ |
| 28 | debian/strace.manpages debian/strace-udeb.install \ |
Roland McGrath | 44f24c7 | 2003-01-09 06:53:25 +0000 | [diff] [blame] | 29 | strace.spec \ |
Denys Vlasenko | 796f6e8 | 2012-03-09 14:21:59 +0100 | [diff] [blame] | 30 | strace-graph strace-log-merge \ |
| 31 | ChangeLog ChangeLog-CVS COPYRIGHT CREDITS \ |
Dmitry V. Levin | ee245d8 | 2012-02-25 15:34:10 +0100 | [diff] [blame] | 32 | README-linux README-linux-ptrace \ |
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 | 5a862ff | 2006-04-25 07:33:20 +0000 | [diff] [blame] | 85 | xlate.el |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 86 | |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 87 | .PHONY: srpm |
Dmitry V. Levin | 525a39a | 2011-02-27 14:05:58 +0000 | [diff] [blame] | 88 | srpm: dist-xz |
| 89 | rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 90 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 91 | BUILT_SOURCES = |
| 92 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 93 | if MAINTAINER_MODE |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 94 | |
| 95 | gen_changelog_start_date = 2009-07-08 20:00 |
| 96 | $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ |
| 97 | $(top_srcdir)/.git/refs/heads/* |
| 98 | @rm -f $@.new |
| 99 | (cd $(top_srcdir); \ |
Dmitry V. Levin | 594399d | 2011-11-05 13:32:27 +0000 | [diff] [blame] | 100 | ./gitlog-to-changelog --append-dot \ |
| 101 | --since='$(gen_changelog_start_date)'; \ |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 102 | echo; echo; echo 'See ChangeLog-CVS for older changes.' \ |
| 103 | ) > $@.new |
| 104 | chmod 444 $@.new |
| 105 | mv -f $@.new $@ |
| 106 | |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 107 | $(srcdir)/CREDITS: $(top_srcdir)/CREDITS.in $(top_srcdir)/.mailmap \ |
Sebastian Pipping | 6c0e2fc | 2011-03-04 02:21:28 +0100 | [diff] [blame] | 108 | $(srcdir)/Makefile.in $(top_srcdir)/.git/refs/heads/* |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 109 | $(AM_V_GEN) \ |
| 110 | { \ |
| 111 | cd $(top_srcdir); \ |
| 112 | sed '/^##/,$$d' CREDITS.in; \ |
| 113 | { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \ |
| 114 | git log --pretty=format:'%aN %aE'; \ |
| 115 | } | LC_ALL=C sort -u \ |
| 116 | | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \ |
| 117 | } > $@-t && mv $@-t $@ |
| 118 | |
Dmitry V. Levin | 76ac37d | 2009-10-09 22:10:09 +0000 | [diff] [blame] | 119 | export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX |
| 120 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 121 | IOCTLDIR = /usr/include |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 122 | IOCTLASM = asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 123 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 124 | ioctlent_h_in = linux/ioctlent.h.in |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 125 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 126 | BUILT_SOURCES += $(ioctlent_h_in) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 127 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 128 | $(srcdir)/$(ioctlent_h_in): ioctlsort |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 129 | $(<D)/$(<F) > $@ |
| 130 | ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 131 | $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ |
| 132 | -o $@ $< |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 133 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 134 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 135 | ioctldefs.h: ioctls.h ; |
| 136 | |
| 137 | endif |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 138 | |
| 139 | ioctlent_h = $(builddir)/$(OS)/ioctlent.h |
| 140 | BUILT_SOURCES += $(ioctlent_h) |
| 141 | CLEANFILES = $(ioctlent_h) |
| 142 | ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in |
| 143 | $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps) |
| 144 | $(MKDIR_P) $(builddir)/$(OS) |
| 145 | cat $(ioctlent_h_deps) | \ |
| 146 | $(COMPILE) -E -P - | \ |
| 147 | LC_ALL=C sort -u -k3,3 -k2,2 > $@ |