blob: 38cb08b7a6a02a9adf807fe0608102347b1da8fd [file] [log] [blame]
Roland McGrath6d2b3492002-12-30 00:51:30 +00001# Automake input for strace.
2
Dmitry V. Levin679c47c2015-01-23 22:45:02 +00003if HAVE_M32_RUNTIME
4TESTS_M32 = tests-m32
5endif
6if HAVE_MX32_RUNTIME
7TESTS_MX32 = tests-mx32
8endif
9SUBDIRS = tests $(TESTS_M32) $(TESTS_MX32)
Dmitry V. Levin4e4b5ad2011-02-27 00:28:50 +000010
Roland McGrath6d2b3492002-12-30 00:51:30 +000011bin_PROGRAMS = strace
12man_MANS = strace.1
Denys Vlasenko796f6e82012-03-09 14:21:59 +010013bin_SCRIPTS = strace-graph strace-log-merge
Roland McGrath6d2b3492002-12-30 00:51:30 +000014
Dmitry V. Levinee245d82012-02-25 15:34:10 +010015OS = linux
Roland McGrath6d2b3492002-12-30 00:51:30 +000016# ARCH is `i386', `m68k', `sparc', etc.
17ARCH = @arch@
Roland McGrath6d2b3492002-12-30 00:51:30 +000018
Dmitry V. Levin916aded2010-09-09 17:36:36 +000019ACLOCAL_AMFLAGS = -I m4
Dmitry V. Levin918e49b2010-09-09 17:41:15 +000020AM_CFLAGS = $(WARN_CFLAGS)
Dmitry V. Levin579836c2015-01-13 06:12:16 +000021AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \
22 -I$(srcdir)/$(OS)/$(ARCH) \
23 -I$(builddir)/$(OS) \
24 -I$(srcdir)/$(OS)
Roland McGrath6d2b3492002-12-30 00:51:30 +000025
Mike Frysinger761ed9b2014-02-16 01:59:20 -050026include xlat/Makemodule.am
27
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000028strace_SOURCES = \
Dmitry V. Levin304cd812014-12-06 03:53:16 +000029 access.c \
Dmitry V. Levinb94b9832014-12-11 19:25:02 +000030 affinity.c \
Dmitry V. Levin2b640342013-11-11 15:06:18 +000031 aio.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000032 bjm.c \
33 block.c \
Dmitry V. Levin95edb8b2014-12-03 20:50:08 +000034 cacheflush.c \
Dmitry V. Levin5e7987b2014-12-03 20:30:15 +000035 capability.c \
Dmitry V. Levin9b2f6742014-12-06 03:53:16 +000036 chdir.c \
Dmitry V. Levinad5cf1e2014-12-06 03:53:16 +000037 chmod.c \
Dmitry V. Levin265903a2014-12-11 19:25:02 +000038 clone.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000039 count.c \
40 desc.c \
Dmitry V. Levin2ed2cc72014-09-11 22:40:37 +000041 dirent.c \
Dmitry V. Levin7be23182014-12-11 19:25:02 +000042 execve.c \
Dmitry V. Levin91759092014-12-11 19:25:02 +000043 exit.c \
Dmitry V. Levin63f28dd2014-12-06 03:53:16 +000044 fadvise.c \
Dmitry V. Levin2795a5f2014-12-06 03:53:16 +000045 fallocate.c \
Dmitry V. Levin99db95d2014-02-05 04:13:18 +000046 fanotify.c \
Dmitry V. Levin2f7d0202014-12-13 16:20:44 +000047 fchownat.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000048 file.c \
Dmitry V. Levine314f802014-12-11 19:25:02 +000049 futex.c \
Dmitry V. Levin83576382014-12-11 19:25:02 +000050 get_robust_list.c \
Dmitry V. Levin665f10c2014-12-11 19:21:54 +000051 getcpu.c \
Dmitry V. Levina8364302014-12-06 03:53:16 +000052 getcwd.c \
Dmitry V. Levinfef09072015-02-04 16:38:09 +000053 getrandom.c \
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +000054 hostname.c \
Dmitry V. Levin2f332e92014-02-05 15:43:04 +000055 inotify.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000056 io.c \
57 ioctl.c \
Dmitry V. Levinfc4727d2014-02-05 17:27:43 +000058 ioprio.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000059 ipc.c \
Dmitry V. Levin90aa9f42014-02-05 13:48:26 +000060 kexec.c \
Dmitry V. Levin3acf4032014-02-05 22:41:45 +000061 keyctl.c \
Dmitry V. Levin99a05442014-04-10 14:10:17 +000062 ldt.c \
Dmitry V. Levin231b19f2014-12-06 03:53:16 +000063 link.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000064 loop.c \
Dmitry V. Levinb5d25ec2014-12-06 03:53:16 +000065 lseek.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000066 mem.c \
Dmitry V. Levindb23b342014-12-06 03:53:16 +000067 mknod.c \
Dmitry V. Levin6da7ca32014-12-03 21:12:07 +000068 mount.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000069 mtd.c \
70 net.c \
Dmitry V. Levin964d80a2014-12-06 03:53:16 +000071 open.c \
Dmitry V. Levinf6eb0d62014-12-03 20:00:42 +000072 or1k_atomic.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000073 pathtrace.c \
Dmitry V. Levind28b6a02014-12-03 21:06:11 +000074 personality.c \
Dmitry V. Levin53c993d2014-12-11 19:25:02 +000075 prctl.c \
Dmitry V. Levin9514ac72014-12-06 03:53:16 +000076 printmode.c \
Dmitry V. Levinab21a942014-12-28 18:15:25 +000077 printstat.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000078 process.c \
Dmitry V. Levindb16c522014-12-11 19:21:54 +000079 process_vm.c \
Stefan Sørensenb88a6f82014-01-31 12:01:01 +010080 ptp.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000081 quota.c \
Dmitry V. Levin9e9ceab2014-12-06 03:53:16 +000082 readahead.c \
Dmitry V. Levin46245b32014-12-06 03:53:16 +000083 readlink.c \
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +000084 reboot.c \
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000085 renameat.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000086 resource.c \
Dmitry V. Levinfff2f312014-12-11 19:25:02 +000087 sched.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000088 scsi.c \
Dmitry V. Levin2af69032015-02-04 23:50:50 +000089 seccomp.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000090 signal.c \
91 sock.c \
Dmitry V. Levin2f6510c2014-08-21 03:17:48 +000092 socketutils.c \
Dmitry V. Levine36c72c2014-12-03 20:56:36 +000093 sram_alloc.c \
Dmitry V. Levin9a0dd742014-09-22 00:17:42 +000094 statfs.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000095 strace.c \
96 stream.c \
Dmitry V. Levin85a364a2014-12-06 03:53:16 +000097 swapon.c \
Dmitry V. Levin710b3ae2014-12-06 03:53:16 +000098 sync_file_range.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +000099 syscall.c \
Dmitry V. Levin172241b2014-12-03 20:20:52 +0000100 sysctl.c \
Dmitry V. Levin57d45a22014-09-29 23:13:05 +0000101 sysinfo.c \
Dmitry V. Levinb21e2fb2014-12-03 21:01:35 +0000102 syslog.c \
Dmitry V. Levin600e33c2014-12-03 20:08:44 +0000103 sysmips.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000104 term.c \
105 time.c \
Dmitry V. Levin69341822014-12-06 03:53:16 +0000106 truncate.c \
Dmitry V. Levine93ef1e2014-12-11 19:25:02 +0000107 uid.c \
Dmitry V. Levin80f7db12014-12-13 21:49:01 +0000108 uid16.c \
Dmitry V. Levind590f3c2014-12-06 03:53:16 +0000109 umask.c \
Dmitry V. Levin542ca1e2014-12-03 21:09:26 +0000110 umount.c \
Dmitry V. Levin58dd2cf2014-12-11 19:25:02 +0000111 uname.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000112 util.c \
Dmitry V. Levinfb470f32014-12-06 03:53:16 +0000113 utime.c \
Dmitry V. Levin481e0672014-12-06 03:53:16 +0000114 utimes.c \
Philippe De Muyter0cc96142014-11-03 21:27:40 +0100115 v4l2.c \
Dmitry V. Levin769ffe92014-12-06 03:53:16 +0000116 vsprintf.c \
Dmitry V. Levin7ccc1442014-12-11 19:25:02 +0000117 wait.c \
Dmitry V. Levin769ffe92014-12-06 03:53:16 +0000118 xattr.c
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000119
Luca Clementi327064b2013-07-23 00:11:35 -0700120if USE_LIBUNWIND
121strace_SOURCES += unwind.c
122strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
123strace_LDFLAGS = $(libunwind_LDFLAGS)
124strace_LDADD = $(libunwind_LIBS)
125else
126strace_CPPFLAGS = $(AM_CPPFLAGS)
127endif
128
Roland McGrath2746edd2002-12-30 09:13:08 +0000129noinst_HEADERS = defs.h
Denys Vlasenko76f61be2013-03-06 18:59:09 +0100130# Enable this to get link map generated
131#strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
Roland McGrath6d2b3492002-12-30 00:51:30 +0000132
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000133EXTRA_DIST = \
134 $(man_MANS) \
Dmitry V. Levindce75932013-04-30 23:52:12 +0000135 .version \
Mike Frysinger6c191362013-05-15 16:33:09 -0400136 COPYING \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000137 CREDITS \
138 ChangeLog \
139 ChangeLog-CVS \
140 README-linux \
141 README-linux-ptrace \
142 debian/changelog \
143 debian/compat \
144 debian/control \
145 debian/copyright \
146 debian/rules \
147 debian/source/format \
148 debian/strace-udeb.install \
149 debian/strace.docs \
150 debian/strace.examples \
151 debian/strace.install \
152 debian/strace.manpages \
153 debian/strace64.install \
154 debian/strace64.manpages \
155 debian/watch \
156 errnoent.sh \
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000157 ioctlsort.c \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000158 linux/32/ioctls_inc.h \
Dmitry V. Levindee03a32015-01-11 04:04:54 +0300159 linux/32/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000160 linux/64/ioctls_inc.h \
Dmitry V. Levin200c02c2015-01-10 20:51:37 +0300161 linux/64/syscallent.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000162 linux/aarch64/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000163 linux/aarch64/ioctls_arch0.h \
164 linux/aarch64/ioctls_arch1.h \
165 linux/aarch64/ioctls_inc0.h \
166 linux/aarch64/ioctls_inc1.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000167 linux/aarch64/signalent1.h \
168 linux/aarch64/syscallent.h \
169 linux/aarch64/syscallent1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000170 linux/alpha/errnoent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000171 linux/alpha/ioctls_arch0.h \
172 linux/alpha/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000173 linux/alpha/signalent.h \
174 linux/alpha/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000175 linux/alpha/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000176 linux/arc/ioctls_arch0.h \
177 linux/arc/ioctls_inc0.h \
Vineet Gupta7daacbb2013-08-16 12:47:06 +0530178 linux/arc/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000179 linux/arm/ioctls_arch0.h \
180 linux/arm/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000181 linux/arm/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000182 linux/arm/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000183 linux/avr32/ioctls_arch0.h \
184 linux/avr32/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000185 linux/avr32/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000186 linux/avr32/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000187 linux/bfin/ioctls_arch0.h \
188 linux/bfin/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000189 linux/bfin/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000190 linux/bfin/userent.h \
191 linux/crisv10/userent.h \
192 linux/crisv32/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000193 linux/dummy.h \
194 linux/errnoent.h \
Dmitry V. Levin99db95d2014-02-05 04:13:18 +0000195 linux/fanotify.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000196 linux/hppa/errnoent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000197 linux/hppa/ioctls_arch0.h \
198 linux/hppa/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000199 linux/hppa/signalent.h \
200 linux/hppa/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000201 linux/i386/ioctls_arch0.h \
202 linux/i386/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000203 linux/i386/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000204 linux/i386/userent.h \
205 linux/i386/userent0.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000206 linux/ia64/ioctls_arch0.h \
207 linux/ia64/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000208 linux/ia64/signalent.h \
209 linux/ia64/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000210 linux/ia64/userent.h \
Dmitry V. Levin2f6510c2014-08-21 03:17:48 +0000211 linux/inet_diag.h \
Dmitry V. Levin2f332e92014-02-05 15:43:04 +0000212 linux/inotify.h \
Dmitry V. Levin90aa9f42014-02-05 13:48:26 +0000213 linux/kexec.h \
Dmitry V. Levin3acf4032014-02-05 22:41:45 +0000214 linux/keyctl.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000215 linux/m68k/ioctls_arch0.h \
216 linux/m68k/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000217 linux/m68k/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000218 linux/m68k/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000219 linux/metag/ioctls_arch0.h \
220 linux/metag/ioctls_inc0.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000221 linux/metag/syscallent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000222 linux/microblaze/ioctls_arch0.h \
223 linux/microblaze/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000224 linux/microblaze/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000225 linux/microblaze/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000226 linux/mips/errnoent.h \
Dmitry V. Levind59287d2015-01-13 04:57:27 +0000227 linux/mips/genstub.sh \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000228 linux/mips/ioctls_arch0.h \
229 linux/mips/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000230 linux/mips/signalent.h \
Dmitry V. Levin34c445b2013-05-07 02:46:46 +0000231 linux/mips/syscallent-compat.h \
232 linux/mips/syscallent-n32.h \
233 linux/mips/syscallent-n64.h \
234 linux/mips/syscallent-o32.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000235 linux/mips/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000236 linux/mips/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000237 linux/mtd-abi.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000238 linux/or1k/ioctls_arch0.h \
239 linux/or1k/ioctls_inc0.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000240 linux/or1k/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000241 linux/or1k/userent.h \
Dmitry V. Levin2a32eaa2014-02-05 02:09:49 +0000242 linux/personality.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000243 linux/powerpc/ioctls_arch0.h \
244 linux/powerpc/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000245 linux/powerpc/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000246 linux/powerpc/userent.h \
Dmitry V. Levinaf3ab5b2015-01-21 17:04:31 +0000247 linux/powerpc64/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000248 linux/powerpc64/ioctls_arch0.h \
249 linux/powerpc64/ioctls_arch1.h \
250 linux/powerpc64/ioctls_inc0.h \
251 linux/powerpc64/ioctls_inc1.h \
Dmitry V. Levinaf3ab5b2015-01-21 17:04:31 +0000252 linux/powerpc64/signalent1.h \
253 linux/powerpc64/syscallent.h \
254 linux/powerpc64/syscallent1.h \
255 linux/powerpc64/userent.h \
Stefan Sørensenb88a6f82014-01-31 12:01:01 +0100256 linux/ptp_clock.h \
Dmitry V. Levin9aaf88c2014-02-05 14:51:19 +0000257 linux/reboot.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000258 linux/s390/ioctls_arch0.h \
259 linux/s390/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000260 linux/s390/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000261 linux/s390/userent.h \
262 linux/s390/userent0.h \
263 linux/s390/userent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000264 linux/s390x/ioctls_arch0.h \
265 linux/s390x/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000266 linux/s390x/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000267 linux/s390x/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000268 linux/sh/ioctls_arch0.h \
269 linux/sh/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000270 linux/sh/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000271 linux/sh/userent.h \
272 linux/sh/userent0.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000273 linux/sh64/ioctls_arch0.h \
274 linux/sh64/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000275 linux/sh64/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000276 linux/sh64/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000277 linux/signalent.h \
Dmitry V. Levin2f6510c2014-08-21 03:17:48 +0000278 linux/sock_diag.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000279 linux/sparc/dummy2.h \
280 linux/sparc/errnoent.h \
281 linux/sparc/errnoent1.h \
282 linux/sparc/gen.pl \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000283 linux/sparc/ioctlent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000284 linux/sparc/ioctls_arch0.h \
285 linux/sparc/ioctls_inc0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000286 linux/sparc/signalent.h \
287 linux/sparc/signalent1.h \
288 linux/sparc/syscall1.h \
289 linux/sparc/syscallent.h \
290 linux/sparc/syscallent1.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000291 linux/sparc/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000292 linux/sparc64/dummy2.h \
293 linux/sparc64/errnoent.h \
294 linux/sparc64/errnoent1.h \
295 linux/sparc64/errnoent2.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000296 linux/sparc64/ioctlent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000297 linux/sparc64/ioctls_arch0.h \
298 linux/sparc64/ioctls_arch2.h \
299 linux/sparc64/ioctls_inc0.h \
300 linux/sparc64/ioctls_inc2.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000301 linux/sparc64/signalent.h \
302 linux/sparc64/signalent1.h \
303 linux/sparc64/signalent2.h \
304 linux/sparc64/syscall1.h \
305 linux/sparc64/syscallent.h \
306 linux/sparc64/syscallent1.h \
307 linux/sparc64/syscallent2.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000308 linux/sparc64/userent.h \
Dmitry V. Levinde462cf2013-05-07 18:38:01 +0400309 linux/subcall.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000310 linux/syscall.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000311 linux/tile/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000312 linux/tile/ioctls_arch0.h \
313 linux/tile/ioctls_arch1.h \
314 linux/tile/ioctls_inc0.h \
315 linux/tile/ioctls_inc1.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000316 linux/tile/signalent1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000317 linux/tile/syscallent.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000318 linux/tile/syscallent1.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000319 linux/tile/userent.h \
Dmitry V. Levin8e0b8be2013-06-02 18:09:44 +0000320 linux/ubi-user.h \
Dmitry V. Levince21ef02015-01-09 02:02:39 +0000321 linux/unix_diag.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000322 linux/userent.h \
323 linux/userent0.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000324 linux/x32/errnoent.h \
325 linux/x32/errnoent1.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000326 linux/x32/ioctls_arch0.h \
327 linux/x32/ioctls_arch1.h \
328 linux/x32/ioctls_inc0.h \
329 linux/x32/ioctls_inc1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000330 linux/x32/signalent.h \
331 linux/x32/signalent1.h \
332 linux/x32/syscallent.h \
333 linux/x32/syscallent1.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000334 linux/x32/userent.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000335 linux/x86_64/errnoent1.h \
336 linux/x86_64/errnoent2.h \
337 linux/x86_64/gentab.pl \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000338 linux/x86_64/ioctlent2.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000339 linux/x86_64/ioctls_arch0.h \
340 linux/x86_64/ioctls_arch1.h \
341 linux/x86_64/ioctls_inc0.h \
342 linux/x86_64/ioctls_inc1.h \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000343 linux/x86_64/signalent1.h \
344 linux/x86_64/signalent2.h \
345 linux/x86_64/syscallent.h \
346 linux/x86_64/syscallent1.h \
347 linux/x86_64/syscallent2.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000348 linux/x86_64/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000349 linux/xtensa/ioctls_arch0.h \
350 linux/xtensa/ioctls_inc0.h \
Dmitry V. Levin0db34e72013-06-02 18:12:44 +0000351 linux/xtensa/syscallent.h \
Dmitry V. Levinfced7b02014-12-11 19:25:02 +0000352 linux/xtensa/userent.h \
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000353 maint/ioctls_gen.sh \
354 maint/ioctls_hex.sh \
355 maint/ioctls_sym.sh \
356 maint/print_ioctlent.c \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000357 signalent.sh \
358 strace-graph \
359 strace-log-merge \
360 strace.spec \
361 syscallent.sh \
Mike Frysinger761ed9b2014-02-16 01:59:20 -0500362 $(XLAT_INPUT_FILES) \
363 $(XLAT_HEADER_FILES) \
364 xlat/gen.sh \
Dmitry V. Levin7ae73a92013-04-30 23:34:51 +0000365 xlate.el
Roland McGrathbc44e402004-07-12 05:45:08 +0000366
Roland McGrath2b832df2009-10-06 17:46:56 -0700367.PHONY: srpm
Dmitry V. Levin525a39a2011-02-27 14:05:58 +0000368srpm: dist-xz
369 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
Roland McGrath2b832df2009-10-06 17:46:56 -0700370
Dmitry V. Levindce75932013-04-30 23:52:12 +0000371BUILT_SOURCES = .version
372
373$(srcdir)/.version:
374 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
375
376dist-hook:
377 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
378
379today = $(shell date +%Y-%m-%d)
380version_regexp = $(subst .,\.,$(VERSION))
381news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
382
383news-check: NEWS
384 $(AM_V_GEN)if head -1 $< | \
385 grep -x $(news_check_regexp) >/dev/null; then \
386 :; \
387 else \
388 echo >&2 '$<: check failed'; \
389 exit 1; \
390 fi
Mike Frysinger9004e122011-02-20 23:24:22 -0500391
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000392ioctlsort_CC = $(CC)
393ioctlsort_DEFS = $(DEFS)
394ioctlsort_INCLUDES = $(DEFAULT_INCLUDES) $(INCLUDES)
395ioctlsort_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS)
396ioctlsort_CFLAGS = $(AM_CFLAGS) $(CFLAGS)
397ioctlsort_LD = $(CCLD)
398ioctlsort_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS)
399
400ioctls_inc_h = $(wildcard $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h)
401ioctlent_h = $(patsubst $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%,ioctlent%,$(ioctls_inc_h))
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000402BUILT_SOURCES += $(ioctlent_h)
403CLEANFILES = $(ioctlent_h)
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000404
405ioctlent%.h: ioctlsort%
406 ./$< > $@
407
408ioctlsort%: ioctlsort%.o
409 $(ioctlsort_LD) $(ioctlsort_LDFLAGS) $< -o $@
410
411ioctlsort%.o: ioctls_all%.h $(srcdir)/ioctlsort.c
412 $(ioctlsort_CC) $(ioctlsort_DEFS) $(ioctlsort_INCLUDES) $(ioctlsort_CPPFLAGS) $(ioctlsort_CFLAGS) -DIOCTLSORT_INC=\"$<\" -c -o $@ $(srcdir)/ioctlsort.c
413
414ioctls_all%.h: $(srcdir)/$(OS)/$(ARCH)/ioctls_inc%.h $(srcdir)/$(OS)/$(ARCH)/ioctls_arch%.h
415 cat $^ > $@
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000416
Roland McGrathbc44e402004-07-12 05:45:08 +0000417if MAINTAINER_MODE
Roland McGratha478d742009-10-06 17:41:02 -0700418
419gen_changelog_start_date = 2009-07-08 20:00
Dmitry V. Levindce75932013-04-30 23:52:12 +0000420$(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
421 $(srcdir)/.version
Roland McGratha478d742009-10-06 17:41:02 -0700422 @rm -f $@.new
Dmitry V. Levindce75932013-04-30 23:52:12 +0000423 (cd $(srcdir); \
Dmitry V. Levin594399d2011-11-05 13:32:27 +0000424 ./gitlog-to-changelog --append-dot \
425 --since='$(gen_changelog_start_date)'; \
Roland McGratha478d742009-10-06 17:41:02 -0700426 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
427 ) > $@.new
428 chmod 444 $@.new
429 mv -f $@.new $@
430
Dmitry V. Levindce75932013-04-30 23:52:12 +0000431$(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
432 $(srcdir)/Makefile.in $(srcdir)/.version
Dmitry V. Levin59138a22011-02-24 01:51:15 +0000433 $(AM_V_GEN) \
Mike Frysinger67c4d432014-08-14 04:05:37 -0400434 ( \
Dmitry V. Levindce75932013-04-30 23:52:12 +0000435 cd $(srcdir); \
Dmitry V. Levin59138a22011-02-24 01:51:15 +0000436 sed '/^##/,$$d' CREDITS.in; \
437 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
438 git log --pretty=format:'%aN %aE'; \
439 } | LC_ALL=C sort -u \
440 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
Mike Frysinger67c4d432014-08-14 04:05:37 -0400441 ) > $@-t && mv $@-t $@
Dmitry V. Levin59138a22011-02-24 01:51:15 +0000442
Dmitry V. Levin76ac37d2009-10-09 22:10:09 +0000443export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
444
Dmitry V. Levin00119f62014-11-04 01:40:42 +0000445endif