1 # Automake input for strace.
7 bin_SCRIPTS = strace-graph
9 # OS is one of `linux', `sunos4', `svr4', or `freebsd'.
11 # ARCH is `i386', `m68k', `sparc', etc.
14 ACLOCAL_AMFLAGS = -I m4
15 AM_CFLAGS = $(WARN_CFLAGS)
16 AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS)
18 strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
19 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
20 resource.c signal.c sock.c system.c term.c time.c \
21 proc.c scsi.c stream.c block.c
22 noinst_HEADERS = defs.h
24 EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
25 debian/changelog debian/compat debian/control debian/copyright \
26 debian/rules debian/source/format debian/watch \
27 debian/strace64.install debian/strace64.manpages \
28 debian/strace.docs debian/strace.examples debian/strace.install \
29 debian/strace.manpages debian/strace-udeb.install \
31 strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \
32 README-freebsd README-linux README-sunos4 README-svr4 \
33 linux/ioctlsort.c linux/ioctlent.sh \
34 linux/ioctlent.h linux/errnoent.h linux/signalent.h \
35 linux/syscall.h linux/dummy.h \
36 linux/i386/syscallent.h \
37 linux/alpha/errnoent.h linux/alpha/ioctlent.h \
38 linux/alpha/signalent.h linux/alpha/syscallent.h \
39 linux/arm/syscallent.h linux/arm/syscallent1.h \
40 linux/arm/signalent1.h linux/arm/ioctlent1.h \
41 linux/arm/errnoent1.h \
42 linux/avr32/syscallent.h \
43 linux/bfin/ioctlent.h linux/bfin/syscallent.h \
44 linux/hppa/errnoent.h linux/hppa/ioctlent.h \
45 linux/hppa/signalent.h linux/hppa/syscallent.h \
46 linux/ia64/ioctlent.h \
47 linux/ia64/signalent.h \
48 linux/ia64/syscallent.h \
49 linux/m68k/syscallent.h \
50 linux/microblaze/syscallent.h \
51 linux/mips/ioctlent.sh linux/mips/errnoent.h \
52 linux/mips/ioctlent.h linux/mips/signalent.h \
53 linux/mips/syscallent.h \
54 linux/powerpc/ioctlent.h linux/powerpc/ioctlent1.h \
55 linux/powerpc/syscallent.h linux/powerpc/syscallent1.h \
56 linux/powerpc/errnoent1.h linux/powerpc/signalent1.h \
57 linux/s390/ioctlent.h \
58 linux/s390/syscallent.h \
59 linux/s390x/ioctlent.h \
60 linux/s390x/syscallent.h \
61 linux/sh/syscallent.h \
63 linux/sh64/syscallent.h \
64 linux/sparc/dummy2.h \
65 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
66 linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \
67 linux/sparc/signalent.h linux/sparc/signalent1.h \
68 linux/sparc/syscall1.h \
69 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
71 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
72 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
73 linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \
74 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
75 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
76 linux/sparc64/syscall1.h \
77 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
78 linux/sparc64/syscallent2.h \
79 linux/tile/syscallent.h \
80 linux/x86_64/syscallent.h linux/x86_64/gentab.pl \
81 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
82 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
84 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
85 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
86 freebsd/i386/signalent.h \
87 freebsd/i386/syscall.h freebsd/i386/syscallent.h \
88 sunos4/dummy.h sunos4/errnoent.h \
89 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
90 sunos4/syscall.h sunos4/syscallent.h \
91 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
92 svr4/signalent.h svr4/syscall.h svr4/syscallent.h \
97 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
101 gen_changelog_start_date = 2009-07-08 20:00
102 $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
103 $(top_srcdir)/.git/refs/heads/*
106 ./gitlog-to-changelog --since='$(gen_changelog_start_date)'; \
107 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
112 $(srcdir)/CREDITS: $(top_srcdir)/CREDITS.in $(top_srcdir)/.mailmap \
113 $(srcdir)/Makefile.in
117 sed '/^##/,$$d' CREDITS.in; \
118 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
119 git log --pretty=format:'%aN %aE'; \
120 } | LC_ALL=C sort -u \
121 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
122 } > $@-t && mv $@-t $@
124 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
128 IOCTLDIR = /usr/include
132 ioctlent_h = linux/ioctlent.h
134 ioctlent_h = linux/$(ARCH)/ioctlent.h
137 BUILT_SOURCES = $(ioctlent_h)
139 $(srcdir)/$(ioctlent_h): ioctlsort
141 ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
142 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
144 ioctls.h: $(srcdir)/linux/ioctlent.sh
145 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
146 ioctldefs.h: ioctls.h ;