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
70 strace_SOURCES += unwind.c
71 strace_CPPFLAGS = $(AM_CPPFLAGS) $(libunwind_CPPFLAGS)
72 strace_LDFLAGS = $(libunwind_LDFLAGS)
73 strace_LDADD = $(libunwind_LIBS)
75 strace_CPPFLAGS = $(AM_CPPFLAGS)
78 noinst_HEADERS = defs.h
79 # Enable this to get link map generated
80 #strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
96 debian/source/format \
97 debian/strace-udeb.install \
99 debian/strace.examples \
100 debian/strace.install \
101 debian/strace.manpages \
102 debian/strace64.install \
103 debian/strace64.manpages \
107 linux/aarch64/errnoent1.h \
108 linux/aarch64/ioctlent.h.in \
109 linux/aarch64/ioctlent1.h \
110 linux/aarch64/signalent1.h \
111 linux/aarch64/syscallent.h \
112 linux/aarch64/syscallent1.h \
113 linux/alpha/errnoent.h \
114 linux/alpha/ioctlent.h.in \
115 linux/alpha/signalent.h \
116 linux/alpha/syscallent.h \
117 linux/arc/ioctlent.h.in \
118 linux/arc/syscallent.h \
119 linux/arm/ioctlent.h.in \
120 linux/arm/syscallent.h \
121 linux/avr32/ioctlent.h.in \
122 linux/avr32/syscallent.h \
123 linux/bfin/ioctlent.h.in \
124 linux/bfin/syscallent.h \
128 linux/hppa/errnoent.h \
129 linux/hppa/ioctlent.h.in \
130 linux/hppa/signalent.h \
131 linux/hppa/syscallent.h \
132 linux/i386/ioctlent.h.in \
133 linux/i386/syscallent.h \
134 linux/ia64/ioctlent.h.in \
135 linux/ia64/signalent.h \
136 linux/ia64/syscallent.h \
139 linux/ioctlent.h.in \
143 linux/m68k/ioctlent.h.in \
144 linux/m68k/syscallent.h \
145 linux/metag/ioctlent.h.in \
146 linux/metag/syscallent.h \
147 linux/microblaze/ioctlent.h.in \
148 linux/microblaze/syscallent.h \
149 linux/mips/errnoent.h \
150 linux/mips/ioctlent.h.in \
151 linux/mips/ioctlent.sh \
152 linux/mips/signalent.h \
153 linux/mips/syscallent-compat.h \
154 linux/mips/syscallent-n32.h \
155 linux/mips/syscallent-n64.h \
156 linux/mips/syscallent-o32.h \
157 linux/mips/syscallent.h \
159 linux/or1k/ioctlent.h.in \
160 linux/or1k/syscallent.h \
161 linux/personality.h \
162 linux/powerpc/errnoent1.h \
163 linux/powerpc/ioctlent.h.in \
164 linux/powerpc/ioctlent1.h \
165 linux/powerpc/signalent1.h \
166 linux/powerpc/syscallent.h \
167 linux/powerpc/syscallent1.h \
170 linux/s390/ioctlent.h.in \
171 linux/s390/syscallent.h \
172 linux/s390x/ioctlent.h.in \
173 linux/s390x/syscallent.h \
174 linux/sh/ioctlent.h.in \
175 linux/sh/syscallent.h \
176 linux/sh64/ioctlent.h.in \
177 linux/sh64/syscallent.h \
180 linux/sparc/dummy2.h \
181 linux/sparc/errnoent.h \
182 linux/sparc/errnoent1.h \
184 linux/sparc/ioctlent.h.in \
185 linux/sparc/ioctlent1.h \
186 linux/sparc/signalent.h \
187 linux/sparc/signalent1.h \
188 linux/sparc/syscall1.h \
189 linux/sparc/syscallent.h \
190 linux/sparc/syscallent1.h \
191 linux/sparc64/dummy2.h \
192 linux/sparc64/errnoent.h \
193 linux/sparc64/errnoent1.h \
194 linux/sparc64/errnoent2.h \
195 linux/sparc64/ioctlent.h.in \
196 linux/sparc64/ioctlent1.h \
197 linux/sparc64/ioctlent2.h \
198 linux/sparc64/signalent.h \
199 linux/sparc64/signalent1.h \
200 linux/sparc64/signalent2.h \
201 linux/sparc64/syscall1.h \
202 linux/sparc64/syscallent.h \
203 linux/sparc64/syscallent1.h \
204 linux/sparc64/syscallent2.h \
207 linux/tile/errnoent1.h \
208 linux/tile/ioctlent.h.in \
209 linux/tile/ioctlent1.h \
210 linux/tile/signalent1.h \
211 linux/tile/syscallent.h \
212 linux/tile/syscallent1.h \
214 linux/x32/errnoent.h \
215 linux/x32/errnoent1.h \
216 linux/x32/ioctlent.h.in \
217 linux/x32/ioctlent1.h \
218 linux/x32/signalent.h \
219 linux/x32/signalent1.h \
220 linux/x32/syscallent.h \
221 linux/x32/syscallent1.h \
222 linux/x86_64/errnoent1.h \
223 linux/x86_64/errnoent2.h \
224 linux/x86_64/gentab.pl \
225 linux/x86_64/ioctlent.h.in \
226 linux/x86_64/ioctlent1.h \
227 linux/x86_64/ioctlent2.h \
228 linux/x86_64/signalent1.h \
229 linux/x86_64/signalent2.h \
230 linux/x86_64/syscallent.h \
231 linux/x86_64/syscallent1.h \
232 linux/x86_64/syscallent2.h \
233 linux/xtensa/ioctlent.h.in \
234 linux/xtensa/syscallent.h \
240 $(XLAT_INPUT_FILES) \
241 $(XLAT_HEADER_FILES) \
247 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
249 BUILT_SOURCES = .version
252 $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
255 $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
257 today = $(shell date +%Y-%m-%d)
258 version_regexp = $(subst .,\.,$(VERSION))
259 news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
262 $(AM_V_GEN)if head -1 $< | \
263 grep -x $(news_check_regexp) >/dev/null; then \
266 echo >&2 '$<: check failed'; \
270 ioctlent_h = $(builddir)/$(OS)/ioctlent.h
271 BUILT_SOURCES += $(ioctlent_h)
272 CLEANFILES = $(ioctlent_h)
273 ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in
274 $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
275 $(MKDIR_P) $(builddir)/$(OS)
276 cat $(ioctlent_h_deps) | \
277 $(COMPILE) -E -P - | \
278 sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \
279 LC_ALL=C sort -u -k2,2 -k1,1 > $@
283 gen_changelog_start_date = 2009-07-08 20:00
284 $(srcdir)/ChangeLog: $(srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
288 ./gitlog-to-changelog --append-dot \
289 --since='$(gen_changelog_start_date)'; \
290 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
295 $(srcdir)/CREDITS: $(srcdir)/CREDITS.in $(srcdir)/.mailmap \
296 $(srcdir)/Makefile.in $(srcdir)/.version
300 sed '/^##/,$$d' CREDITS.in; \
301 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
302 git log --pretty=format:'%aN %aE'; \
303 } | LC_ALL=C sort -u \
304 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
305 ) > $@-t && mv $@-t $@
307 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
309 INCLUDEDIR = /usr/include
310 KERNEL_RELEASE = $(shell uname -r)
311 # Candidates for the kernel headers tree.
313 /lib/modules/$(KERNEL_RELEASE)/build/include \
314 /usr/src/linux-$(KERNEL_RELEASE)/include \
316 IOCTLDIR = $(shell find $(KERNEL_INCLUDE) -maxdepth 0 -type d -print -quit 2>/dev/null)
317 IOCTLASM = $(INCLUDEDIR)/asm
319 noinst_PROGRAMS = ioctlsort
320 ioctlsort_SOURCES = ioctlsort.c
321 nodist_ioctlsort_SOURCES = ioctls.h ioctldefs.h
322 CLEANFILES += $(nodist_ioctlsort_SOURCES)
323 ioctlsort.$(OBJEXT): $(nodist_ioctlsort_SOURCES)
324 ioctls.h: $(srcdir)/linux/ioctlent.sh
325 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
326 ioctldefs.h: ioctls.h ;
328 ioctlent_h_in = linux/ioctlent.h.in
329 BUILT_SOURCES += $(ioctlent_h_in)
330 $(srcdir)/$(ioctlent_h_in): ioctlsort