blob: c3e04db2205b8501deade484563784116d4ea456 [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
Roland McGrath44f24c72003-01-09 06:53:25 +000012AM_CFLAGS = $(WARNFLAGS)
Roland McGrath6d2b3492002-12-30 00:51:30 +000013INCLUDES = -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) -I$(srcdir)/$(OS)
14
Dmitry V. Levin7d61ff12006-12-21 21:15:04 +000015strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
Dmitry V. Levinef5c3d62006-10-16 00:26:47 +000016 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
Roland McGrath6d2b3492002-12-30 00:51:30 +000017 resource.c signal.c sock.c system.c term.c time.c \
Dmitry V. Levinb011af52007-06-30 11:37:09 +000018 proc.c scsi.c stream.c
Roland McGrath2746edd2002-12-30 09:13:08 +000019noinst_HEADERS = defs.h
Roland McGrath6d2b3492002-12-30 00:51:30 +000020
Roland McGrath80964aa2002-12-30 01:11:08 +000021EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
Denys Vlasenko185cce12009-02-20 16:00:41 +000022 debian/changelog debian/control debian/copyright debian/rules \
Roland McGrath09a007c2008-07-22 08:33:40 +000023 debian/compat debian/strace64.install debian/strace64.manpages \
24 debian/strace.docs debian/strace.examples debian/strace.install \
25 debian/strace.manpages debian/strace-udeb.install \
Roland McGrath44f24c72003-01-09 06:53:25 +000026 strace.spec \
Roland McGratha478d742009-10-06 17:41:02 -070027 strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \
Dmitry V. Levin82f4cc62009-07-07 22:33:41 +000028 README-freebsd README-linux README-sunos4 README-svr4 \
Roland McGrathd97b2072002-12-30 10:45:58 +000029 linux/ioctlsort.c linux/ioctlent.sh \
Roland McGrath80964aa2002-12-30 01:11:08 +000030 linux/ioctlent.h linux/errnoent.h linux/signalent.h \
31 linux/syscall.h linux/syscallent.h linux/dummy.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000032 linux/alpha/errnoent.h linux/alpha/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000033 linux/alpha/signalent.h linux/alpha/syscallent.h \
Roland McGrath1cdfb8f2008-08-01 01:15:24 +000034 linux/arm/syscallent.h linux/arm/syscallent1.h \
35 linux/arm/signalent1.h linux/arm/ioctlent1.h \
36 linux/arm/errnoent1.h \
Denys Vlasenko5ae2b7c2009-02-27 20:32:52 +000037 linux/avr32/syscallent.h \
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +000038 linux/bfin/ioctlent.h linux/bfin/syscallent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000039 linux/hppa/errnoent.h linux/hppa/ioctlent.h \
40 linux/hppa/signalent.h linux/hppa/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000041 linux/ia64/syscallent.h \
Denys Vlasenkof3c9ed42009-02-20 17:38:47 +000042 linux/ia64/ioctlent.h \
Roland McGrathcdb24732005-12-02 04:27:47 +000043 linux/m68k/syscallent.h \
Denys Vlasenko185cce12009-02-20 16:00:41 +000044 linux/mips/ioctlent.sh linux/mips/errnoent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000045 linux/mips/ioctlent.h linux/mips/signalent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000046 linux/mips/syscallent.h \
47 linux/powerpc/syscallent.h \
Denys Vlasenko185cce12009-02-20 16:00:41 +000048 linux/powerpc/ioctlent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000049 linux/s390/ioctlent.h \
Denys Vlasenkof3c9ed42009-02-20 17:38:47 +000050 linux/s390/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000051 linux/s390x/ioctlent.h \
Denys Vlasenkof3c9ed42009-02-20 17:38:47 +000052 linux/s390x/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000053 linux/sh/syscallent.h \
Denys Vlasenko53560262009-02-20 16:24:39 +000054 linux/sh/ioctlent.h \
Roland McGrath66177292004-07-12 07:27:23 +000055 linux/sh64/syscallent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000056 linux/sparc/dummy2.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000057 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
58 linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \
59 linux/sparc/signalent.h linux/sparc/signalent1.h \
60 linux/sparc/syscall.h linux/sparc/syscall1.h \
61 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000062 linux/sparc/gen.pl linux/sparc/syscall.h.2 \
Roland McGrath0165e772004-07-12 07:53:59 +000063 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
64 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
65 linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \
66 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
67 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
68 linux/sparc64/syscall.h linux/sparc64/syscall1.h \
69 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
70 linux/sparc64/syscallent2.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000071 linux/x86_64/syscallent.h linux/x86_64/gentab.pl \
Roland McGrath7daaace2002-12-30 09:33:20 +000072 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
73 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
Roland McGrath80964aa2002-12-30 01:11:08 +000074 freebsd/ioctlent.sh \
75 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
Roland McGrath2746edd2002-12-30 09:13:08 +000076 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
77 freebsd/i386/signalent.h \
78 freebsd/i386/syscall.h freebsd/i386/syscallent.h \
Roland McGrath80964aa2002-12-30 01:11:08 +000079 sunos4/dummy.h sunos4/errnoent.h \
80 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
81 sunos4/syscall.h sunos4/syscallent.h \
82 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
Roland McGrath5a862ff2006-04-25 07:33:20 +000083 svr4/signalent.h svr4/syscall.h svr4/syscallent.h \
84 xlate.el
Roland McGrathbc44e402004-07-12 05:45:08 +000085
86if MAINTAINER_MODE
Roland McGratha478d742009-10-06 17:41:02 -070087
88gen_changelog_start_date = 2009-07-08 20:00
89$(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
90 $(top_srcdir)/.git/refs/heads/*
91 @rm -f $@.new
92 (cd $(top_srcdir); \
93 ./gitlog-to-changelog --since='$(gen_changelog_start_date)'; \
94 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
95 ) > $@.new
96 chmod 444 $@.new
97 mv -f $@.new $@
98
Roland McGrathbc44e402004-07-12 05:45:08 +000099if LINUX
100
101IOCTLDIR = /usr/include
Roland McGrathadc2b302004-07-12 06:11:03 +0000102IOCTLASM = asm
Roland McGrathbc44e402004-07-12 05:45:08 +0000103
104if I386
105ioctlent_h = linux/ioctlent.h
106else
107ioctlent_h = linux/$(ARCH)/ioctlent.h
108endif
109
110BUILT_SOURCES = $(ioctlent_h)
111
112$(srcdir)/$(ioctlent_h): ioctlsort
113 $(<D)/$(<F) > $@
114ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
Roland McGrathadc2b302004-07-12 06:11:03 +0000115 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
116 -o $@ $<
Roland McGrathbc44e402004-07-12 05:45:08 +0000117ioctls.h: $(srcdir)/linux/ioctlent.sh
Roland McGrathadc2b302004-07-12 06:11:03 +0000118 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
Roland McGrathbc44e402004-07-12 05:45:08 +0000119ioctldefs.h: ioctls.h ;
120
121endif
122endif