1 # Automake input for strace.
7 bin_SCRIPTS = strace-graph
9 # OS is one of `linux', `sunos4', `svr4', or `freebsd'.
11 # ARCH is `i386', `m68k', `sparc', etc.
14 ACLOCAL_AMFLAGS = -I m4
15 AM_CFLAGS = $(WARN_CFLAGS)
16 AM_CPPFLAGS = -I$(srcdir)/$(OS)/$(ARCH) -I$(srcdir)/$(OS) -I$(builddir)/$(OS)
18 strace_SOURCES = strace.c syscall.c count.c util.c desc.c file.c ipc.c \
19 io.c ioctl.c mem.c net.c process.c bjm.c quota.c \
20 resource.c signal.c sock.c system.c term.c time.c \
21 proc.c scsi.c stream.c block.c pathtrace.c
22 noinst_HEADERS = defs.h
24 EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
25 debian/changelog debian/compat debian/control debian/copyright \
26 debian/rules debian/source/format debian/watch \
27 debian/strace64.install debian/strace64.manpages \
28 debian/strace.docs debian/strace.examples debian/strace.install \
29 debian/strace.manpages debian/strace-udeb.install \
31 strace-graph ChangeLog ChangeLog-CVS COPYRIGHT CREDITS PORTING \
32 README-freebsd README-linux README-sunos4 README-svr4 \
33 linux/ioctlsort.c linux/ioctlent.sh \
34 linux/ioctlent.h.in linux/errnoent.h linux/signalent.h \
35 linux/syscall.h linux/dummy.h \
36 linux/i386/ioctlent.h.in linux/i386/syscallent.h \
37 linux/alpha/errnoent.h linux/alpha/ioctlent.h.in \
38 linux/alpha/signalent.h linux/alpha/syscallent.h \
39 linux/arm/ioctlent.h.in linux/arm/syscallent.h \
40 linux/arm/syscallent1.h \
41 linux/arm/signalent1.h linux/arm/ioctlent1.h \
42 linux/arm/errnoent1.h \
43 linux/avr32/ioctlent.h.in linux/avr32/syscallent.h \
44 linux/bfin/ioctlent.h.in linux/bfin/syscallent.h \
45 linux/hppa/errnoent.h linux/hppa/ioctlent.h.in \
46 linux/hppa/signalent.h linux/hppa/syscallent.h \
47 linux/ia64/ioctlent.h.in \
48 linux/ia64/signalent.h \
49 linux/ia64/syscallent.h \
50 linux/m68k/ioctlent.h.in linux/m68k/syscallent.h \
51 linux/microblaze/ioctlent.h.in linux/microblaze/syscallent.h \
52 linux/mips/ioctlent.sh linux/mips/errnoent.h \
53 linux/mips/ioctlent.h.in linux/mips/signalent.h \
54 linux/mips/syscallent.h \
55 linux/powerpc/ioctlent.h.in linux/powerpc/ioctlent1.h \
56 linux/powerpc/syscallent.h linux/powerpc/syscallent1.h \
57 linux/powerpc/errnoent1.h linux/powerpc/signalent1.h \
58 linux/s390/ioctlent.h.in \
59 linux/s390/syscallent.h \
60 linux/s390x/ioctlent.h.in \
61 linux/s390x/syscallent.h \
62 linux/sh/syscallent.h \
63 linux/sh/ioctlent.h.in \
64 linux/sh64/ioctlent.h.in linux/sh64/syscallent.h \
65 linux/sparc/dummy2.h \
66 linux/sparc/errnoent.h linux/sparc/errnoent1.h \
67 linux/sparc/ioctlent.h.in linux/sparc/ioctlent1.h \
68 linux/sparc/signalent.h linux/sparc/signalent1.h \
69 linux/sparc/syscall1.h \
70 linux/sparc/syscallent.h linux/sparc/syscallent1.h \
72 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \
73 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \
74 linux/sparc64/ioctlent.h.in linux/sparc64/ioctlent1.h \
75 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \
76 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \
77 linux/sparc64/syscall1.h \
78 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \
79 linux/sparc64/syscallent2.h \
80 linux/tile/ioctlent.h.in linux/tile/syscallent.h \
81 linux/x86_64/ioctlent.h.in linux/x86_64/syscallent.h \
82 linux/x86_64/gentab.pl \
83 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \
84 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \
86 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
87 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \
88 freebsd/i386/signalent.h \
89 freebsd/i386/syscall.h freebsd/i386/syscallent.h \
90 sunos4/dummy.h sunos4/errnoent.h \
91 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
92 sunos4/syscall.h sunos4/syscallent.h \
93 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
94 svr4/signalent.h svr4/syscall.h svr4/syscallent.h \
99 rpmbuild --define '%_srcrpmdir .' -ts $(distdir).tar.xz
105 gen_changelog_start_date = 2009-07-08 20:00
106 $(srcdir)/ChangeLog: $(top_srcdir)/gitlog-to-changelog $(srcdir)/Makefile.in \
107 $(top_srcdir)/.git/refs/heads/*
110 ./gitlog-to-changelog --append-dot \
111 --since='$(gen_changelog_start_date)'; \
112 echo; echo; echo 'See ChangeLog-CVS for older changes.' \
117 $(srcdir)/CREDITS: $(top_srcdir)/CREDITS.in $(top_srcdir)/.mailmap \
118 $(srcdir)/Makefile.in $(top_srcdir)/.git/refs/heads/*
122 sed '/^##/,$$d' CREDITS.in; \
123 { sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
124 git log --pretty=format:'%aN %aE'; \
125 } | LC_ALL=C sort -u \
126 | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
127 } > $@-t && mv $@-t $@
129 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX
133 IOCTLDIR = /usr/include
136 ioctlent_h_in = linux/ioctlent.h.in
138 BUILT_SOURCES += $(ioctlent_h_in)
140 $(srcdir)/$(ioctlent_h_in): ioctlsort
142 ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
143 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
145 ioctls.h: $(srcdir)/linux/ioctlent.sh
146 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
147 ioctldefs.h: ioctls.h ;
154 ioctlent_h = $(builddir)/$(OS)/ioctlent.h
155 BUILT_SOURCES += $(ioctlent_h)
156 CLEANFILES = $(ioctlent_h)
157 ioctlent_h_deps = $(srcdir)/$(OS)/ioctlent.h.in $(srcdir)/$(OS)/$(ARCH)/ioctlent.h.in
158 $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
159 $(MKDIR_P) $(builddir)/$(OS)
160 cat $(ioctlent_h_deps) | \
161 $(COMPILE) -E -P - | \
162 LC_ALL=C sort -u -k3,3 -k2,2 > $@