Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. # Automake input for strace.
  2. SUBDIRS = tests
  3. bin_PROGRAMS = strace
  4. man_MANS = strace.1
  5. bin_SCRIPTS = strace-graph strace-log-merge
  6. OS = linux
  7. # ARCH is `i386', `m68k', `sparc', etc.
  8. ARCH = @arch@
  9. ACLOCAL_AMFLAGS = -I m4
  10. AM_CFLAGS = $(WARN_CFLAGS)
  11. AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS) -I$(builddir)/$(OS)
  12. include xlat/Makemodule.am
  13. strace_SOURCES = \
  14. aio.c \
  15. bjm.c \
  16. block.c \
  17. cacheflush.c \
  18. capability.c \
  19. count.c \
  20. desc.c \
  21. dirent.c \
  22. fadvise.c \
  23. fallocate.c \
  24. fanotify.c \
  25. file.c \
  26. inotify.c \
  27. io.c \
  28. ioctl.c \
  29. ioprio.c \
  30. ipc.c \
  31. kexec.c \
  32. keyctl.c \
  33. ldt.c \
  34. loop.c \
  35. mem.c \
  36. mount.c \
  37. mtd.c \
  38. net.c \
  39. or1k_atomic.c \
  40. pathtrace.c \
  41. personality.c \
  42. process.c \
  43. ptp.c \
  44. quota.c \
  45. reboot.c \
  46. resource.c \
  47. scsi.c \
  48. signal.c \
  49. sock.c \
  50. socketutils.c \
  51. sram_alloc.c \
  52. statfs.c \
  53. strace.c \
  54. stream.c \
  55. swapon.c \
  56. sync_file_range.c \
  57. syscall.c \
  58. sysctl.c \
  59. sysinfo.c \
  60. syslog.c \
  61. sysmips.c \
  62. term.c \
  63. time.c \
  64. umount.c \
  65. util.c \
  66. v4l2.c \
  67. vsprintf.c \
  68. xattr.c
  69. if USE_LIBUNWIND
  70. strace_SOURCES += unwind.c
  71. strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
  72. strace_LDFLAGS = $(libunwind_LDFLAGS)
  73. strace_LDADD = $(libunwind_LIBS)
  74. else
  75. strace_CPPFLAGS = $(AM_CPPFLAGS)
  76. endif
  77. noinst_HEADERS = defs.h
  78. # Enable this to get link map generated
  79. #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
  80. EXTRA_DIST = \
  81. $(man_MANS) \
  82. .version \
  83. COPYING \
  84. CREDITS \
  85. ChangeLog \
  86. ChangeLog-CVS \
  87. README-linux \
  88. README-linux-ptrace \
  89. debian/changelog \
  90. debian/compat \
  91. debian/control \
  92. debian/copyright \
  93. debian/rules \
  94. debian/source/format \
  95. debian/strace-udeb.install \
  96. debian/strace.docs \
  97. debian/strace.examples \
  98. debian/strace.install \
  99. debian/strace.manpages \
  100. debian/strace64.install \
  101. debian/strace64.manpages \
  102. debian/watch \
  103. errnoent.sh \
  104. ioctlsort.c \
  105. linux/aarch64/errnoent1.h \
  106. linux/aarch64/ioctlent.h.in \
  107. linux/aarch64/ioctlent1.h \
  108. linux/aarch64/signalent1.h \
  109. linux/aarch64/syscallent.h \
  110. linux/aarch64/syscallent1.h \
  111. linux/alpha/errnoent.h \
  112. linux/alpha/ioctlent.h.in \
  113. linux/alpha/signalent.h \
  114. linux/alpha/syscallent.h \
  115. linux/arc/ioctlent.h.in \
  116. linux/arc/syscallent.h \
  117. linux/arm/ioctlent.h.in \
  118. linux/arm/syscallent.h \
  119. linux/avr32/ioctlent.h.in \
  120. linux/avr32/syscallent.h \
  121. linux/bfin/ioctlent.h.in \
  122. linux/bfin/syscallent.h \
  123. linux/dummy.h \
  124. linux/errnoent.h \
  125. linux/fanotify.h \
  126. linux/hppa/errnoent.h \
  127. linux/hppa/ioctlent.h.in \
  128. linux/hppa/signalent.h \
  129. linux/hppa/syscallent.h \
  130. linux/i386/ioctlent.h.in \
  131. linux/i386/syscallent.h \
  132. linux/ia64/ioctlent.h.in \
  133. linux/ia64/signalent.h \
  134. linux/ia64/syscallent.h \
  135. linux/inet_diag.h \
  136. linux/inotify.h \
  137. linux/ioctlent.h.in \
  138. linux/ioctlent.sh \
  139. linux/kexec.h \
  140. linux/keyctl.h \
  141. linux/m68k/ioctlent.h.in \
  142. linux/m68k/syscallent.h \
  143. linux/metag/ioctlent.h.in \
  144. linux/metag/syscallent.h \
  145. linux/microblaze/ioctlent.h.in \
  146. linux/microblaze/syscallent.h \
  147. linux/mips/errnoent.h \
  148. linux/mips/ioctlent.h.in \
  149. linux/mips/ioctlent.sh \
  150. linux/mips/signalent.h \
  151. linux/mips/syscallent-compat.h \
  152. linux/mips/syscallent-n32.h \
  153. linux/mips/syscallent-n64.h \
  154. linux/mips/syscallent-o32.h \
  155. linux/mips/syscallent.h \
  156. linux/mtd-abi.h \
  157. linux/or1k/ioctlent.h.in \
  158. linux/or1k/syscallent.h \
  159. linux/personality.h \
  160. linux/powerpc/errnoent1.h \
  161. linux/powerpc/ioctlent.h.in \
  162. linux/powerpc/ioctlent1.h \
  163. linux/powerpc/signalent1.h \
  164. linux/powerpc/syscallent.h \
  165. linux/powerpc/syscallent1.h \
  166. linux/ptp_clock.h \
  167. linux/reboot.h \
  168. linux/s390/ioctlent.h.in \
  169. linux/s390/syscallent.h \
  170. linux/s390x/ioctlent.h.in \
  171. linux/s390x/syscallent.h \
  172. linux/sh/ioctlent.h.in \
  173. linux/sh/syscallent.h \
  174. linux/sh64/ioctlent.h.in \
  175. linux/sh64/syscallent.h \
  176. linux/signalent.h \
  177. linux/sock_diag.h \
  178. linux/sparc/dummy2.h \
  179. linux/sparc/errnoent.h \
  180. linux/sparc/errnoent1.h \
  181. linux/sparc/gen.pl \
  182. linux/sparc/ioctlent.h.in \
  183. linux/sparc/ioctlent1.h \
  184. linux/sparc/signalent.h \
  185. linux/sparc/signalent1.h \
  186. linux/sparc/syscall1.h \
  187. linux/sparc/syscallent.h \
  188. linux/sparc/syscallent1.h \
  189. linux/sparc64/dummy2.h \
  190. linux/sparc64/errnoent.h \
  191. linux/sparc64/errnoent1.h \
  192. linux/sparc64/errnoent2.h \
  193. linux/sparc64/ioctlent.h.in \
  194. linux/sparc64/ioctlent1.h \
  195. linux/sparc64/ioctlent2.h \
  196. linux/sparc64/signalent.h \
  197. linux/sparc64/signalent1.h \
  198. linux/sparc64/signalent2.h \
  199. linux/sparc64/syscall1.h \
  200. linux/sparc64/syscallent.h \
  201. linux/sparc64/syscallent1.h \
  202. linux/sparc64/syscallent2.h \
  203. linux/subcall.h \
  204. linux/syscall.h \
  205. linux/tile/errnoent1.h \
  206. linux/tile/ioctlent.h.in \
  207. linux/tile/ioctlent1.h \
  208. linux/tile/signalent1.h \
  209. linux/tile/syscallent.h \
  210. linux/tile/syscallent1.h \
  211. linux/ubi-user.h \
  212. linux/x32/errnoent.h \
  213. linux/x32/errnoent1.h \
  214. linux/x32/ioctlent.h.in \
  215. linux/x32/ioctlent1.h \
  216. linux/x32/signalent.h \
  217. linux/x32/signalent1.h \
  218. linux/x32/syscallent.h \
  219. linux/x32/syscallent1.h \
  220. linux/x86_64/errnoent1.h \
  221. linux/x86_64/errnoent2.h \
  222. linux/x86_64/gentab.pl \
  223. linux/x86_64/ioctlent.h.in \
  224. linux/x86_64/ioctlent1.h \
  225. linux/x86_64/ioctlent2.h \
  226. linux/x86_64/signalent1.h \
  227. linux/x86_64/signalent2.h \
  228. linux/x86_64/syscallent.h \
  229. linux/x86_64/syscallent1.h \
  230. linux/x86_64/syscallent2.h \
  231. linux/xtensa/ioctlent.h.in \
  232. linux/xtensa/syscallent.h \
  233. signalent.sh \
  234. strace-graph \
  235. strace-log-merge \
  236. strace.spec \
  237. syscallent.sh \
  238. $(XLAT_INPUT_FILES) \
  239. $(XLAT_HEADER_FILES) \
  240. xlat/gen.sh \
  241. xlate.el
  242. .PHONY: srpm
  243. srpm: dist-xz
  244. rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
  245. BUILT_SOURCES = .version
  246. $(srcdir)/.version:
  247. $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
  248. dist-hook:
  249. $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
  250. today = $(shell date +%Y-%m-%d)
  251. version_regexp = $(subst .,\.,$(VERSION))
  252. news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
  253. news-check: NEWS
  254. $(AM_V_GEN)if head -1 $< | \
  255. grep -x $(news_check_regexp) >/dev/null; then \
  256. :; \
  257. else \
  258. echo >&2 '$<: check failed'; \
  259. exit 1; \
  260. fi
  261. ioctlent_h = $(builddir)/$(OS)/ioctlent.h
  262. BUILT_SOURCES += $(ioctlent_h)
  263. CLEANFILES = $(ioctlent_h)
  264. ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in
  265. $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
  266. $(MKDIR_P) $(builddir)/$(OS)
  267. cat $(ioctlent_h_deps) | \
  268. $(COMPILE) -E -P - | \
  269. sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \
  270. LC_ALL=C sort -u -k2,2 -k1,1 > $@
  271. if MAINTAINER_MODE
  272. gen_changelog_start_date = 2009-07-08 20:00
  273. $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
  274. $(srcdir)/.version
  275. @rm -f $@.new
  276. (cd $(srcdir); \
  277. ./gitlog-to-changelog --append-dot \
  278. --since='$(gen_changelog_start_date)'; \
  279. echo; echo; echo 'See ChangeLog-CVS for older changes.' \
  280. ) > $@.new
  281. chmod 444 $@.new
  282. mv -f $@.new $@
  283. $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
  284. $(srcdir)/Makefile.in $(srcdir)/.version
  285. $(AM_V_GEN) \
  286. ( \
  287. cd $(srcdir); \
  288. sed '/^##/,$$d' CREDITS.in; \
  289. { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
  290. git log --pretty=format:'%aN %aE'; \
  291. } | LC_ALL=C sort -u \
  292. | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
  293. ) > $@-t && mv $@-t $@
  294. export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
  295. INCLUDEDIR = /usr/include
  296. KERNEL_RELEASE = $(shell uname -r)
  297. # Candidates for the kernel headers tree.
  298. KERNEL_INCLUDE = \
  299. /lib/modules/$(KERNEL_RELEASE)/build/include \
  300. /usr/src/linux-$(KERNEL_RELEASE)/include \
  301. $(INCLUDEDIR)
  302. IOCTLDIR = $(shell find $(KERNEL_INCLUDE) -maxdepth 0 -type d -print -quit 2>/dev/null)
  303. IOCTLASM = $(INCLUDEDIR)/asm
  304. noinst_PROGRAMS = ioctlsort
  305. ioctlsort_SOURCES = ioctlsort.c
  306. nodist_ioctlsort_SOURCES = ioctls.h ioctldefs.h
  307. CLEANFILES += $(nodist_ioctlsort_SOURCES)
  308. ioctlsort.$(OBJEXT): $(nodist_ioctlsort_SOURCES)
  309. ioctls.h: $(srcdir)/linux/ioctlent.sh
  310. $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
  311. ioctldefs.h: ioctls.h ;
  312. ioctlent_h_in = linux/ioctlent.h.in
  313. BUILT_SOURCES += $(ioctlent_h_in)
  314. $(srcdir)/$(ioctlent_h_in): ioctlsort
  315. $(<D)/$(<F) > $@
  316. endif