1 # Automake input for strace.
7 bin_SCRIPTS = strace-graph strace-log-merge
10 # ARCH is `i386', `m68k', `sparc', etc.
13 ACLOCAL_AMFLAGS = -I m4
14 AM_CFLAGS = $(WARN_CFLAGS)
15 AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS) -I$(builddir)/$(OS)
17 strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
18 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
19 resource.c signal.c sock.c system.c term.c time.c \
20 scsi.c stream.c block.c pathtrace.c mtd.c
21 noinst_HEADERS = defs.h
23 EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
24 debian/changelog debian/compat debian/control debian/copyright \
25 debian/rules debian/source/format debian/watch \
26 debian/strace64.install debian/strace64.manpages \
27 debian/strace.docs debian/strace.examples debian/strace.install \
28 debian/strace.manpages debian/strace-udeb.install \
30 strace-graph strace-log-merge \
31 ChangeLog ChangeLog-CVS COPYRIGHT CREDITS \
32 README-linux README-linux-ptrace \
33 linux/ioctlsort.c linux/ioctlent.sh \
34 linux/ioctlent.h.in linux/errnoent.h linux/signalent.h \
35 linux/syscall.h linux/dummy.h linux/mtd-abi.h \
36 linux/i386/ioctlent.h.in linux/i386/syscallent.h \
37 linux/alpha/errnoent.h linux/alpha/ioctlent.h.in \
38 linux/alpha/signalent.h linux/alpha/syscallent.h \
39 linux/arm/ioctlent.h.in linux/arm/syscallent.h \
40 linux/arm/syscallent1.h \
41 linux/arm/signalent1.h linux/arm/ioctlent1.h \
42 linux/arm/errnoent1.h \
43 linux/avr32/ioctlent.h.in linux/avr32/syscallent.h \
44 linux/bfin/ioctlent.h.in linux/bfin/syscallent.h \
45 linux/hppa/errnoent.h linux/hppa/ioctlent.h.in \
46 linux/hppa/signalent.h linux/hppa/syscallent.h \
47 linux/ia64/ioctlent.h.in \
48 linux/ia64/signalent.h \
49 linux/ia64/syscallent.h \
50 linux/m68k/ioctlent.h.in linux/m68k/syscallent.h \
51 linux/microblaze/ioctlent.h.in linux/microblaze/syscallent.h \
52 linux/mips/ioctlent.sh linux/mips/errnoent.h \
53 linux/mips/ioctlent.h.in linux/mips/signalent.h \
54 linux/mips/syscallent.h \
55 linux/powerpc/ioctlent.h.in linux/powerpc/ioctlent1.h \
56 linux/powerpc/syscallent.h linux/powerpc/syscallent1.h \
57 linux/powerpc/errnoent1.h linux/powerpc/signalent1.h \
58 linux/s390/ioctlent.h.in \
59 linux/s390/syscallent.h \
60 linux/s390x/ioctlent.h.in \
61 linux/s390x/syscallent.h \
62 linux/sh/syscallent.h \
63 linux/sh/ioctlent.h.in \
64 linux/sh64/ioctlent.h.in linux/sh64/syscallent.h \
65 linux/sparc/dummy2.h \
66 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
67 linux/sparc/ioctlent.h.in linux/sparc/ioctlent1.h \
68 linux/sparc/signalent.h linux/sparc/signalent1.h \
69 linux/sparc/syscall1.h \
70 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
72 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
73 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
74 linux/sparc64/ioctlent.h.in linux/sparc64/ioctlent1.h \
75 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
76 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
77 linux/sparc64/syscall1.h \
78 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
79 linux/sparc64/syscallent2.h \
80 linux/tile/ioctlent.h.in linux/tile/syscallent.h \
81 linux/x32/errnoent.h linux/x32/ioctlent.h.in \
82 linux/x32/signalent.h linux/x32/syscallent.h \
83 linux/x86_64/ioctlent.h.in linux/x86_64/syscallent.h \
84 linux/x86_64/gentab.pl \
85 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
86 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
87 linux/x86_64/errnoent2.h linux/x86_64/ioctlent2.h \
88 linux/x86_64/signalent2.h linux/x86_64/syscallent2.h \
93 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
99 gen_changelog_start_date = 2009-07-08 20:00
100 $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
101 $(top_srcdir)/.git/refs/heads/*
104 ./gitlog-to-changelog --append-dot \
105 --since='$(gen_changelog_start_date)'; \
106 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
111 $(srcdir)/CREDITS: $(top_srcdir)/CREDITS.in $(top_srcdir)/.mailmap \
112 $(srcdir)/Makefile.in $(top_srcdir)/.git/refs/heads/*
116 sed '/^##/,$$d' CREDITS.in; \
117 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
118 git log --pretty=format:'%aN %aE'; \
119 } | LC_ALL=C sort -u \
120 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
121 } > $@-t && mv $@-t $@
123 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
125 IOCTLDIR = /usr/include
128 ioctlent_h_in = linux/ioctlent.h.in
130 BUILT_SOURCES += $(ioctlent_h_in)
132 $(srcdir)/$(ioctlent_h_in): ioctlsort
134 ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
135 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
137 ioctls.h: $(srcdir)/linux/ioctlent.sh
138 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
139 ioctldefs.h: ioctls.h ;
143 ioctlent_h = $(builddir)/$(OS)/ioctlent.h
144 BUILT_SOURCES += $(ioctlent_h)
145 CLEANFILES = $(ioctlent_h)
146 ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in
147 $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
148 $(MKDIR_P) $(builddir)/$(OS)
149 cat $(ioctlent_h_deps) | \
150 $(COMPILE) -E -P - | \
151 LC_ALL=C sort -u -k3,3 -k2,2 > $@