1 # Automake input for strace.
5 bin_SCRIPTS = strace-graph
7 # OS is one of `linux', `sunos4', `svr4', or `freebsd'.
9 # ARCH is `i386', `m68k', `sparc', etc.
12 AM_CFLAGS = $(WARNFLAGS)
13 INCLUDES = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS)
15 strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
16 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
17 resource.c signal.c sock.c system.c term.c time.c \
18 proc.c scsi.c stream.c
19 noinst_HEADERS = defs.h
21 EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
22 debian/changelog debian/control debian/copyright debian/rules \
23 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 \
27 strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \
28 README-freebsd README-linux README-sunos4 README-svr4 \
29 linux/ioctlsort.c linux/ioctlent.sh \
30 linux/ioctlent.h linux/errnoent.h linux/signalent.h \
31 linux/syscall.h linux/dummy.h \
32 linux/i386/syscallent.h \
33 linux/alpha/errnoent.h linux/alpha/ioctlent.h \
34 linux/alpha/signalent.h linux/alpha/syscallent.h \
35 linux/arm/syscallent.h linux/arm/syscallent1.h \
36 linux/arm/signalent1.h linux/arm/ioctlent1.h \
37 linux/arm/errnoent1.h \
38 linux/avr32/syscallent.h \
39 linux/bfin/ioctlent.h linux/bfin/syscallent.h \
40 linux/hppa/errnoent.h linux/hppa/ioctlent.h \
41 linux/hppa/signalent.h linux/hppa/syscallent.h \
42 linux/ia64/syscallent.h \
43 linux/ia64/ioctlent.h \
44 linux/m68k/syscallent.h \
45 linux/microblaze/syscallent.h \
46 linux/mips/ioctlent.sh linux/mips/errnoent.h \
47 linux/mips/ioctlent.h linux/mips/signalent.h \
48 linux/mips/syscallent.h \
49 linux/powerpc/syscallent.h \
50 linux/powerpc/ioctlent.h \
51 linux/s390/ioctlent.h \
52 linux/s390/syscallent.h \
53 linux/s390x/ioctlent.h \
54 linux/s390x/syscallent.h \
55 linux/sh/syscallent.h \
57 linux/sh64/syscallent.h \
58 linux/sparc/dummy2.h \
59 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
60 linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \
61 linux/sparc/signalent.h linux/sparc/signalent1.h \
62 linux/sparc/syscall.h linux/sparc/syscall1.h \
63 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
64 linux/sparc/gen.pl linux/sparc/syscall.h.2 \
65 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
66 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
67 linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \
68 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
69 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
70 linux/sparc64/syscall.h linux/sparc64/syscall1.h \
71 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
72 linux/sparc64/syscallent2.h \
73 linux/tile/syscallent.h \
74 linux/x86_64/syscallent.h linux/x86_64/gentab.pl \
75 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
76 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
78 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
79 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
80 freebsd/i386/signalent.h \
81 freebsd/i386/syscall.h freebsd/i386/syscallent.h \
82 sunos4/dummy.h sunos4/errnoent.h \
83 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
84 sunos4/syscall.h sunos4/syscallent.h \
85 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
86 svr4/signalent.h svr4/syscall.h svr4/syscallent.h \
91 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.bz2
95 gen_changelog_start_date = 2009-07-08 20:00
96 $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
97 $(top_srcdir)/.git/refs/heads/*
100 ./gitlog-to-changelog --since='$(gen_changelog_start_date)'; \
101 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
106 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
110 IOCTLDIR = /usr/include
114 ioctlent_h = linux/ioctlent.h
116 ioctlent_h = linux/$(ARCH)/ioctlent.h
119 BUILT_SOURCES = $(ioctlent_h)
121 $(srcdir)/$(ioctlent_h): ioctlsort
123 ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
124 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
126 ioctls.h: $(srcdir)/linux/ioctlent.sh
127 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
128 ioctldefs.h: ioctls.h ;