blob: 6612d2cd187ec219e6fef45dd6b3399f41d88686 [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
Roland McGrath9c9a2532003-02-20 02:56:29 +000015strace_SOURCES = strace.c syscall.c util.c desc.c file.c ipc.c \
Roland McGrath6d2b3492002-12-30 00:51:30 +000016 io.c ioctl.c mem.c net.c process.c bjm.c \
17 resource.c signal.c sock.c system.c term.c time.c \
18 proc.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 \
Roland McGrath44f24c72003-01-09 06:53:25 +000022 debian/changelog debian/control debian/copyright debian/rules \
23 strace.spec \
Roland McGrathd97b2072002-12-30 10:45:58 +000024 strace-graph COPYRIGHT CREDITS PORTING \
25 README-CVS README-freebsd README-linux README-sunos4 README-svr4 \
26 linux/ioctlsort.c linux/ioctlent.sh \
Roland McGrath80964aa2002-12-30 01:11:08 +000027 linux/ioctlent.h linux/errnoent.h linux/signalent.h \
28 linux/syscall.h linux/syscallent.h linux/dummy.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000029 linux/alpha/errnoent.h linux/alpha/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000030 linux/alpha/signalent.h linux/alpha/syscallent.h \
31 linux/hppa/errnoent.h linux/hppa/ioctlent.h \
32 linux/hppa/signalent.h linux/hppa/syscallent.h \
33 linux/ia64/syscallent.h linux/ia64/errnoent.h \
34 linux/ia64/ioctlent.h linux/ia64/signalent.h \
35 linux/mips/ioctlent.sh linux/mips/errnoent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000036 linux/mips/ioctlent.h linux/mips/signalent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000037 linux/mips/syscallent.h \
38 linux/powerpc/syscallent.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000039 linux/powerpc/errnoent.h linux/powerpc/ioctlent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000040 linux/powerpc/signalent.h \
41 linux/s390/errnoent.h linux/s390/ioctlent.h \
42 linux/s390/signalent.h linux/s390/syscallent.h \
43 linux/s390x/errnoent.h linux/s390x/ioctlent.h \
44 linux/s390x/signalent.h linux/s390x/syscallent.h \
Roland McGrathac971c22003-03-31 01:03:33 +000045 linux/sh/syscallent.h linux/sh/errnoent.h \
46 linux/sh/ioctlent.h linux/sh/signalent.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000047 linux/sparc/dummy2.h \
Roland McGrath2746edd2002-12-30 09:13:08 +000048 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
49 linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \
50 linux/sparc/signalent.h linux/sparc/signalent1.h \
51 linux/sparc/syscall.h linux/sparc/syscall1.h \
52 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
Roland McGrathd97b2072002-12-30 10:45:58 +000053 linux/sparc/gen.pl linux/sparc/syscall.h.2 \
Roland McGrath2746edd2002-12-30 09:13:08 +000054 linux/x86_64/syscallent.h linux/x86_64/gentab.pl \
Roland McGrath7daaace2002-12-30 09:33:20 +000055 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
56 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
Roland McGrath80964aa2002-12-30 01:11:08 +000057 freebsd/ioctlent.sh \
58 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
Roland McGrath2746edd2002-12-30 09:13:08 +000059 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
60 freebsd/i386/signalent.h \
61 freebsd/i386/syscall.h freebsd/i386/syscallent.h \
Roland McGrath80964aa2002-12-30 01:11:08 +000062 sunos4/dummy.h sunos4/errnoent.h \
63 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
64 sunos4/syscall.h sunos4/syscallent.h \
65 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
Roland McGrathd97b2072002-12-30 10:45:58 +000066 svr4/signalent.h svr4/syscall.h svr4/syscallent.h
Roland McGrathbc44e402004-07-12 05:45:08 +000067
68if MAINTAINER_MODE
69if LINUX
70
71IOCTLDIR = /usr/include
72
73if I386
74ioctlent_h = linux/ioctlent.h
75else
76ioctlent_h = linux/$(ARCH)/ioctlent.h
77endif
78
79BUILT_SOURCES = $(ioctlent_h)
80
81$(srcdir)/$(ioctlent_h): ioctlsort
82 $(<D)/$(<F) > $@
83ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
84 $(LINK.c) -I. -o $@ $<
85ioctls.h: $(srcdir)/linux/ioctlent.sh
86 $(SHELL) $< $(IOCTLDIR)
87ioctldefs.h: ioctls.h ;
88
89endif
90endif