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) |
Dmitry V. Levin | 579836c | 2015-01-13 06:12:16 +0000 | [diff] [blame] | 15 | AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \ |
| 16 | -I$(srcdir)/$(OS)/$(ARCH) \ |
| 17 | -I$(builddir)/$(OS) \ |
| 18 | -I$(srcdir)/$(OS) |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 19 | |
Mike Frysinger | 761ed9b | 2014-02-16 01:59:20 -0500 | [diff] [blame] | 20 | include xlat/Makemodule.am |
| 21 | |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 22 | strace_SOURCES = \ |
Dmitry V. Levin | 304cd81 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 23 | access.c \ |
Dmitry V. Levin | b94b983 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 24 | affinity.c \ |
Dmitry V. Levin | 2b64034 | 2013-11-11 15:06:18 +0000 | [diff] [blame] | 25 | aio.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 26 | bjm.c \ |
| 27 | block.c \ |
Dmitry V. Levin | 95edb8b | 2014-12-03 20:50:08 +0000 | [diff] [blame] | 28 | cacheflush.c \ |
Dmitry V. Levin | 5e7987b | 2014-12-03 20:30:15 +0000 | [diff] [blame] | 29 | capability.c \ |
Dmitry V. Levin | 9b2f674 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 30 | chdir.c \ |
Dmitry V. Levin | ad5cf1e | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 31 | chmod.c \ |
Dmitry V. Levin | 265903a | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 32 | clone.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 33 | count.c \ |
| 34 | desc.c \ |
Dmitry V. Levin | 2ed2cc7 | 2014-09-11 22:40:37 +0000 | [diff] [blame] | 35 | dirent.c \ |
Dmitry V. Levin | 7be2318 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 36 | execve.c \ |
Dmitry V. Levin | 9175909 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 37 | exit.c \ |
Dmitry V. Levin | 63f28dd | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 38 | fadvise.c \ |
Dmitry V. Levin | 2795a5f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 39 | fallocate.c \ |
Dmitry V. Levin | 99db95d | 2014-02-05 04:13:18 +0000 | [diff] [blame] | 40 | fanotify.c \ |
Dmitry V. Levin | 2f7d020 | 2014-12-13 16:20:44 +0000 | [diff] [blame] | 41 | fchownat.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 42 | file.c \ |
Dmitry V. Levin | e314f80 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 43 | futex.c \ |
Dmitry V. Levin | 8357638 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 44 | get_robust_list.c \ |
Dmitry V. Levin | 665f10c | 2014-12-11 19:21:54 +0000 | [diff] [blame] | 45 | getcpu.c \ |
Dmitry V. Levin | a836430 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 46 | getcwd.c \ |
Dmitry V. Levin | 03c06ea | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 47 | hostname.c \ |
Dmitry V. Levin | 2f332e9 | 2014-02-05 15:43:04 +0000 | [diff] [blame] | 48 | inotify.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 49 | io.c \ |
| 50 | ioctl.c \ |
Dmitry V. Levin | fc4727d | 2014-02-05 17:27:43 +0000 | [diff] [blame] | 51 | ioprio.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 52 | ipc.c \ |
Dmitry V. Levin | 90aa9f4 | 2014-02-05 13:48:26 +0000 | [diff] [blame] | 53 | kexec.c \ |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 54 | keyctl.c \ |
Dmitry V. Levin | 99a0544 | 2014-04-10 14:10:17 +0000 | [diff] [blame] | 55 | ldt.c \ |
Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 56 | link.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 57 | loop.c \ |
Dmitry V. Levin | b5d25ec | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 58 | lseek.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 59 | mem.c \ |
Dmitry V. Levin | db23b34 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 60 | mknod.c \ |
Dmitry V. Levin | 6da7ca3 | 2014-12-03 21:12:07 +0000 | [diff] [blame] | 61 | mount.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 62 | mtd.c \ |
| 63 | net.c \ |
Dmitry V. Levin | 964d80a | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 64 | open.c \ |
Dmitry V. Levin | f6eb0d6 | 2014-12-03 20:00:42 +0000 | [diff] [blame] | 65 | or1k_atomic.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 66 | pathtrace.c \ |
Dmitry V. Levin | d28b6a0 | 2014-12-03 21:06:11 +0000 | [diff] [blame] | 67 | personality.c \ |
Dmitry V. Levin | 53c993d | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 68 | prctl.c \ |
Dmitry V. Levin | 9514ac7 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 69 | printmode.c \ |
Dmitry V. Levin | ab21a94 | 2014-12-28 18:15:25 +0000 | [diff] [blame] | 70 | printstat.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 71 | process.c \ |
Dmitry V. Levin | db16c52 | 2014-12-11 19:21:54 +0000 | [diff] [blame] | 72 | process_vm.c \ |
Stefan Sørensen | b88a6f8 | 2014-01-31 12:01:01 +0100 | [diff] [blame] | 73 | ptp.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 74 | quota.c \ |
Dmitry V. Levin | 9e9ceab | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 75 | readahead.c \ |
Dmitry V. Levin | 46245b3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 76 | readlink.c \ |
Dmitry V. Levin | 9aaf88c | 2014-02-05 14:51:19 +0000 | [diff] [blame] | 77 | reboot.c \ |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 78 | renameat.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 79 | resource.c \ |
Dmitry V. Levin | fff2f31 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 80 | sched.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 81 | scsi.c \ |
| 82 | signal.c \ |
| 83 | sock.c \ |
Dmitry V. Levin | 2f6510c | 2014-08-21 03:17:48 +0000 | [diff] [blame] | 84 | socketutils.c \ |
Dmitry V. Levin | e36c72c | 2014-12-03 20:56:36 +0000 | [diff] [blame] | 85 | sram_alloc.c \ |
Dmitry V. Levin | 9a0dd74 | 2014-09-22 00:17:42 +0000 | [diff] [blame] | 86 | statfs.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 87 | strace.c \ |
| 88 | stream.c \ |
Dmitry V. Levin | 85a364a | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 89 | swapon.c \ |
Dmitry V. Levin | 710b3ae | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 90 | sync_file_range.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 91 | syscall.c \ |
Dmitry V. Levin | 172241b | 2014-12-03 20:20:52 +0000 | [diff] [blame] | 92 | sysctl.c \ |
Dmitry V. Levin | 57d45a2 | 2014-09-29 23:13:05 +0000 | [diff] [blame] | 93 | sysinfo.c \ |
Dmitry V. Levin | b21e2fb | 2014-12-03 21:01:35 +0000 | [diff] [blame] | 94 | syslog.c \ |
Dmitry V. Levin | 600e33c | 2014-12-03 20:08:44 +0000 | [diff] [blame] | 95 | sysmips.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 96 | term.c \ |
| 97 | time.c \ |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 98 | truncate.c \ |
Dmitry V. Levin | e93ef1e | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 99 | uid.c \ |
Dmitry V. Levin | 80f7db1 | 2014-12-13 21:49:01 +0000 | [diff] [blame] | 100 | uid16.c \ |
Dmitry V. Levin | d590f3c | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 101 | umask.c \ |
Dmitry V. Levin | 542ca1e | 2014-12-03 21:09:26 +0000 | [diff] [blame] | 102 | umount.c \ |
Dmitry V. Levin | 58dd2cf | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 103 | uname.c \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 104 | util.c \ |
Dmitry V. Levin | fb470f3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 105 | utime.c \ |
Dmitry V. Levin | 481e067 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 106 | utimes.c \ |
Philippe De Muyter | 0cc9614 | 2014-11-03 21:27:40 +0100 | [diff] [blame] | 107 | v4l2.c \ |
Dmitry V. Levin | 769ffe9 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 108 | vsprintf.c \ |
Dmitry V. Levin | 7ccc144 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 109 | wait.c \ |
Dmitry V. Levin | 769ffe9 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 110 | xattr.c |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 111 | |
Luca Clementi | 327064b | 2013-07-23 00:11:35 -0700 | [diff] [blame] | 112 | if USE_LIBUNWIND |
| 113 | strace_SOURCES += unwind.c |
| 114 | strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS) |
| 115 | strace_LDFLAGS = $(libunwind_LDFLAGS) |
| 116 | strace_LDADD = $(libunwind_LIBS) |
| 117 | else |
| 118 | strace_CPPFLAGS = $(AM_CPPFLAGS) |
| 119 | endif |
| 120 | |
Roland McGrath | 2746edd | 2002-12-30 09:13:08 +0000 | [diff] [blame] | 121 | noinst_HEADERS = defs.h |
Denys Vlasenko | 76f61be | 2013-03-06 18:59:09 +0100 | [diff] [blame] | 122 | # Enable this to get link map generated |
| 123 | #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile |
Roland McGrath | 6d2b349 | 2002-12-30 00:51:30 +0000 | [diff] [blame] | 124 | |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 125 | EXTRA_DIST = \ |
| 126 | $(man_MANS) \ |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 127 | .version \ |
Mike Frysinger | 6c19136 | 2013-05-15 16:33:09 -0400 | [diff] [blame] | 128 | COPYING \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 129 | CREDITS \ |
| 130 | ChangeLog \ |
| 131 | ChangeLog-CVS \ |
| 132 | README-linux \ |
| 133 | README-linux-ptrace \ |
| 134 | debian/changelog \ |
| 135 | debian/compat \ |
| 136 | debian/control \ |
| 137 | debian/copyright \ |
| 138 | debian/rules \ |
| 139 | debian/source/format \ |
| 140 | debian/strace-udeb.install \ |
| 141 | debian/strace.docs \ |
| 142 | debian/strace.examples \ |
| 143 | debian/strace.install \ |
| 144 | debian/strace.manpages \ |
| 145 | debian/strace64.install \ |
| 146 | debian/strace64.manpages \ |
| 147 | debian/watch \ |
| 148 | errnoent.sh \ |
Dmitry V. Levin | 00119f6 | 2014-11-04 01:40:42 +0000 | [diff] [blame] | 149 | ioctlsort.c \ |
Dmitry V. Levin | dee03a3 | 2015-01-11 04:04:54 +0300 | [diff] [blame] | 150 | linux/32/syscallent.h \ |
Dmitry V. Levin | 200c02c | 2015-01-10 20:51:37 +0300 | [diff] [blame] | 151 | linux/64/syscallent.h \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 152 | linux/aarch64/errnoent1.h \ |
| 153 | linux/aarch64/ioctlent.h.in \ |
| 154 | linux/aarch64/ioctlent1.h \ |
| 155 | linux/aarch64/signalent1.h \ |
| 156 | linux/aarch64/syscallent.h \ |
| 157 | linux/aarch64/syscallent1.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 158 | linux/alpha/errnoent.h \ |
| 159 | linux/alpha/ioctlent.h.in \ |
| 160 | linux/alpha/signalent.h \ |
| 161 | linux/alpha/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 162 | linux/alpha/userent.h \ |
Vineet Gupta | 7daacbb | 2013-08-16 12:47:06 +0530 | [diff] [blame] | 163 | linux/arc/ioctlent.h.in \ |
| 164 | linux/arc/syscallent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 165 | linux/arm/ioctlent.h.in \ |
| 166 | linux/arm/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 167 | linux/arm/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 168 | linux/avr32/ioctlent.h.in \ |
| 169 | linux/avr32/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 170 | linux/avr32/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 171 | linux/bfin/ioctlent.h.in \ |
| 172 | linux/bfin/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 173 | linux/bfin/userent.h \ |
| 174 | linux/crisv10/userent.h \ |
| 175 | linux/crisv32/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 176 | linux/dummy.h \ |
| 177 | linux/errnoent.h \ |
Dmitry V. Levin | 99db95d | 2014-02-05 04:13:18 +0000 | [diff] [blame] | 178 | linux/fanotify.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 179 | linux/hppa/errnoent.h \ |
| 180 | linux/hppa/ioctlent.h.in \ |
| 181 | linux/hppa/signalent.h \ |
| 182 | linux/hppa/syscallent.h \ |
| 183 | linux/i386/ioctlent.h.in \ |
| 184 | linux/i386/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 185 | linux/i386/userent.h \ |
| 186 | linux/i386/userent0.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 187 | linux/ia64/ioctlent.h.in \ |
| 188 | linux/ia64/signalent.h \ |
| 189 | linux/ia64/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 190 | linux/ia64/userent.h \ |
Dmitry V. Levin | 2f6510c | 2014-08-21 03:17:48 +0000 | [diff] [blame] | 191 | linux/inet_diag.h \ |
Dmitry V. Levin | 2f332e9 | 2014-02-05 15:43:04 +0000 | [diff] [blame] | 192 | linux/inotify.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 193 | linux/ioctlent.h.in \ |
| 194 | linux/ioctlent.sh \ |
Dmitry V. Levin | 90aa9f4 | 2014-02-05 13:48:26 +0000 | [diff] [blame] | 195 | linux/kexec.h \ |
Dmitry V. Levin | 3acf403 | 2014-02-05 22:41:45 +0000 | [diff] [blame] | 196 | linux/keyctl.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 197 | linux/m68k/ioctlent.h.in \ |
| 198 | linux/m68k/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 199 | linux/m68k/userent.h \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 200 | linux/metag/ioctlent.h.in \ |
| 201 | linux/metag/syscallent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 202 | linux/microblaze/ioctlent.h.in \ |
| 203 | linux/microblaze/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 204 | linux/microblaze/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 205 | linux/mips/errnoent.h \ |
Dmitry V. Levin | d59287d | 2015-01-13 04:57:27 +0000 | [diff] [blame] | 206 | linux/mips/genstub.sh \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 207 | linux/mips/ioctlent.h.in \ |
| 208 | linux/mips/ioctlent.sh \ |
| 209 | linux/mips/signalent.h \ |
Dmitry V. Levin | 34c445b | 2013-05-07 02:46:46 +0000 | [diff] [blame] | 210 | linux/mips/syscallent-compat.h \ |
| 211 | linux/mips/syscallent-n32.h \ |
| 212 | linux/mips/syscallent-n64.h \ |
| 213 | linux/mips/syscallent-o32.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 214 | linux/mips/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 215 | linux/mips/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 216 | linux/mtd-abi.h \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 217 | linux/or1k/ioctlent.h.in \ |
| 218 | linux/or1k/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 219 | linux/or1k/userent.h \ |
Dmitry V. Levin | 2a32eaa | 2014-02-05 02:09:49 +0000 | [diff] [blame] | 220 | linux/personality.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 221 | linux/powerpc/ioctlent.h.in \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 222 | linux/powerpc/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 223 | linux/powerpc/userent.h \ |
Dmitry V. Levin | af3ab5b | 2015-01-21 17:04:31 +0000 | [diff] [blame^] | 224 | linux/powerpc64/errnoent1.h \ |
| 225 | linux/powerpc64/ioctlent.h \ |
| 226 | linux/powerpc64/ioctlent1.h \ |
| 227 | linux/powerpc64/signalent1.h \ |
| 228 | linux/powerpc64/syscallent.h \ |
| 229 | linux/powerpc64/syscallent1.h \ |
| 230 | linux/powerpc64/userent.h \ |
Stefan Sørensen | b88a6f8 | 2014-01-31 12:01:01 +0100 | [diff] [blame] | 231 | linux/ptp_clock.h \ |
Dmitry V. Levin | 9aaf88c | 2014-02-05 14:51:19 +0000 | [diff] [blame] | 232 | linux/reboot.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 233 | linux/s390/ioctlent.h.in \ |
| 234 | linux/s390/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 235 | linux/s390/userent.h \ |
| 236 | linux/s390/userent0.h \ |
| 237 | linux/s390/userent1.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 238 | linux/s390x/ioctlent.h.in \ |
| 239 | linux/s390x/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 240 | linux/s390x/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 241 | linux/sh/ioctlent.h.in \ |
| 242 | linux/sh/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 243 | linux/sh/userent.h \ |
| 244 | linux/sh/userent0.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 245 | linux/sh64/ioctlent.h.in \ |
| 246 | linux/sh64/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 247 | linux/sh64/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 248 | linux/signalent.h \ |
Dmitry V. Levin | 2f6510c | 2014-08-21 03:17:48 +0000 | [diff] [blame] | 249 | linux/sock_diag.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 250 | linux/sparc/dummy2.h \ |
| 251 | linux/sparc/errnoent.h \ |
| 252 | linux/sparc/errnoent1.h \ |
| 253 | linux/sparc/gen.pl \ |
| 254 | linux/sparc/ioctlent.h.in \ |
| 255 | linux/sparc/ioctlent1.h \ |
| 256 | linux/sparc/signalent.h \ |
| 257 | linux/sparc/signalent1.h \ |
| 258 | linux/sparc/syscall1.h \ |
| 259 | linux/sparc/syscallent.h \ |
| 260 | linux/sparc/syscallent1.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 261 | linux/sparc/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 262 | linux/sparc64/dummy2.h \ |
| 263 | linux/sparc64/errnoent.h \ |
| 264 | linux/sparc64/errnoent1.h \ |
| 265 | linux/sparc64/errnoent2.h \ |
| 266 | linux/sparc64/ioctlent.h.in \ |
| 267 | linux/sparc64/ioctlent1.h \ |
| 268 | linux/sparc64/ioctlent2.h \ |
| 269 | linux/sparc64/signalent.h \ |
| 270 | linux/sparc64/signalent1.h \ |
| 271 | linux/sparc64/signalent2.h \ |
| 272 | linux/sparc64/syscall1.h \ |
| 273 | linux/sparc64/syscallent.h \ |
| 274 | linux/sparc64/syscallent1.h \ |
| 275 | linux/sparc64/syscallent2.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 276 | linux/sparc64/userent.h \ |
Dmitry V. Levin | de462cf | 2013-05-07 18:38:01 +0400 | [diff] [blame] | 277 | linux/subcall.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 278 | linux/syscall.h \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 279 | linux/tile/errnoent1.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 280 | linux/tile/ioctlent.h.in \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 281 | linux/tile/ioctlent1.h \ |
| 282 | linux/tile/signalent1.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 283 | linux/tile/syscallent.h \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 284 | linux/tile/syscallent1.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 285 | linux/tile/userent.h \ |
Dmitry V. Levin | 8e0b8be | 2013-06-02 18:09:44 +0000 | [diff] [blame] | 286 | linux/ubi-user.h \ |
Dmitry V. Levin | ce21ef0 | 2015-01-09 02:02:39 +0000 | [diff] [blame] | 287 | linux/unix_diag.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 288 | linux/userent.h \ |
| 289 | linux/userent0.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 290 | linux/x32/errnoent.h \ |
| 291 | linux/x32/errnoent1.h \ |
| 292 | linux/x32/ioctlent.h.in \ |
| 293 | linux/x32/ioctlent1.h \ |
| 294 | linux/x32/signalent.h \ |
| 295 | linux/x32/signalent1.h \ |
| 296 | linux/x32/syscallent.h \ |
| 297 | linux/x32/syscallent1.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 298 | linux/x32/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 299 | linux/x86_64/errnoent1.h \ |
| 300 | linux/x86_64/errnoent2.h \ |
| 301 | linux/x86_64/gentab.pl \ |
| 302 | linux/x86_64/ioctlent.h.in \ |
| 303 | linux/x86_64/ioctlent1.h \ |
| 304 | linux/x86_64/ioctlent2.h \ |
| 305 | linux/x86_64/signalent1.h \ |
| 306 | linux/x86_64/signalent2.h \ |
| 307 | linux/x86_64/syscallent.h \ |
| 308 | linux/x86_64/syscallent1.h \ |
| 309 | linux/x86_64/syscallent2.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 310 | linux/x86_64/userent.h \ |
Dmitry V. Levin | 0db34e7 | 2013-06-02 18:12:44 +0000 | [diff] [blame] | 311 | linux/xtensa/ioctlent.h.in \ |
| 312 | linux/xtensa/syscallent.h \ |
Dmitry V. Levin | fced7b0 | 2014-12-11 19:25:02 +0000 | [diff] [blame] | 313 | linux/xtensa/userent.h \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 314 | signalent.sh \ |
| 315 | strace-graph \ |
| 316 | strace-log-merge \ |
| 317 | strace.spec \ |
| 318 | syscallent.sh \ |
Mike Frysinger | 761ed9b | 2014-02-16 01:59:20 -0500 | [diff] [blame] | 319 | $(XLAT_INPUT_FILES) \ |
| 320 | $(XLAT_HEADER_FILES) \ |
| 321 | xlat/gen.sh \ |
Dmitry V. Levin | 7ae73a9 | 2013-04-30 23:34:51 +0000 | [diff] [blame] | 322 | xlate.el |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 323 | |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 324 | .PHONY: srpm |
Dmitry V. Levin | 525a39a | 2011-02-27 14:05:58 +0000 | [diff] [blame] | 325 | srpm: dist-xz |
| 326 | rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz |
Roland McGrath | 2b832df | 2009-10-06 17:46:56 -0700 | [diff] [blame] | 327 | |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 328 | BUILT_SOURCES = .version |
| 329 | |
| 330 | $(srcdir)/.version: |
| 331 | $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@ |
| 332 | |
| 333 | dist-hook: |
| 334 | $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version |
| 335 | |
| 336 | today = $(shell date +%Y-%m-%d) |
| 337 | version_regexp = $(subst .,\.,$(VERSION)) |
| 338 | news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))' |
| 339 | |
| 340 | news-check: NEWS |
| 341 | $(AM_V_GEN)if head -1 $< | \ |
| 342 | grep -x $(news_check_regexp) >/dev/null; then \ |
| 343 | :; \ |
| 344 | else \ |
| 345 | echo >&2 '$<: check failed'; \ |
| 346 | exit 1; \ |
| 347 | fi |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 348 | |
Dmitry V. Levin | 00119f6 | 2014-11-04 01:40:42 +0000 | [diff] [blame] | 349 | ioctlent_h = $(builddir)/$(OS)/ioctlent.h |
| 350 | BUILT_SOURCES += $(ioctlent_h) |
| 351 | CLEANFILES = $(ioctlent_h) |
| 352 | ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in |
| 353 | $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps) |
| 354 | $(MKDIR_P) $(builddir)/$(OS) |
| 355 | cat $(ioctlent_h_deps) | \ |
| 356 | $(COMPILE) -E -P - | \ |
| 357 | sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \ |
| 358 | LC_ALL=C sort -u -k2,2 -k1,1 > $@ |
| 359 | |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 360 | if MAINTAINER_MODE |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 361 | |
| 362 | gen_changelog_start_date = 2009-07-08 20:00 |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 363 | $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \ |
| 364 | $(srcdir)/.version |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 365 | @rm -f $@.new |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 366 | (cd $(srcdir); \ |
Dmitry V. Levin | 594399d | 2011-11-05 13:32:27 +0000 | [diff] [blame] | 367 | ./gitlog-to-changelog --append-dot \ |
| 368 | --since='$(gen_changelog_start_date)'; \ |
Roland McGrath | a478d74 | 2009-10-06 17:41:02 -0700 | [diff] [blame] | 369 | echo; echo; echo 'See ChangeLog-CVS for older changes.' \ |
| 370 | ) > $@.new |
| 371 | chmod 444 $@.new |
| 372 | mv -f $@.new $@ |
| 373 | |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 374 | $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \ |
| 375 | $(srcdir)/Makefile.in $(srcdir)/.version |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 376 | $(AM_V_GEN) \ |
Mike Frysinger | 67c4d43 | 2014-08-14 04:05:37 -0400 | [diff] [blame] | 377 | ( \ |
Dmitry V. Levin | dce7593 | 2013-04-30 23:52:12 +0000 | [diff] [blame] | 378 | cd $(srcdir); \ |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 379 | sed '/^##/,$$d' CREDITS.in; \ |
| 380 | { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \ |
| 381 | git log --pretty=format:'%aN %aE'; \ |
| 382 | } | LC_ALL=C sort -u \ |
| 383 | | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \ |
Mike Frysinger | 67c4d43 | 2014-08-14 04:05:37 -0400 | [diff] [blame] | 384 | ) > $@-t && mv $@-t $@ |
Dmitry V. Levin | 59138a2 | 2011-02-24 01:51:15 +0000 | [diff] [blame] | 385 | |
Dmitry V. Levin | 76ac37d | 2009-10-09 22:10:09 +0000 | [diff] [blame] | 386 | export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX |
| 387 | |
Lubomir Rintel | 544a810 | 2014-10-16 12:05:43 +0200 | [diff] [blame] | 388 | INCLUDEDIR = /usr/include |
| 389 | KERNEL_RELEASE = $(shell uname -r) |
| 390 | # Candidates for the kernel headers tree. |
| 391 | KERNEL_INCLUDE = \ |
| 392 | /lib/modules/$(KERNEL_RELEASE)/build/include \ |
| 393 | /usr/src/linux-$(KERNEL_RELEASE)/include \ |
| 394 | $(INCLUDEDIR) |
| 395 | IOCTLDIR = $(shell find $(KERNEL_INCLUDE) -maxdepth 0 -type d -print -quit 2>/dev/null) |
| 396 | IOCTLASM = $(INCLUDEDIR)/asm |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 397 | |
Dmitry V. Levin | 00119f6 | 2014-11-04 01:40:42 +0000 | [diff] [blame] | 398 | noinst_PROGRAMS = ioctlsort |
| 399 | ioctlsort_SOURCES = ioctlsort.c |
| 400 | nodist_ioctlsort_SOURCES = ioctls.h ioctldefs.h |
| 401 | CLEANFILES += $(nodist_ioctlsort_SOURCES) |
| 402 | ioctlsort.$(OBJEXT): $(nodist_ioctlsort_SOURCES) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 403 | ioctls.h: $(srcdir)/linux/ioctlent.sh |
Roland McGrath | adc2b30 | 2004-07-12 06:11:03 +0000 | [diff] [blame] | 404 | $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) |
Roland McGrath | bc44e40 | 2004-07-12 05:45:08 +0000 | [diff] [blame] | 405 | ioctldefs.h: ioctls.h ; |
| 406 | |
Dmitry V. Levin | 00119f6 | 2014-11-04 01:40:42 +0000 | [diff] [blame] | 407 | ioctlent_h_in = linux/ioctlent.h.in |
| 408 | BUILT_SOURCES += $(ioctlent_h_in) |
| 409 | $(srcdir)/$(ioctlent_h_in): ioctlsort |
| 410 | $(<D)/$(<F) > $@ |
Mike Frysinger | 9004e12 | 2011-02-20 23:24:22 -0500 | [diff] [blame] | 411 | |
Dmitry V. Levin | 00119f6 | 2014-11-04 01:40:42 +0000 | [diff] [blame] | 412 | endif |