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