blob: 32345028482c33cc629cf80dc9f985afb3f39a8b [file] [log] [blame]
Roland McGrath6d2b3492002-12-30 00:51:30 +00001# Automake input for strace.
2
3bin_PROGRAMS = strace
4man_MANS = strace.1
Roland McGrathd97b2072002-12-30 10:45:58 +00005bin_SCRIPTS = strace-graph
Roland McGrath6d2b3492002-12-30 00:51:30 +00006
7# OS is one of `linux', `sunos4', `svr4', or `freebsd'.
8OS = @opsys@
9# ARCH is `i386', `m68k', `sparc', etc.
10ARCH = @arch@
Roland McGrath6d2b3492002-12-30 00:51:30 +000011
Dmitry V. Levin916aded2010-09-09 17:36:36 +000012ACLOCAL_AMFLAGS = -I m4
Dmitry V. Levin918e49b2010-09-09 17:41:15 +000013AM_CFLAGS = $(WARN_CFLAGS)
14AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS)
Roland McGrath6d2b3492002-12-30 00:51:30 +000015
Dmitry V. Levin7d61ff12006-12-21 21:15:04 +000016strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
Dmitry V. Levinef5c3d62006-10-16 00:26:47 +000017 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
Roland McGrath6d2b3492002-12-30 00:51:30 +000018 resource.c signal.c sock.c system.c term.c time.c \
Dmitry V. Levinb011af52007-06-30 11:37:09 +000019 proc.c scsi.c stream.c
Roland McGrath2746edd2002-12-30 09:13:08 +000020noinst_HEADERS = defs.h
Roland McGrath6d2b3492002-12-30 00:51:30 +000021
Roland McGrath80964aa2002-12-30 01:11:08 +000022EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
Denys Vlasenko185cce12009-02-20 16:00:41 +000023 debian/changelog debian/control debian/copyright debian/rules \
Roland McGrath09a007c2008-07-22 08:33:40 +000024 debian/compat debian/strace64.install debian/strace64.manpages \
25 debian/strace.docs debian/strace.examples debian/strace.install \
26 debian/strace.manpages debian/strace-udeb.install \
Roland McGrath44f24c72003-01-09 06:53:25 +000027 strace.spec \
Roland McGratha478d742009-10-06 17:41:02 -070028 strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \
Dmitry V. Levin82f4cc62009-07-07 22:33:41 +000029 README-freebsd README-linux README-sunos4 README-svr4 \
Roland McGrathd97b2072002-12-30 10:45:58 +000030 linux/ioctlsort.c linux/ioctlent.sh \
Roland McGrath80964aa2002-12-30 01:11:08 +000031 linux/ioctlent.h linux/errnoent.h linux/signalent.h \
Dmitry V. Levinc94a7742010-04-07 10:17:24 +000032 linux/syscall.h linux/dummy.h \
33 linux/i386/syscallent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000034 linux/alpha/errnoent.h linux/alpha/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000035 linux/alpha/signalent.h linux/alpha/syscallent.h \
Roland McGrath1cdfb8f2008-08-01 01:15:24 +000036 linux/arm/syscallent.h linux/arm/syscallent1.h \
37 linux/arm/signalent1.h linux/arm/ioctlent1.h \
38 linux/arm/errnoent1.h \
Denys Vlasenko5ae2b7c2009-02-27 20:32:52 +000039 linux/avr32/syscallent.h \
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +000040 linux/bfin/ioctlent.h linux/bfin/syscallent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000041 linux/hppa/errnoent.h linux/hppa/ioctlent.h \
42 linux/hppa/signalent.h linux/hppa/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000043 linux/ia64/syscallent.h \
Denys Vlasenkof3c9ed42009-02-20 17:38:47 +000044 linux/ia64/ioctlent.h \
Roland McGrathcdb24732005-12-02 04:27:47 +000045 linux/m68k/syscallent.h \
Edgar E. Iglesias939caba2010-07-06 14:21:07 +020046 linux/microblaze/syscallent.h \
Denys Vlasenko185cce12009-02-20 16:00:41 +000047 linux/mips/ioctlent.sh linux/mips/errnoent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000048 linux/mips/ioctlent.h linux/mips/signalent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000049 linux/mips/syscallent.h \
50 linux/powerpc/syscallent.h \
Denys Vlasenko185cce12009-02-20 16:00:41 +000051 linux/powerpc/ioctlent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000052 linux/s390/ioctlent.h \
Denys Vlasenkof3c9ed42009-02-20 17:38:47 +000053 linux/s390/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000054 linux/s390x/ioctlent.h \
Denys Vlasenkof3c9ed42009-02-20 17:38:47 +000055 linux/s390x/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000056 linux/sh/syscallent.h \
Denys Vlasenko53560262009-02-20 16:24:39 +000057 linux/sh/ioctlent.h \
Roland McGrath66177292004-07-12 07:27:23 +000058 linux/sh64/syscallent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000059 linux/sparc/dummy2.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000060 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
61 linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \
62 linux/sparc/signalent.h linux/sparc/signalent1.h \
63 linux/sparc/syscall.h linux/sparc/syscall1.h \
64 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000065 linux/sparc/gen.pl linux/sparc/syscall.h.2 \
Roland McGrath0165e772004-07-12 07:53:59 +000066 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
67 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
68 linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \
69 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
70 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
71 linux/sparc64/syscall.h linux/sparc64/syscall1.h \
72 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
73 linux/sparc64/syscallent2.h \
Chris Metcalfc8c66982009-12-28 10:00:15 -050074 linux/tile/syscallent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000075 linux/x86_64/syscallent.h linux/x86_64/gentab.pl \
Roland McGrath7daaace2002-12-30 09:33:20 +000076 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
77 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
Roland McGrath80964aa2002-12-30 01:11:08 +000078 freebsd/ioctlent.sh \
79 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
Roland McGrath2746edd2002-12-30 09:13:08 +000080 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
81 freebsd/i386/signalent.h \
82 freebsd/i386/syscall.h freebsd/i386/syscallent.h \
Roland McGrath80964aa2002-12-30 01:11:08 +000083 sunos4/dummy.h sunos4/errnoent.h \
84 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
85 sunos4/syscall.h sunos4/syscallent.h \
86 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
Roland McGrath5a862ff2006-04-25 07:33:20 +000087 svr4/signalent.h svr4/syscall.h svr4/syscallent.h \
88 xlate.el
Roland McGrathbc44e402004-07-12 05:45:08 +000089
Roland McGrath2b832df2009-10-06 17:46:56 -070090.PHONY: srpm
91srpm: dist-bzip2
92 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.bz2
93
Roland McGrathbc44e402004-07-12 05:45:08 +000094if MAINTAINER_MODE
Roland McGratha478d742009-10-06 17:41:02 -070095
96gen_changelog_start_date = 2009-07-08 20:00
97$(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
98 $(top_srcdir)/.git/refs/heads/*
99 @rm -f $@.new
100 (cd $(top_srcdir); \
101 ./gitlog-to-changelog --since='$(gen_changelog_start_date)'; \
102 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
103 ) > $@.new
104 chmod 444 $@.new
105 mv -f $@.new $@
106
Dmitry V. Levin76ac37d2009-10-09 22:10:09 +0000107export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
108
Roland McGrathbc44e402004-07-12 05:45:08 +0000109if LINUX
110
111IOCTLDIR = /usr/include
Roland McGrathadc2b302004-07-12 06:11:03 +0000112IOCTLASM = asm
Roland McGrathbc44e402004-07-12 05:45:08 +0000113
114if I386
115ioctlent_h = linux/ioctlent.h
116else
117ioctlent_h = linux/$(ARCH)/ioctlent.h
118endif
119
120BUILT_SOURCES = $(ioctlent_h)
121
122$(srcdir)/$(ioctlent_h): ioctlsort
123 $(<D)/$(<F) > $@
124ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
Roland McGrathadc2b302004-07-12 06:11:03 +0000125 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
126 -o $@ $<
Roland McGrathbc44e402004-07-12 05:45:08 +0000127ioctls.h: $(srcdir)/linux/ioctlent.sh
Roland McGrathadc2b302004-07-12 06:11:03 +0000128 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
Roland McGrathbc44e402004-07-12 05:45:08 +0000129ioctldefs.h: ioctls.h ;
130
131endif
132endif