2002-12-30 03:51:30 +03:00
# Automake input for strace.
bin_PROGRAMS = strace
man_MANS = strace.1
2002-12-30 13:45:58 +03:00
bin_SCRIPTS = strace-graph
2002-12-30 03:51:30 +03:00
# OS is one of `linux', `sunos4', `svr4', or `freebsd'.
OS = @opsys@
# ARCH is `i386', `m68k', `sparc', etc.
ARCH = @arch@
2003-01-09 09:53:25 +03:00
AM_CFLAGS = $( WARNFLAGS)
2010-01-25 15:21:07 +03:00
INCLUDES = -I$( srcdir) /$( OS) /$( ARCH) -I$( srcdir) /$( OS)
2002-12-30 03:51:30 +03:00
2006-12-21 Dmitry V. Levin <ldv@altlinux.org>
Move counts code to separate file.
* count.c: New file.
* Makefile.am (strace_SOURCES): Add count.c.
* syscall.c (call_counts, countv, counts, shortest, time_cmp,
syscall_cmp, count_cmp, sortfun, overhead, set_sortby,
set_overhead, call_summary_pers, call_summary): Move to count.c
* count.c (count_syscall): New function.
* defs.h (count_syscall): Declare it.
* syscall.c (trace_syscall): Use it.
2006-12-22 00:15:04 +03:00
strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
2006-10-16 04:26:47 +04:00
io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
2002-12-30 03:51:30 +03:00
resource.c signal.c sock.c system.c term.c time.c \
2007-06-30 15:37:09 +04:00
proc.c scsi.c stream.c
2002-12-30 12:13:08 +03:00
noinst_HEADERS = defs.h
2002-12-30 03:51:30 +03:00
2002-12-30 04:11:08 +03:00
EXTRA_DIST = $( man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
2009-02-20 19:00:41 +03:00
debian/changelog debian/control debian/copyright debian/rules \
2008-07-22 12:33:40 +04:00
debian/compat debian/strace64.install debian/strace64.manpages \
debian/strace.docs debian/strace.examples debian/strace.install \
debian/strace.manpages debian/strace-udeb.install \
2003-01-09 09:53:25 +03:00
strace.spec \
2009-10-07 04:41:02 +04:00
strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \
2009-07-08 02:33:41 +04:00
README-freebsd README-linux README-sunos4 README-svr4 \
2002-12-30 13:45:58 +03:00
linux/ioctlsort.c linux/ioctlent.sh \
2002-12-30 04:11:08 +03:00
linux/ioctlent.h linux/errnoent.h linux/signalent.h \
2010-04-07 14:17:24 +04:00
linux/syscall.h linux/dummy.h \
linux/i386/syscallent.h \
2002-12-30 12:13:08 +03:00
linux/alpha/errnoent.h linux/alpha/ioctlent.h \
2002-12-30 13:45:58 +03:00
linux/alpha/signalent.h linux/alpha/syscallent.h \
2008-08-01 05:15:24 +04:00
linux/arm/syscallent.h linux/arm/syscallent1.h \
linux/arm/signalent1.h linux/arm/ioctlent1.h \
linux/arm/errnoent1.h \
2009-02-27 23:32:52 +03:00
linux/avr32/syscallent.h \
2008-11-11 01:21:41 +03:00
linux/bfin/ioctlent.h linux/bfin/syscallent.h \
2002-12-30 13:45:58 +03:00
linux/hppa/errnoent.h linux/hppa/ioctlent.h \
linux/hppa/signalent.h linux/hppa/syscallent.h \
2009-02-20 18:51:51 +03:00
linux/ia64/syscallent.h \
2009-02-20 20:38:47 +03:00
linux/ia64/ioctlent.h \
2005-12-02 07:27:47 +03:00
linux/m68k/syscallent.h \
2010-07-06 16:21:07 +04:00
linux/microblaze/syscallent.h \
2009-02-20 19:00:41 +03:00
linux/mips/ioctlent.sh linux/mips/errnoent.h \
2002-12-30 12:13:08 +03:00
linux/mips/ioctlent.h linux/mips/signalent.h \
2002-12-30 13:45:58 +03:00
linux/mips/syscallent.h \
linux/powerpc/syscallent.h \
2009-02-20 19:00:41 +03:00
linux/powerpc/ioctlent.h \
2009-02-20 18:51:51 +03:00
linux/s390/ioctlent.h \
2009-02-20 20:38:47 +03:00
linux/s390/syscallent.h \
2009-02-20 18:51:51 +03:00
linux/s390x/ioctlent.h \
2009-02-20 20:38:47 +03:00
linux/s390x/syscallent.h \
2009-02-20 18:51:51 +03:00
linux/sh/syscallent.h \
2009-02-20 19:24:39 +03:00
linux/sh/ioctlent.h \
2004-07-12 11:27:23 +04:00
linux/sh64/syscallent.h \
2002-12-30 13:45:58 +03:00
linux/sparc/dummy2.h \
2002-12-30 12:13:08 +03:00
linux/sparc/errnoent.h linux/sparc/errnoent1.h \
linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \
linux/sparc/signalent.h linux/sparc/signalent1.h \
linux/sparc/syscall.h linux/sparc/syscall1.h \
linux/sparc/syscallent.h linux/sparc/syscallent1.h \
2002-12-30 13:45:58 +03:00
linux/sparc/gen.pl linux/sparc/syscall.h.2 \
2004-07-12 11:53:59 +04:00
linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \
linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
linux/sparc64/syscall.h linux/sparc64/syscall1.h \
linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
linux/sparc64/syscallent2.h \
2009-12-28 18:00:15 +03:00
linux/tile/syscallent.h \
2002-12-30 12:13:08 +03:00
linux/x86_64/syscallent.h linux/x86_64/gentab.pl \
2002-12-30 12:33:20 +03:00
linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
2002-12-30 04:11:08 +03:00
freebsd/ioctlent.sh \
freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
2002-12-30 12:13:08 +03:00
freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
freebsd/i386/signalent.h \
freebsd/i386/syscall.h freebsd/i386/syscallent.h \
2002-12-30 04:11:08 +03:00
sunos4/dummy.h sunos4/errnoent.h \
sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
sunos4/syscall.h sunos4/syscallent.h \
svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
2006-04-25 11:33:20 +04:00
svr4/signalent.h svr4/syscall.h svr4/syscallent.h \
xlate.el
2004-07-12 09:45:08 +04:00
2009-10-07 04:46:56 +04:00
.PHONY : srpm
srpm : dist -bzip 2
rpmbuild --define '%_srcrpmdir .' -ts $( distdir) .tar.bz2
2004-07-12 09:45:08 +04:00
i f M A I N T A I N E R _ M O D E
2009-10-07 04:41:02 +04:00
gen_changelog_start_date = 2009-07-08 20:00
$(srcdir)/ChangeLog : $( top_srcdir ) /gitlog -to -changelog $( srcdir ) /Makefile .in \
$( top_srcdir) /.git/refs/heads/*
@rm -f $@ .new
( cd $( top_srcdir) ; \
./gitlog-to-changelog --since= '$(gen_changelog_start_date)' ; \
echo; echo; echo 'See ChangeLog-CVS for older changes.' \
) > $@ .new
chmod 444 $@ .new
mv -f $@ .new $@
2009-10-10 02:10:09 +04:00
export TAR_OPTIONS = --owner= 0 --group= 0 --numeric-owner --mode= go-w,go+rX
2004-07-12 09:45:08 +04:00
i f L I N U X
IOCTLDIR = /usr/include
2004-07-12 10:11:03 +04:00
IOCTLASM = asm
2004-07-12 09:45:08 +04:00
i f I 3 8 6
ioctlent_h = linux/ioctlent.h
e l s e
ioctlent_h = linux/$( ARCH) /ioctlent.h
e n d i f
BUILT_SOURCES = $( ioctlent_h)
$(srcdir)/$(ioctlent_h) : ioctlsort
$( <D) /$( <F) > $@
ioctlsort : $( srcdir ) /linux /ioctlsort .c ioctls .h ioctldefs .h
2004-07-12 10:11:03 +04:00
$( filter-out -I%,$( LINK.c) ) -I. -I$( IOCTLDIR) $( filter -I%,$( LINK.c) ) \
-o $@ $<
2004-07-12 09:45:08 +04:00
ioctls.h : $( srcdir ) /linux /ioctlent .sh
2004-07-12 10:11:03 +04:00
$( SHELL) $< $( IOCTLDIR) $( IOCTLASM)
2004-07-12 09:45:08 +04:00
ioctldefs.h : ioctls .h ;
e n d i f
e n d i f