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 include xlat/Makemodule.am
66 strace_SOURCES += unwind.c
67 strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
68 strace_LDFLAGS = $(libunwind_LDFLAGS)
69 strace_LDADD = $(libunwind_LIBS)
71 strace_CPPFLAGS = $(AM_CPPFLAGS)
74 noinst_HEADERS = defs.h
75 # Enable this to get link map generated
76 #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
92 debian/source/format \
93 debian/strace-udeb.install \
95 debian/strace.examples \
96 debian/strace.install \
97 debian/strace.manpages \
98 debian/strace64.install \
99 debian/strace64.manpages \
103 linux/aarch64/errnoent1.h \
104 linux/aarch64/ioctlent.h.in \
105 linux/aarch64/ioctlent1.h \
106 linux/aarch64/signalent1.h \
107 linux/aarch64/syscallent.h \
108 linux/aarch64/syscallent1.h \
109 linux/alpha/errnoent.h \
110 linux/alpha/ioctlent.h.in \
111 linux/alpha/signalent.h \
112 linux/alpha/syscallent.h \
113 linux/arc/ioctlent.h.in \
114 linux/arc/syscallent.h \
115 linux/arm/ioctlent.h.in \
116 linux/arm/syscallent.h \
117 linux/avr32/ioctlent.h.in \
118 linux/avr32/syscallent.h \
119 linux/bfin/ioctlent.h.in \
120 linux/bfin/syscallent.h \
124 linux/hppa/errnoent.h \
125 linux/hppa/ioctlent.h.in \
126 linux/hppa/signalent.h \
127 linux/hppa/syscallent.h \
128 linux/i386/ioctlent.h.in \
129 linux/i386/syscallent.h \
130 linux/ia64/ioctlent.h.in \
131 linux/ia64/signalent.h \
132 linux/ia64/syscallent.h \
135 linux/ioctlent.h.in \
139 linux/m68k/ioctlent.h.in \
140 linux/m68k/syscallent.h \
141 linux/metag/ioctlent.h.in \
142 linux/metag/syscallent.h \
143 linux/microblaze/ioctlent.h.in \
144 linux/microblaze/syscallent.h \
145 linux/mips/errnoent.h \
146 linux/mips/ioctlent.h.in \
147 linux/mips/ioctlent.sh \
148 linux/mips/signalent.h \
149 linux/mips/syscallent-compat.h \
150 linux/mips/syscallent-n32.h \
151 linux/mips/syscallent-n64.h \
152 linux/mips/syscallent-o32.h \
153 linux/mips/syscallent.h \
155 linux/or1k/ioctlent.h.in \
156 linux/or1k/syscallent.h \
157 linux/personality.h \
158 linux/powerpc/errnoent1.h \
159 linux/powerpc/ioctlent.h.in \
160 linux/powerpc/ioctlent1.h \
161 linux/powerpc/signalent1.h \
162 linux/powerpc/syscallent.h \
163 linux/powerpc/syscallent1.h \
166 linux/s390/ioctlent.h.in \
167 linux/s390/syscallent.h \
168 linux/s390x/ioctlent.h.in \
169 linux/s390x/syscallent.h \
170 linux/sh/ioctlent.h.in \
171 linux/sh/syscallent.h \
172 linux/sh64/ioctlent.h.in \
173 linux/sh64/syscallent.h \
176 linux/sparc/dummy2.h \
177 linux/sparc/errnoent.h \
178 linux/sparc/errnoent1.h \
180 linux/sparc/ioctlent.h.in \
181 linux/sparc/ioctlent1.h \
182 linux/sparc/signalent.h \
183 linux/sparc/signalent1.h \
184 linux/sparc/syscall1.h \
185 linux/sparc/syscallent.h \
186 linux/sparc/syscallent1.h \
187 linux/sparc64/dummy2.h \
188 linux/sparc64/errnoent.h \
189 linux/sparc64/errnoent1.h \
190 linux/sparc64/errnoent2.h \
191 linux/sparc64/ioctlent.h.in \
192 linux/sparc64/ioctlent1.h \
193 linux/sparc64/ioctlent2.h \
194 linux/sparc64/signalent.h \
195 linux/sparc64/signalent1.h \
196 linux/sparc64/signalent2.h \
197 linux/sparc64/syscall1.h \
198 linux/sparc64/syscallent.h \
199 linux/sparc64/syscallent1.h \
200 linux/sparc64/syscallent2.h \
203 linux/tile/errnoent1.h \
204 linux/tile/ioctlent.h.in \
205 linux/tile/ioctlent1.h \
206 linux/tile/signalent1.h \
207 linux/tile/syscallent.h \
208 linux/tile/syscallent1.h \
210 linux/x32/errnoent.h \
211 linux/x32/errnoent1.h \
212 linux/x32/ioctlent.h.in \
213 linux/x32/ioctlent1.h \
214 linux/x32/signalent.h \
215 linux/x32/signalent1.h \
216 linux/x32/syscallent.h \
217 linux/x32/syscallent1.h \
218 linux/x86_64/errnoent1.h \
219 linux/x86_64/errnoent2.h \
220 linux/x86_64/gentab.pl \
221 linux/x86_64/ioctlent.h.in \
222 linux/x86_64/ioctlent1.h \
223 linux/x86_64/ioctlent2.h \
224 linux/x86_64/signalent1.h \
225 linux/x86_64/signalent2.h \
226 linux/x86_64/syscallent.h \
227 linux/x86_64/syscallent1.h \
228 linux/x86_64/syscallent2.h \
229 linux/xtensa/ioctlent.h.in \
230 linux/xtensa/syscallent.h \
236 $(XLAT_INPUT_FILES) \
237 $(XLAT_HEADER_FILES) \
243 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
245 BUILT_SOURCES = .version
248 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
251 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
253 today = $(shell date +%Y-%m-%d)
254 version_regexp = $(subst .,\.,$(VERSION))
255 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
258 $(AM_V_GEN)if head -1 $< | \
259 grep -x $(news_check_regexp) >/dev/null; then \
262 echo >&2 '$<: check failed'; \
266 ioctlent_h = $(builddir)/$(OS)/ioctlent.h
267 BUILT_SOURCES += $(ioctlent_h)
268 CLEANFILES = $(ioctlent_h)
269 ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in
270 $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
271 $(MKDIR_P) $(builddir)/$(OS)
272 cat $(ioctlent_h_deps) | \
273 $(COMPILE) -E -P - | \
274 sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \
275 LC_ALL=C sort -u -k2,2 -k1,1 > $@
279 gen_changelog_start_date = 2009-07-08 20:00
280 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
284 ./gitlog-to-changelog --append-dot \
285 --since='$(gen_changelog_start_date)'; \
286 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
291 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
292 $(srcdir)/Makefile.in $(srcdir)/.version
296 sed '/^##/,$$d' CREDITS.in; \
297 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
298 git log --pretty=format:'%aN %aE'; \
299 } | LC_ALL=C sort -u \
300 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
301 ) > $@-t && mv $@-t $@
303 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
305 INCLUDEDIR = /usr/include
306 KERNEL_RELEASE = $(shell uname -r)
307 # Candidates for the kernel headers tree.
309 /lib/modules/$(KERNEL_RELEASE)/build/include \
310 /usr/src/linux-$(KERNEL_RELEASE)/include \
312 IOCTLDIR = $(shell find $(KERNEL_INCLUDE) -maxdepth 0 -type d -print -quit 2>/dev/null)
313 IOCTLASM = $(INCLUDEDIR)/asm
315 noinst_PROGRAMS = ioctlsort
316 ioctlsort_SOURCES = ioctlsort.c
317 nodist_ioctlsort_SOURCES = ioctls.h ioctldefs.h
318 CLEANFILES += $(nodist_ioctlsort_SOURCES)
319 ioctlsort.$(OBJEXT): $(nodist_ioctlsort_SOURCES)
320 ioctls.h: $(srcdir)/linux/ioctlent.sh
321 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
322 ioctldefs.h: ioctls.h ;
324 ioctlent_h_in = linux/ioctlent.h.in
325 BUILT_SOURCES += $(ioctlent_h_in)
326 $(srcdir)/$(ioctlent_h_in): ioctlsort