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 | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 17 | strace_SOURCES = \ |
| 18 | bjm.c \ |
| 19 | block.c \ |
| 20 | count.c \ |
| 21 | desc.c \ |
| 22 | file.c \ |
| 23 | io.c \ |
| 24 | ioctl.c \ |
| 25 | ipc.c \ |
| 26 | loop.c \ |
| 27 | mem.c \ |
| 28 | mtd.c \ |
| 29 | net.c \ |
| 30 | pathtrace.c \ |
| 31 | process.c \ |
| 32 | quota.c \ |
| 33 | resource.c \ |
| 34 | scsi.c \ |
| 35 | signal.c \ |
| 36 | sock.c \ |
| 37 | strace.c \ |
| 38 | stream.c \ |
| 39 | syscall.c \ |
| 40 | system.c \ |
| 41 | term.c \ |
| 42 | time.c \ |
| 43 | util.c \ |
| 44 | vsprintf.c |
| 45 | |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 46 | noinst_HEADERS = defs.h |
Denys Vlasenko | 76f61be | 2013-03-06 18:59:09 +0100 | [diff] [blame] | 47 | # Enable this to get link map generated |
| 48 | #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 49 | |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 50 | EXTRA_DIST = \ |
| 51 | $(man_MANS) \ |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame^] | 52 | .version \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 53 | COPYRIGHT \ |
| 54 | CREDITS \ |
| 55 | ChangeLog \ |
| 56 | ChangeLog-CVS \ |
| 57 | README-linux \ |
| 58 | README-linux-ptrace \ |
| 59 | debian/changelog \ |
| 60 | debian/compat \ |
| 61 | debian/control \ |
| 62 | debian/copyright \ |
| 63 | debian/rules \ |
| 64 | debian/source/format \ |
| 65 | debian/strace-udeb.install \ |
| 66 | debian/strace.docs \ |
| 67 | debian/strace.examples \ |
| 68 | debian/strace.install \ |
| 69 | debian/strace.manpages \ |
| 70 | debian/strace64.install \ |
| 71 | debian/strace64.manpages \ |
| 72 | debian/watch \ |
| 73 | errnoent.sh \ |
| 74 | ioctlsort.c \ |
| 75 | linux/alpha/errnoent.h \ |
| 76 | linux/alpha/ioctlent.h.in \ |
| 77 | linux/alpha/signalent.h \ |
| 78 | linux/alpha/syscallent.h \ |
| 79 | linux/arm/ioctlent.h.in \ |
| 80 | linux/arm/syscallent.h \ |
| 81 | linux/avr32/ioctlent.h.in \ |
| 82 | linux/avr32/syscallent.h \ |
| 83 | linux/bfin/ioctlent.h.in \ |
| 84 | linux/bfin/syscallent.h \ |
| 85 | linux/dummy.h \ |
| 86 | linux/errnoent.h \ |
| 87 | linux/hppa/errnoent.h \ |
| 88 | linux/hppa/ioctlent.h.in \ |
| 89 | linux/hppa/signalent.h \ |
| 90 | linux/hppa/syscallent.h \ |
| 91 | linux/i386/ioctlent.h.in \ |
| 92 | linux/i386/syscallent.h \ |
| 93 | linux/ia64/ioctlent.h.in \ |
| 94 | linux/ia64/signalent.h \ |
| 95 | linux/ia64/syscallent.h \ |
| 96 | linux/ioctlent-filter.awk \ |
| 97 | linux/ioctlent.h.in \ |
| 98 | linux/ioctlent.sh \ |
| 99 | linux/ioctlsort.c \ |
| 100 | linux/m68k/ioctlent.h.in \ |
| 101 | linux/m68k/syscallent.h \ |
| 102 | linux/microblaze/ioctlent.h.in \ |
| 103 | linux/microblaze/syscallent.h \ |
| 104 | linux/mips/errnoent.h \ |
| 105 | linux/mips/ioctlent.h.in \ |
| 106 | linux/mips/ioctlent.sh \ |
| 107 | linux/mips/signalent.h \ |
| 108 | linux/mips/syscallent.h \ |
| 109 | linux/mtd-abi.h \ |
| 110 | linux/powerpc/errnoent1.h \ |
| 111 | linux/powerpc/ioctlent.h.in \ |
| 112 | linux/powerpc/ioctlent1.h \ |
| 113 | linux/powerpc/signalent1.h \ |
| 114 | linux/powerpc/syscallent.h \ |
| 115 | linux/powerpc/syscallent1.h \ |
| 116 | linux/s390/ioctlent.h.in \ |
| 117 | linux/s390/syscallent.h \ |
| 118 | linux/s390x/ioctlent.h.in \ |
| 119 | linux/s390x/syscallent.h \ |
| 120 | linux/sh/ioctlent.h.in \ |
| 121 | linux/sh/syscallent.h \ |
| 122 | linux/sh64/ioctlent.h.in \ |
| 123 | linux/sh64/syscallent.h \ |
| 124 | linux/signalent.h \ |
| 125 | linux/sparc/dummy2.h \ |
| 126 | linux/sparc/errnoent.h \ |
| 127 | linux/sparc/errnoent1.h \ |
| 128 | linux/sparc/gen.pl \ |
| 129 | linux/sparc/ioctlent.h.in \ |
| 130 | linux/sparc/ioctlent1.h \ |
| 131 | linux/sparc/signalent.h \ |
| 132 | linux/sparc/signalent1.h \ |
| 133 | linux/sparc/syscall1.h \ |
| 134 | linux/sparc/syscallent.h \ |
| 135 | linux/sparc/syscallent1.h \ |
| 136 | linux/sparc64/dummy2.h \ |
| 137 | linux/sparc64/errnoent.h \ |
| 138 | linux/sparc64/errnoent1.h \ |
| 139 | linux/sparc64/errnoent2.h \ |
| 140 | linux/sparc64/ioctlent.h.in \ |
| 141 | linux/sparc64/ioctlent1.h \ |
| 142 | linux/sparc64/ioctlent2.h \ |
| 143 | linux/sparc64/signalent.h \ |
| 144 | linux/sparc64/signalent1.h \ |
| 145 | linux/sparc64/signalent2.h \ |
| 146 | linux/sparc64/syscall1.h \ |
| 147 | linux/sparc64/syscallent.h \ |
| 148 | linux/sparc64/syscallent1.h \ |
| 149 | linux/sparc64/syscallent2.h \ |
| 150 | linux/syscall.h \ |
| 151 | linux/tile/ioctlent.h.in \ |
| 152 | linux/tile/syscallent.h \ |
| 153 | linux/x32/errnoent.h \ |
| 154 | linux/x32/errnoent1.h \ |
| 155 | linux/x32/ioctlent.h.in \ |
| 156 | linux/x32/ioctlent1.h \ |
| 157 | linux/x32/signalent.h \ |
| 158 | linux/x32/signalent1.h \ |
| 159 | linux/x32/syscallent.h \ |
| 160 | linux/x32/syscallent1.h \ |
| 161 | linux/x86_64/errnoent1.h \ |
| 162 | linux/x86_64/errnoent2.h \ |
| 163 | linux/x86_64/gentab.pl \ |
| 164 | linux/x86_64/ioctlent.h.in \ |
| 165 | linux/x86_64/ioctlent1.h \ |
| 166 | linux/x86_64/ioctlent2.h \ |
| 167 | linux/x86_64/signalent1.h \ |
| 168 | linux/x86_64/signalent2.h \ |
| 169 | linux/x86_64/syscallent.h \ |
| 170 | linux/x86_64/syscallent1.h \ |
| 171 | linux/x86_64/syscallent2.h \ |
| 172 | signalent.sh \ |
| 173 | strace-graph \ |
| 174 | strace-log-merge \ |
| 175 | strace.spec \ |
| 176 | syscallent.sh \ |
| 177 | xlate.el |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 178 | |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 179 | .PHONY: srpm |
Dmitry V. Levin | 525a39a | 2011-02-27 14:05:58 +0000 | [diff] [blame] | 180 | srpm: dist-xz |
| 181 | rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 182 | |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame^] | 183 | BUILT_SOURCES = .version |
| 184 | |
| 185 | $(srcdir)/.version: |
| 186 | $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@ |
| 187 | |
| 188 | dist-hook: |
| 189 | $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version |
| 190 | |
| 191 | today = $(shell date +%Y-%m-%d) |
| 192 | version_regexp = $(subst .,\.,$(VERSION)) |
| 193 | news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))' |
| 194 | |
| 195 | news-check: NEWS |
| 196 | $(AM_V_GEN)if head -1 $< | \ |
| 197 | grep -x $(news_check_regexp) >/dev/null; then \ |
| 198 | :; \ |
| 199 | else \ |
| 200 | echo >&2 '$<: check failed'; \ |
| 201 | exit 1; \ |
| 202 | fi |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 203 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 204 | if MAINTAINER_MODE |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 205 | |
| 206 | gen_changelog_start_date = 2009-07-08 20:00 |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame^] | 207 | $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ |
| 208 | $(srcdir)/.version |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 209 | @rm -f $@.new |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame^] | 210 | (cd $(srcdir); \ |
Dmitry V. Levin | 594399d | 2011-11-05 13:32:27 +0000 | [diff] [blame] | 211 | ./gitlog-to-changelog --append-dot \ |
| 212 | --since='$(gen_changelog_start_date)'; \ |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 213 | echo; echo; echo 'See ChangeLog-CVS for older changes.' \ |
| 214 | ) > $@.new |
| 215 | chmod 444 $@.new |
| 216 | mv -f $@.new $@ |
| 217 | |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame^] | 218 | $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \ |
| 219 | $(srcdir)/Makefile.in $(srcdir)/.version |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 220 | $(AM_V_GEN) \ |
| 221 | { \ |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame^] | 222 | cd $(srcdir); \ |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 223 | sed '/^##/,$$d' CREDITS.in; \ |
| 224 | { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \ |
| 225 | git log --pretty=format:'%aN %aE'; \ |
| 226 | } | LC_ALL=C sort -u \ |
| 227 | | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \ |
| 228 | } > $@-t && mv $@-t $@ |
| 229 | |
Dmitry V. Levin | 76ac37d | 2009-10-09 22:10:09 +0000 | [diff] [blame] | 230 | export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX |
| 231 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 232 | IOCTLDIR = /usr/include |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 233 | IOCTLASM = asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 234 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 235 | ioctlent_h_in = linux/ioctlent.h.in |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 236 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 237 | BUILT_SOURCES += $(ioctlent_h_in) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 238 | |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 239 | $(srcdir)/$(ioctlent_h_in): ioctlsort |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 240 | $(<D)/$(<F) > $@ |
| 241 | ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 242 | $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ |
| 243 | -o $@ $< |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 244 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 245 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 246 | ioctldefs.h: ioctls.h ; |
| 247 | |
| 248 | endif |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 249 | |
| 250 | ioctlent_h = $(builddir)/$(OS)/ioctlent.h |
| 251 | BUILT_SOURCES += $(ioctlent_h) |
| 252 | CLEANFILES = $(ioctlent_h) |
| 253 | ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in |
| 254 | $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps) |
| 255 | $(MKDIR_P) $(builddir)/$(OS) |
| 256 | cat $(ioctlent_h_deps) | \ |
| 257 | $(COMPILE) -E -P - | \ |
Dmitry V. Levin | 17e3860 | 2012-10-27 01:11:13 +0000 | [diff] [blame] | 258 | LC_ALL=C sort -u -k3,3 -k2,2 | \ |
| 259 | awk -f $(srcdir)/linux/ioctlent-filter.awk > $@ |