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