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