blob: 83eef2e3e7c7d58a4f87e6b556f0f0def44b6347 [file] [log] [blame]
Roland McGrath6d2b3492002-12-30 00:51:30 +00001# Automake input for strace.
2
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +00003SUBDIRS = tests
4
Roland McGrath6d2b3492002-12-30 00:51:30 +00005bin_PROGRAMS = strace
6man_MANS = strace.1
Denys Vlasenko796f6e82012-03-09 14:21:59 +01007bin_SCRIPTS = strace-graph strace-log-merge
Roland McGrath6d2b3492002-12-30 00:51:30 +00008
Dmitry V. Levinee245d82012-02-25 15:34:10 +01009OS = linux
Roland McGrath6d2b3492002-12-30 00:51:30 +000010# ARCH is `i386', `m68k', `sparc', etc.
11ARCH = @arch@
Roland McGrath6d2b3492002-12-30 00:51:30 +000012
Dmitry V. Levin916aded2010-09-09 17:36:36 +000013ACLOCAL_AMFLAGS = -I m4
Dmitry V. Levin918e49b2010-09-09 17:41:15 +000014AM_CFLAGS = $(WARN_CFLAGS)
Dmitry V. Levin579836c2015-01-13 06:12:16 +000015AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \
16 -I$(srcdir)/$(OS)/$(ARCH) \
17 -I$(builddir)/$(OS) \
18 -I$(srcdir)/$(OS)
Roland McGrath6d2b3492002-12-30 00:51:30 +000019
Mike Frysinger761ed9b2014-02-16 01:59:20 -050020include xlat/Makemodule.am
21
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000022strace_SOURCES = \
Dmitry V. Levin304cd812014-12-06 03:53:16 +000023 access.c \
Dmitry V. Levinb94b9832014-12-11 19:25:02 +000024 affinity.c \
Dmitry V. Levin2b640342013-11-11 15:06:18 +000025 aio.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000026 bjm.c \
27 block.c \
Dmitry V. Levin95edb8b2014-12-03 20:50:08 +000028 cacheflush.c \
Dmitry V. Levin5e7987b2014-12-03 20:30:15 +000029 capability.c \
Dmitry V. Levin9b2f6742014-12-06 03:53:16 +000030 chdir.c \
Dmitry V. Levinad5cf1e2014-12-06 03:53:16 +000031 chmod.c \
Dmitry V. Levin265903a2014-12-11 19:25:02 +000032 clone.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000033 count.c \
34 desc.c \
Dmitry V. Levin2ed2cc72014-09-11 22:40:37 +000035 dirent.c \
Dmitry V. Levin7be23182014-12-11 19:25:02 +000036 execve.c \
Dmitry V. Levin91759092014-12-11 19:25:02 +000037 exit.c \
Dmitry V. Levin63f28dd2014-12-06 03:53:16 +000038 fadvise.c \
Dmitry V. Levin2795a5f2014-12-06 03:53:16 +000039 fallocate.c \
Dmitry V. Levin99db95d2014-02-05 04:13:18 +000040 fanotify.c \
Dmitry V. Levin2f7d0202014-12-13 16:20:44 +000041 fchownat.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000042 file.c \
Dmitry V. Levine314f802014-12-11 19:25:02 +000043 futex.c \
Dmitry V. Levin83576382014-12-11 19:25:02 +000044 get_robust_list.c \
Dmitry V. Levin665f10c2014-12-11 19:21:54 +000045 getcpu.c \
Dmitry V. Levina8364302014-12-06 03:53:16 +000046 getcwd.c \
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +000047 hostname.c \
Dmitry V. Levin2f332e92014-02-05 15:43:04 +000048 inotify.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000049 io.c \
50 ioctl.c \
Dmitry V. Levinfc4727d2014-02-05 17:27:43 +000051 ioprio.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000052 ipc.c \
Dmitry V. Levin90aa9f42014-02-05 13:48:26 +000053 kexec.c \
Dmitry V. Levin3acf4032014-02-05 22:41:45 +000054 keyctl.c \
Dmitry V. Levin99a05442014-04-10 14:10:17 +000055 ldt.c \
Dmitry V. Levin231b19f2014-12-06 03:53:16 +000056 link.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000057 loop.c \
Dmitry V. Levinb5d25ec2014-12-06 03:53:16 +000058 lseek.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000059 mem.c \
Dmitry V. Levindb23b342014-12-06 03:53:16 +000060 mknod.c \
Dmitry V. Levin6da7ca32014-12-03 21:12:07 +000061 mount.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000062 mtd.c \
63 net.c \
Dmitry V. Levin964d80a2014-12-06 03:53:16 +000064 open.c \
Dmitry V. Levinf6eb0d62014-12-03 20:00:42 +000065 or1k_atomic.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000066 pathtrace.c \
Dmitry V. Levind28b6a02014-12-03 21:06:11 +000067 personality.c \
Dmitry V. Levin53c993d2014-12-11 19:25:02 +000068 prctl.c \
Dmitry V. Levin9514ac72014-12-06 03:53:16 +000069 printmode.c \
Dmitry V. Levinab21a942014-12-28 18:15:25 +000070 printstat.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000071 process.c \
Dmitry V. Levindb16c522014-12-11 19:21:54 +000072 process_vm.c \
Stefan Sørensenb88a6f82014-01-31 12:01:01 +010073 ptp.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000074 quota.c \
Dmitry V. Levin9e9ceab2014-12-06 03:53:16 +000075 readahead.c \
Dmitry V. Levin46245b32014-12-06 03:53:16 +000076 readlink.c \
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +000077 reboot.c \
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000078 renameat.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000079 resource.c \
Dmitry V. Levinfff2f312014-12-11 19:25:02 +000080 sched.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000081 scsi.c \
82 signal.c \
83 sock.c \
Dmitry V. Levin2f6510c2014-08-21 03:17:48 +000084 socketutils.c \
Dmitry V. Levine36c72c2014-12-03 20:56:36 +000085 sram_alloc.c \
Dmitry V. Levin9a0dd742014-09-22 00:17:42 +000086 statfs.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000087 strace.c \
88 stream.c \
Dmitry V. Levin85a364a2014-12-06 03:53:16 +000089 swapon.c \
Dmitry V. Levin710b3ae2014-12-06 03:53:16 +000090 sync_file_range.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000091 syscall.c \
Dmitry V. Levin172241b2014-12-03 20:20:52 +000092 sysctl.c \
Dmitry V. Levin57d45a22014-09-29 23:13:05 +000093 sysinfo.c \
Dmitry V. Levinb21e2fb2014-12-03 21:01:35 +000094 syslog.c \
Dmitry V. Levin600e33c2014-12-03 20:08:44 +000095 sysmips.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000096 term.c \
97 time.c \
Dmitry V. Levin69341822014-12-06 03:53:16 +000098 truncate.c \
Dmitry V. Levine93ef1e2014-12-11 19:25:02 +000099 uid.c \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000100 uid16.c \
Dmitry V. Levind590f3c2014-12-06 03:53:16 +0000101 umask.c \
Dmitry V. Levin542ca1e2014-12-03 21:09:26 +0000102 umount.c \
Dmitry V. Levin58dd2cf2014-12-11 19:25:02 +0000103 uname.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000104 util.c \
Dmitry V. Levinfb470f32014-12-06 03:53:16 +0000105 utime.c \
Dmitry V. Levin481e0672014-12-06 03:53:16 +0000106 utimes.c \
Philippe De Muyter0cc96142014-11-03 21:27:40 +0100107 v4l2.c \
Dmitry V. Levin769ffe92014-12-06 03:53:16 +0000108 vsprintf.c \
Dmitry V. Levin7ccc1442014-12-11 19:25:02 +0000109 wait.c \
Dmitry V. Levin769ffe92014-12-06 03:53:16 +0000110 xattr.c
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000111
Luca Clementi327064b2013-07-23 00:11:35 -0700112if USE_LIBUNWIND
113strace_SOURCES += unwind.c
114strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
115strace_LDFLAGS = $(libunwind_LDFLAGS)
116strace_LDADD = $(libunwind_LIBS)
117else
118strace_CPPFLAGS = $(AM_CPPFLAGS)
119endif
120
Roland McGrath2746edd2002-12-30 09:13:08 +0000121noinst_HEADERS = defs.h
Denys Vlasenko76f61be2013-03-06 18:59:09 +0100122# Enable this to get link map generated
123#strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
Roland McGrath6d2b3492002-12-30 00:51:30 +0000124
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000125EXTRA_DIST = \
126 $(man_MANS) \
Dmitry V. Levindce75932013-04-30 23:52:12 +0000127 .version \
Mike Frysinger6c191362013-05-15 16:33:09 -0400128 COPYING \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000129 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. Levin00119f62014-11-04 01:40:42 +0000149 ioctlsort.c \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000150 linux/32/ioctls_inc.h \
Dmitry V. Levindee03a32015-01-11 04:04:54 +0300151 linux/32/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000152 linux/64/ioctls_inc.h \
Dmitry V. Levin200c02c2015-01-10 20:51:37 +0300153 linux/64/syscallent.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000154 linux/aarch64/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000155 linux/aarch64/ioctls_arch0.h \
156 linux/aarch64/ioctls_arch1.h \
157 linux/aarch64/ioctls_inc0.h \
158 linux/aarch64/ioctls_inc1.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000159 linux/aarch64/signalent1.h \
160 linux/aarch64/syscallent.h \
161 linux/aarch64/syscallent1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000162 linux/alpha/errnoent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000163 linux/alpha/ioctls_arch0.h \
164 linux/alpha/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000165 linux/alpha/signalent.h \
166 linux/alpha/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000167 linux/alpha/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000168 linux/arc/ioctls_arch0.h \
169 linux/arc/ioctls_inc0.h \
Vineet Gupta7daacbb2013-08-16 12:47:06 +0530170 linux/arc/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000171 linux/arm/ioctls_arch0.h \
172 linux/arm/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000173 linux/arm/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000174 linux/arm/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000175 linux/avr32/ioctls_arch0.h \
176 linux/avr32/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000177 linux/avr32/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000178 linux/avr32/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000179 linux/bfin/ioctls_arch0.h \
180 linux/bfin/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000181 linux/bfin/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000182 linux/bfin/userent.h \
183 linux/crisv10/userent.h \
184 linux/crisv32/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000185 linux/dummy.h \
186 linux/errnoent.h \
Dmitry V. Levin99db95d2014-02-05 04:13:18 +0000187 linux/fanotify.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000188 linux/hppa/errnoent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000189 linux/hppa/ioctls_arch0.h \
190 linux/hppa/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000191 linux/hppa/signalent.h \
192 linux/hppa/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000193 linux/i386/ioctls_arch0.h \
194 linux/i386/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000195 linux/i386/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000196 linux/i386/userent.h \
197 linux/i386/userent0.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000198 linux/ia64/ioctls_arch0.h \
199 linux/ia64/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000200 linux/ia64/signalent.h \
201 linux/ia64/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000202 linux/ia64/userent.h \
Dmitry V. Levin2f6510c2014-08-21 03:17:48 +0000203 linux/inet_diag.h \
Dmitry V. Levin2f332e92014-02-05 15:43:04 +0000204 linux/inotify.h \
Dmitry V. Levin90aa9f42014-02-05 13:48:26 +0000205 linux/kexec.h \
Dmitry V. Levin3acf4032014-02-05 22:41:45 +0000206 linux/keyctl.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000207 linux/m68k/ioctls_arch0.h \
208 linux/m68k/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000209 linux/m68k/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000210 linux/m68k/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000211 linux/metag/ioctls_arch0.h \
212 linux/metag/ioctls_inc0.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000213 linux/metag/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000214 linux/microblaze/ioctls_arch0.h \
215 linux/microblaze/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000216 linux/microblaze/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000217 linux/microblaze/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000218 linux/mips/errnoent.h \
Dmitry V. Levind59287d2015-01-13 04:57:27 +0000219 linux/mips/genstub.sh \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000220 linux/mips/ioctls_arch0.h \
221 linux/mips/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000222 linux/mips/signalent.h \
Dmitry V. Levin34c445b2013-05-07 02:46:46 +0000223 linux/mips/syscallent-compat.h \
224 linux/mips/syscallent-n32.h \
225 linux/mips/syscallent-n64.h \
226 linux/mips/syscallent-o32.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000227 linux/mips/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000228 linux/mips/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000229 linux/mtd-abi.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000230 linux/or1k/ioctls_arch0.h \
231 linux/or1k/ioctls_inc0.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000232 linux/or1k/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000233 linux/or1k/userent.h \
Dmitry V. Levin2a32eaa2014-02-05 02:09:49 +0000234 linux/personality.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000235 linux/powerpc/ioctls_arch0.h \
236 linux/powerpc/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000237 linux/powerpc/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000238 linux/powerpc/userent.h \
Dmitry V. Levinaf3ab5b2015-01-21 17:04:31 +0000239 linux/powerpc64/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000240 linux/powerpc64/ioctls_arch0.h \
241 linux/powerpc64/ioctls_arch1.h \
242 linux/powerpc64/ioctls_inc0.h \
243 linux/powerpc64/ioctls_inc1.h \
Dmitry V. Levinaf3ab5b2015-01-21 17:04:31 +0000244 linux/powerpc64/signalent1.h \
245 linux/powerpc64/syscallent.h \
246 linux/powerpc64/syscallent1.h \
247 linux/powerpc64/userent.h \
Stefan Sørensenb88a6f82014-01-31 12:01:01 +0100248 linux/ptp_clock.h \
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +0000249 linux/reboot.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000250 linux/s390/ioctls_arch0.h \
251 linux/s390/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000252 linux/s390/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000253 linux/s390/userent.h \
254 linux/s390/userent0.h \
255 linux/s390/userent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000256 linux/s390x/ioctls_arch0.h \
257 linux/s390x/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000258 linux/s390x/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000259 linux/s390x/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000260 linux/sh/ioctls_arch0.h \
261 linux/sh/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000262 linux/sh/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000263 linux/sh/userent.h \
264 linux/sh/userent0.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000265 linux/sh64/ioctls_arch0.h \
266 linux/sh64/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000267 linux/sh64/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000268 linux/sh64/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000269 linux/signalent.h \
Dmitry V. Levin2f6510c2014-08-21 03:17:48 +0000270 linux/sock_diag.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000271 linux/sparc/dummy2.h \
272 linux/sparc/errnoent.h \
273 linux/sparc/errnoent1.h \
274 linux/sparc/gen.pl \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000275 linux/sparc/ioctlent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000276 linux/sparc/ioctls_arch0.h \
277 linux/sparc/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000278 linux/sparc/signalent.h \
279 linux/sparc/signalent1.h \
280 linux/sparc/syscall1.h \
281 linux/sparc/syscallent.h \
282 linux/sparc/syscallent1.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000283 linux/sparc/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000284 linux/sparc64/dummy2.h \
285 linux/sparc64/errnoent.h \
286 linux/sparc64/errnoent1.h \
287 linux/sparc64/errnoent2.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000288 linux/sparc64/ioctlent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000289 linux/sparc64/ioctls_arch0.h \
290 linux/sparc64/ioctls_arch2.h \
291 linux/sparc64/ioctls_inc0.h \
292 linux/sparc64/ioctls_inc2.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000293 linux/sparc64/signalent.h \
294 linux/sparc64/signalent1.h \
295 linux/sparc64/signalent2.h \
296 linux/sparc64/syscall1.h \
297 linux/sparc64/syscallent.h \
298 linux/sparc64/syscallent1.h \
299 linux/sparc64/syscallent2.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000300 linux/sparc64/userent.h \
Dmitry V. Levinde462cf2013-05-07 18:38:01 +0400301 linux/subcall.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000302 linux/syscall.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000303 linux/tile/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000304 linux/tile/ioctls_arch0.h \
305 linux/tile/ioctls_arch1.h \
306 linux/tile/ioctls_inc0.h \
307 linux/tile/ioctls_inc1.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000308 linux/tile/signalent1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000309 linux/tile/syscallent.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000310 linux/tile/syscallent1.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000311 linux/tile/userent.h \
Dmitry V. Levin8e0b8be2013-06-02 18:09:44 +0000312 linux/ubi-user.h \
Dmitry V. Levince21ef02015-01-09 02:02:39 +0000313 linux/unix_diag.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000314 linux/userent.h \
315 linux/userent0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000316 linux/x32/errnoent.h \
317 linux/x32/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000318 linux/x32/ioctls_arch0.h \
319 linux/x32/ioctls_arch1.h \
320 linux/x32/ioctls_inc0.h \
321 linux/x32/ioctls_inc1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000322 linux/x32/signalent.h \
323 linux/x32/signalent1.h \
324 linux/x32/syscallent.h \
325 linux/x32/syscallent1.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000326 linux/x32/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000327 linux/x86_64/errnoent1.h \
328 linux/x86_64/errnoent2.h \
329 linux/x86_64/gentab.pl \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000330 linux/x86_64/ioctlent2.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000331 linux/x86_64/ioctls_arch0.h \
332 linux/x86_64/ioctls_arch1.h \
333 linux/x86_64/ioctls_inc0.h \
334 linux/x86_64/ioctls_inc1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000335 linux/x86_64/signalent1.h \
336 linux/x86_64/signalent2.h \
337 linux/x86_64/syscallent.h \
338 linux/x86_64/syscallent1.h \
339 linux/x86_64/syscallent2.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000340 linux/x86_64/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000341 linux/xtensa/ioctls_arch0.h \
342 linux/xtensa/ioctls_inc0.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000343 linux/xtensa/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000344 linux/xtensa/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000345 maint/ioctls_gen.sh \
346 maint/ioctls_hex.sh \
347 maint/ioctls_sym.sh \
348 maint/print_ioctlent.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000349 signalent.sh \
350 strace-graph \
351 strace-log-merge \
352 strace.spec \
353 syscallent.sh \
Mike Frysinger761ed9b2014-02-16 01:59:20 -0500354 $(XLAT_INPUT_FILES) \
355 $(XLAT_HEADER_FILES) \
356 xlat/gen.sh \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000357 xlate.el
Roland McGrathbc44e402004-07-12 05:45:08 +0000358
Roland McGrath2b832df2009-10-06 17:46:56 -0700359.PHONY: srpm
Dmitry V. Levin525a39a2011-02-27 14:05:58 +0000360srpm: dist-xz
361 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
Roland McGrath2b832df2009-10-06 17:46:56 -0700362
Dmitry V. Levindce75932013-04-30 23:52:12 +0000363BUILT_SOURCES = .version
364
365$(srcdir)/.version:
366 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
367
368dist-hook:
369 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
370
371today = $(shell date +%Y-%m-%d)
372version_regexp = $(subst .,\.,$(VERSION))
373news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
374
375news-check: NEWS
376 $(AM_V_GEN)if head -1 $< | \
377 grep -x $(news_check_regexp) >/dev/null; then \
378 :; \
379 else \
380 echo >&2 '$<: check failed'; \
381 exit 1; \
382 fi
Mike Frysinger9004e122011-02-20 23:24:22 -0500383
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000384ioctlsort_CC = $(CC)
385ioctlsort_DEFS = $(DEFS)
386ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
387ioctlsort_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS)
388ioctlsort_CFLAGS = $(AM_CFLAGS) $(CFLAGS)
389ioctlsort_LD = $(CCLD)
390ioctlsort_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS)
391
392ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
393ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000394BUILT_SOURCES += $(ioctlent_h)
395CLEANFILES = $(ioctlent_h)
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000396
397ioctlent%.h: ioctlsort%
398 ./$< > $@
399
400ioctlsort%: ioctlsort%.o
401 $(ioctlsort_LD) $(ioctlsort_LDFLAGS) $< -o $@
402
403ioctlsort%.o: ioctls_all%.h $(srcdir)/ioctlsort.c
404 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
405
406ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
407 cat $^ > $@
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000408
Roland McGrathbc44e402004-07-12 05:45:08 +0000409if MAINTAINER_MODE
Roland McGratha478d742009-10-06 17:41:02 -0700410
411gen_changelog_start_date = 2009-07-08 20:00
Dmitry V. Levindce75932013-04-30 23:52:12 +0000412$(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
413 $(srcdir)/.version
Roland McGratha478d742009-10-06 17:41:02 -0700414 @rm -f $@.new
Dmitry V. Levindce75932013-04-30 23:52:12 +0000415 (cd $(srcdir); \
Dmitry V. Levin594399d2011-11-05 13:32:27 +0000416 ./gitlog-to-changelog --append-dot \
417 --since='$(gen_changelog_start_date)'; \
Roland McGratha478d742009-10-06 17:41:02 -0700418 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
419 ) > $@.new
420 chmod 444 $@.new
421 mv -f $@.new $@
422
Dmitry V. Levindce75932013-04-30 23:52:12 +0000423$(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
424 $(srcdir)/Makefile.in $(srcdir)/.version
Dmitry V. Levin59138a22011-02-24 01:51:15 +0000425 $(AM_V_GEN) \
Mike Frysinger67c4d432014-08-14 04:05:37 -0400426 ( \
Dmitry V. Levindce75932013-04-30 23:52:12 +0000427 cd $(srcdir); \
Dmitry V. Levin59138a22011-02-24 01:51:15 +0000428 sed '/^##/,$$d' CREDITS.in; \
429 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
430 git log --pretty=format:'%aN %aE'; \
431 } | LC_ALL=C sort -u \
432 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
Mike Frysinger67c4d432014-08-14 04:05:37 -0400433 ) > $@-t && mv $@-t $@
Dmitry V. Levin59138a22011-02-24 01:51:15 +0000434
Dmitry V. Levin76ac37d2009-10-09 22:10:09 +0000435export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
436
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000437endif