blob: 1dcdc6209a3a3e67fb8d7c648ef93e77d5d5bf11 [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 McGrathd97b2072002-12-30 10:45:58 +000027 strace-graph COPYRIGHT CREDITS PORTING \
28 README-CVS README-freebsd README-linux README-sunos4 README-svr4 \
29 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 \
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +000037 linux/bfin/ioctlent.h linux/bfin/syscallent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000038 linux/hppa/errnoent.h linux/hppa/ioctlent.h \
39 linux/hppa/signalent.h linux/hppa/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000040 linux/ia64/syscallent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000041 linux/ia64/ioctlent.h linux/ia64/signalent.h \
Roland McGrathcdb24732005-12-02 04:27:47 +000042 linux/m68k/syscallent.h \
Denys Vlasenko185cce12009-02-20 16:00:41 +000043 linux/mips/ioctlent.sh linux/mips/errnoent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000044 linux/mips/ioctlent.h linux/mips/signalent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000045 linux/mips/syscallent.h \
46 linux/powerpc/syscallent.h \
Denys Vlasenko185cce12009-02-20 16:00:41 +000047 linux/powerpc/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000048 linux/powerpc/signalent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000049 linux/s390/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000050 linux/s390/signalent.h linux/s390/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000051 linux/s390x/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000052 linux/s390x/signalent.h linux/s390x/syscallent.h \
Denys Vlasenkod8df3712009-02-20 15:51:51 +000053 linux/sh/syscallent.h \
Roland McGrathac971c22003-03-31 01:03:33 +000054 linux/sh/ioctlent.h linux/sh/signalent.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
87if LINUX
88
89IOCTLDIR = /usr/include
Roland McGrathadc2b302004-07-12 06:11:03 +000090IOCTLASM = asm
Roland McGrathbc44e402004-07-12 05:45:08 +000091
92if I386
93ioctlent_h = linux/ioctlent.h
94else
95ioctlent_h = linux/$(ARCH)/ioctlent.h
96endif
97
98BUILT_SOURCES = $(ioctlent_h)
99
100$(srcdir)/$(ioctlent_h): ioctlsort
101 $(<D)/$(<F) > $@
102ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
Roland McGrathadc2b302004-07-12 06:11:03 +0000103 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
104 -o $@ $<
Roland McGrathbc44e402004-07-12 05:45:08 +0000105ioctls.h: $(srcdir)/linux/ioctlent.sh
Roland McGrathadc2b302004-07-12 06:11:03 +0000106 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
Roland McGrathbc44e402004-07-12 05:45:08 +0000107ioctldefs.h: ioctls.h ;
108
109endif
110endif