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