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
76 strace_SOURCES += unwind.c
77 strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
78 strace_LDFLAGS = $(libunwind_LDFLAGS)
79 strace_LDADD = $(libunwind_LIBS)
81 strace_CPPFLAGS = $(AM_CPPFLAGS)
84 noinst_HEADERS = defs.h
85 # Enable this to get link map generated
86 #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
102 debian/source/format \
103 debian/strace-udeb.install \
105 debian/strace.examples \
106 debian/strace.install \
107 debian/strace.manpages \
108 debian/strace64.install \
109 debian/strace64.manpages \
113 linux/aarch64/errnoent1.h \
114 linux/aarch64/ioctlent.h.in \
115 linux/aarch64/ioctlent1.h \
116 linux/aarch64/signalent1.h \
117 linux/aarch64/syscallent.h \
118 linux/aarch64/syscallent1.h \
119 linux/alpha/errnoent.h \
120 linux/alpha/ioctlent.h.in \
121 linux/alpha/signalent.h \
122 linux/alpha/syscallent.h \
123 linux/arc/ioctlent.h.in \
124 linux/arc/syscallent.h \
125 linux/arm/ioctlent.h.in \
126 linux/arm/syscallent.h \
127 linux/avr32/ioctlent.h.in \
128 linux/avr32/syscallent.h \
129 linux/bfin/ioctlent.h.in \
130 linux/bfin/syscallent.h \
134 linux/hppa/errnoent.h \
135 linux/hppa/ioctlent.h.in \
136 linux/hppa/signalent.h \
137 linux/hppa/syscallent.h \
138 linux/i386/ioctlent.h.in \
139 linux/i386/syscallent.h \
140 linux/ia64/ioctlent.h.in \
141 linux/ia64/signalent.h \
142 linux/ia64/syscallent.h \
145 linux/ioctlent.h.in \
149 linux/m68k/ioctlent.h.in \
150 linux/m68k/syscallent.h \
151 linux/metag/ioctlent.h.in \
152 linux/metag/syscallent.h \
153 linux/microblaze/ioctlent.h.in \
154 linux/microblaze/syscallent.h \
155 linux/mips/errnoent.h \
156 linux/mips/ioctlent.h.in \
157 linux/mips/ioctlent.sh \
158 linux/mips/signalent.h \
159 linux/mips/syscallent-compat.h \
160 linux/mips/syscallent-n32.h \
161 linux/mips/syscallent-n64.h \
162 linux/mips/syscallent-o32.h \
163 linux/mips/syscallent.h \
165 linux/or1k/ioctlent.h.in \
166 linux/or1k/syscallent.h \
167 linux/personality.h \
168 linux/powerpc/errnoent1.h \
169 linux/powerpc/ioctlent.h.in \
170 linux/powerpc/ioctlent1.h \
171 linux/powerpc/signalent1.h \
172 linux/powerpc/syscallent.h \
173 linux/powerpc/syscallent1.h \
176 linux/s390/ioctlent.h.in \
177 linux/s390/syscallent.h \
178 linux/s390x/ioctlent.h.in \
179 linux/s390x/syscallent.h \
180 linux/sh/ioctlent.h.in \
181 linux/sh/syscallent.h \
182 linux/sh64/ioctlent.h.in \
183 linux/sh64/syscallent.h \
186 linux/sparc/dummy2.h \
187 linux/sparc/errnoent.h \
188 linux/sparc/errnoent1.h \
190 linux/sparc/ioctlent.h.in \
191 linux/sparc/ioctlent1.h \
192 linux/sparc/signalent.h \
193 linux/sparc/signalent1.h \
194 linux/sparc/syscall1.h \
195 linux/sparc/syscallent.h \
196 linux/sparc/syscallent1.h \
197 linux/sparc64/dummy2.h \
198 linux/sparc64/errnoent.h \
199 linux/sparc64/errnoent1.h \
200 linux/sparc64/errnoent2.h \
201 linux/sparc64/ioctlent.h.in \
202 linux/sparc64/ioctlent1.h \
203 linux/sparc64/ioctlent2.h \
204 linux/sparc64/signalent.h \
205 linux/sparc64/signalent1.h \
206 linux/sparc64/signalent2.h \
207 linux/sparc64/syscall1.h \
208 linux/sparc64/syscallent.h \
209 linux/sparc64/syscallent1.h \
210 linux/sparc64/syscallent2.h \
213 linux/tile/errnoent1.h \
214 linux/tile/ioctlent.h.in \
215 linux/tile/ioctlent1.h \
216 linux/tile/signalent1.h \
217 linux/tile/syscallent.h \
218 linux/tile/syscallent1.h \
220 linux/x32/errnoent.h \
221 linux/x32/errnoent1.h \
222 linux/x32/ioctlent.h.in \
223 linux/x32/ioctlent1.h \
224 linux/x32/signalent.h \
225 linux/x32/signalent1.h \
226 linux/x32/syscallent.h \
227 linux/x32/syscallent1.h \
228 linux/x86_64/errnoent1.h \
229 linux/x86_64/errnoent2.h \
230 linux/x86_64/gentab.pl \
231 linux/x86_64/ioctlent.h.in \
232 linux/x86_64/ioctlent1.h \
233 linux/x86_64/ioctlent2.h \
234 linux/x86_64/signalent1.h \
235 linux/x86_64/signalent2.h \
236 linux/x86_64/syscallent.h \
237 linux/x86_64/syscallent1.h \
238 linux/x86_64/syscallent2.h \
239 linux/xtensa/ioctlent.h.in \
240 linux/xtensa/syscallent.h \
246 $(XLAT_INPUT_FILES) \
247 $(XLAT_HEADER_FILES) \
253 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
255 BUILT_SOURCES = .version
258 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
261 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
263 today = $(shell date +%Y-%m-%d)
264 version_regexp = $(subst .,\.,$(VERSION))
265 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
268 $(AM_V_GEN)if head -1 $< | \
269 grep -x $(news_check_regexp) >/dev/null; then \
272 echo >&2 '$<: check failed'; \
276 ioctlent_h = $(builddir)/$(OS)/ioctlent.h
277 BUILT_SOURCES += $(ioctlent_h)
278 CLEANFILES = $(ioctlent_h)
279 ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in
280 $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
281 $(MKDIR_P) $(builddir)/$(OS)
282 cat $(ioctlent_h_deps) | \
283 $(COMPILE) -E -P - | \
284 sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \
285 LC_ALL=C sort -u -k2,2 -k1,1 > $@
289 gen_changelog_start_date = 2009-07-08 20:00
290 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
294 ./gitlog-to-changelog --append-dot \
295 --since='$(gen_changelog_start_date)'; \
296 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
301 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
302 $(srcdir)/Makefile.in $(srcdir)/.version
306 sed '/^##/,$$d' CREDITS.in; \
307 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
308 git log --pretty=format:'%aN %aE'; \
309 } | LC_ALL=C sort -u \
310 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
311 ) > $@-t && mv $@-t $@
313 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
315 INCLUDEDIR = /usr/include
316 KERNEL_RELEASE = $(shell uname -r)
317 # Candidates for the kernel headers tree.
319 /lib/modules/$(KERNEL_RELEASE)/build/include \
320 /usr/src/linux-$(KERNEL_RELEASE)/include \
322 IOCTLDIR = $(shell find $(KERNEL_INCLUDE) -maxdepth 0 -type d -print -quit 2>/dev/null)
323 IOCTLASM = $(INCLUDEDIR)/asm
325 noinst_PROGRAMS = ioctlsort
326 ioctlsort_SOURCES = ioctlsort.c
327 nodist_ioctlsort_SOURCES = ioctls.h ioctldefs.h
328 CLEANFILES += $(nodist_ioctlsort_SOURCES)
329 ioctlsort.$(OBJEXT): $(nodist_ioctlsort_SOURCES)
330 ioctls.h: $(srcdir)/linux/ioctlent.sh
331 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
332 ioctldefs.h: ioctls.h ;
334 ioctlent_h_in = linux/ioctlent.h.in
335 BUILT_SOURCES += $(ioctlent_h_in)
336 $(srcdir)/$(ioctlent_h_in): ioctlsort