2002-12-30 03:51:30 +03:00
# Automake input for strace.
2011-02-27 03:28:50 +03:00
SUBDIRS = tests
2002-12-30 03:51:30 +03:00
bin_PROGRAMS = strace
man_MANS = strace.1
2012-03-09 17:21:59 +04:00
bin_SCRIPTS = strace-graph strace-log-merge
2002-12-30 03:51:30 +03:00
2012-02-25 18:34:10 +04:00
OS = linux
2002-12-30 03:51:30 +03:00
# ARCH is `i386', `m68k', `sparc', etc.
ARCH = @arch@
2010-09-09 21:36:36 +04:00
ACLOCAL_AMFLAGS = -I m4
2010-09-09 21:41:15 +04:00
AM_CFLAGS = $( WARN_CFLAGS)
linux/ioctlent: unify them all
This unifies all the ioctlent.h's in the linux subdir while still
allowing each arch to maintain its own minor list.
The basic method is:
- each arch has linux/<arch>/ioctlent.h.in which defines only the
arch-specific ioctls;
- linux/ioctlent.h.in which defines only the common ioctls;
- at build time, these two headers are combined and sorted to produce
the linux/ioctlent.h file.
This also requires a little tweaking of the include files since the
common ioctlent.h is a built file.
* linux/ioctlent.h: Split into linux/ioctlent.h.in and
linux/i386/ioctlent.h.in, remove asm entries from the former, remove
non-asm entries from the latter.
* linux/alpha/ioctlent.h: Rename to linux/alpha/ioctlent.h.in, remove
non-asm entries.
* linux/bfin/ioctlent.h: Rename to linux/bfin/ioctlent.h.in, remove
non-asm entries.
* linux/hppa/ioctlent.h: Rename to linux/hppa/ioctlent.h.in, remove
non-asm entries.
* linux/ia64/ioctlent.h: Rename to linux/ia64/ioctlent.h.in, remove
non-asm entries.
* linux/mips/ioctlent.h: Rename to linux/mips/ioctlent.h.in, remove
non-asm entries.
* linux/powerpc/ioctlent.h: Rename to linux/powerpc/ioctlent.h.in,
remove non-asm entries.
* linux/s390/ioctlent.h: Rename to linux/s390/ioctlent.h.in, remove
non-asm entries.
* linux/sh/ioctlent.h: Rename to linux/sh/ioctlent.h.in, remove
non-asm entries.
* linux/sparc/ioctlent.h: Rename to linux/sparc/ioctlent.h.in, remove
non-asm entries.
* linux/arm/ioctlent.h.in: New file.
* linux/avr32/ioctlent.h.in: Likewise.
* linux/i386/ioctlent.h.in: Likewise.
* linux/m68k/ioctlent.h.in: Likewise.
* linux/microblaze/ioctlent.h.in: Likewise.
* linux/tile/ioctlent.h.in: Likewise.
* linux/x86_64/ioctlent.h.in: Likewise.
* linux/s390x/ioctlent.h.in: Include ioctlent.h.in instead of
ioctlent.h.
* linux/sh64/ioctlent.h.in: Likewise.
* linux/sparc64/ioctlent.h.in: Likewise.
* linux/arm/ioctlent1.h: Update ioctlent.h include.
* linux/powerpc/ioctlent1.h: Likewise.
* linux/sparc/ioctlent1.h: Likewise.
* linux/sparc64/ioctlent1.h: Likewise.
* linux/x86_64/ioctlent1.h: Likewise.
* Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
(EXTRA_DIST): Update.
[MAINTAINER_MODE && LINUX]: Convert from ioctlent_h to ioctlent_h_in.
[LINUX]: Add $(builddir)/$(OS)/ioctlent.h generation rules.
* .gitignore: Add linux/ioctlent.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-21 07:24:22 +03:00
AM_CPPFLAGS = -I$( srcdir) /$( OS) /$( ARCH) -I$( srcdir) /$( OS) -I$( builddir) /$( OS)
2002-12-30 03:51:30 +03:00
2014-02-16 10:59:20 +04:00
i n c l u d e x l a t / M a k e m o d u l e . a m
2013-05-01 03:34:51 +04:00
strace_SOURCES = \
2013-11-11 19:06:18 +04:00
aio.c \
2013-05-01 03:34:51 +04:00
bjm.c \
block.c \
2014-12-03 23:30:15 +03:00
capability.c \
2013-05-01 03:34:51 +04:00
count.c \
desc.c \
2014-09-12 02:40:37 +04:00
dirent.c \
2014-02-05 08:13:18 +04:00
fanotify.c \
2013-05-01 03:34:51 +04:00
file.c \
2014-02-05 19:43:04 +04:00
inotify.c \
2013-05-01 03:34:51 +04:00
io.c \
ioctl.c \
2014-02-05 21:27:43 +04:00
ioprio.c \
2013-05-01 03:34:51 +04:00
ipc.c \
2014-02-05 17:48:26 +04:00
kexec.c \
2014-02-06 02:41:45 +04:00
keyctl.c \
2014-04-10 18:10:17 +04:00
ldt.c \
2013-05-01 03:34:51 +04:00
loop.c \
mem.c \
mtd.c \
net.c \
2014-12-03 23:00:42 +03:00
or1k_atomic.c \
2013-05-01 03:34:51 +04:00
pathtrace.c \
process.c \
2014-01-31 15:01:01 +04:00
ptp.c \
2013-05-01 03:34:51 +04:00
quota.c \
2014-02-05 18:51:19 +04:00
reboot.c \
2013-05-01 03:34:51 +04:00
resource.c \
scsi.c \
signal.c \
sock.c \
2014-08-21 07:17:48 +04:00
socketutils.c \
2014-09-22 04:17:42 +04:00
statfs.c \
2013-05-01 03:34:51 +04:00
strace.c \
stream.c \
syscall.c \
2014-12-03 23:20:52 +03:00
sysctl.c \
2014-09-30 03:13:05 +04:00
sysinfo.c \
2014-12-03 23:08:44 +03:00
sysmips.c \
2013-05-01 03:34:51 +04:00
system.c \
term.c \
time.c \
util.c \
2014-11-03 23:27:40 +03:00
v4l2.c \
2013-05-01 03:34:51 +04:00
vsprintf.c
2013-07-23 11:11:35 +04:00
i f U S E _ L I B U N W I N D
strace_SOURCES += unwind.c
strace_CPPFLAGS = $( AM_CPPFLAGS) $( libunwind_CPPFLAGS)
strace_LDFLAGS = $( libunwind_LDFLAGS)
strace_LDADD = $( libunwind_LIBS)
e l s e
strace_CPPFLAGS = $( AM_CPPFLAGS)
e n d i f
2002-12-30 12:13:08 +03:00
noinst_HEADERS = defs.h
2013-03-06 21:59:09 +04:00
# Enable this to get link map generated
#strace_CFLAGS = $(AM_CFLAGS) -Wl,-Map=strace.mapfile
2002-12-30 03:51:30 +03:00
2013-05-01 03:34:51 +04:00
EXTRA_DIST = \
$( man_MANS) \
2013-05-01 03:52:12 +04:00
.version \
2013-05-16 00:33:09 +04:00
COPYING \
2013-05-01 03:34:51 +04:00
CREDITS \
ChangeLog \
ChangeLog-CVS \
README-linux \
README-linux-ptrace \
debian/changelog \
debian/compat \
debian/control \
debian/copyright \
debian/rules \
debian/source/format \
debian/strace-udeb.install \
debian/strace.docs \
debian/strace.examples \
debian/strace.install \
debian/strace.manpages \
debian/strace64.install \
debian/strace64.manpages \
debian/watch \
errnoent.sh \
2014-11-04 04:40:42 +03:00
ioctlsort.c \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/aarch64/errnoent1.h \
linux/aarch64/ioctlent.h.in \
linux/aarch64/ioctlent1.h \
linux/aarch64/signalent1.h \
linux/aarch64/syscallent.h \
linux/aarch64/syscallent1.h \
2013-05-01 03:34:51 +04:00
linux/alpha/errnoent.h \
linux/alpha/ioctlent.h.in \
linux/alpha/signalent.h \
linux/alpha/syscallent.h \
2013-08-16 11:17:06 +04:00
linux/arc/ioctlent.h.in \
linux/arc/syscallent.h \
2013-05-01 03:34:51 +04:00
linux/arm/ioctlent.h.in \
linux/arm/syscallent.h \
linux/avr32/ioctlent.h.in \
linux/avr32/syscallent.h \
linux/bfin/ioctlent.h.in \
linux/bfin/syscallent.h \
linux/dummy.h \
linux/errnoent.h \
2014-02-05 08:13:18 +04:00
linux/fanotify.h \
2013-05-01 03:34:51 +04:00
linux/hppa/errnoent.h \
linux/hppa/ioctlent.h.in \
linux/hppa/signalent.h \
linux/hppa/syscallent.h \
linux/i386/ioctlent.h.in \
linux/i386/syscallent.h \
linux/ia64/ioctlent.h.in \
linux/ia64/signalent.h \
linux/ia64/syscallent.h \
2014-08-21 07:17:48 +04:00
linux/inet_diag.h \
2014-02-05 19:43:04 +04:00
linux/inotify.h \
2013-05-01 03:34:51 +04:00
linux/ioctlent.h.in \
linux/ioctlent.sh \
2014-02-05 17:48:26 +04:00
linux/kexec.h \
2014-02-06 02:41:45 +04:00
linux/keyctl.h \
2013-05-01 03:34:51 +04:00
linux/m68k/ioctlent.h.in \
linux/m68k/syscallent.h \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/metag/ioctlent.h.in \
linux/metag/syscallent.h \
2013-05-01 03:34:51 +04:00
linux/microblaze/ioctlent.h.in \
linux/microblaze/syscallent.h \
linux/mips/errnoent.h \
linux/mips/ioctlent.h.in \
linux/mips/ioctlent.sh \
linux/mips/signalent.h \
2013-05-07 06:46:46 +04:00
linux/mips/syscallent-compat.h \
linux/mips/syscallent-n32.h \
linux/mips/syscallent-n64.h \
linux/mips/syscallent-o32.h \
2013-05-01 03:34:51 +04:00
linux/mips/syscallent.h \
linux/mtd-abi.h \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/or1k/ioctlent.h.in \
linux/or1k/syscallent.h \
2014-02-05 06:09:49 +04:00
linux/personality.h \
2013-05-01 03:34:51 +04:00
linux/powerpc/errnoent1.h \
linux/powerpc/ioctlent.h.in \
linux/powerpc/ioctlent1.h \
linux/powerpc/signalent1.h \
linux/powerpc/syscallent.h \
linux/powerpc/syscallent1.h \
2014-01-31 15:01:01 +04:00
linux/ptp_clock.h \
2014-02-05 18:51:19 +04:00
linux/reboot.h \
2013-05-01 03:34:51 +04:00
linux/s390/ioctlent.h.in \
linux/s390/syscallent.h \
linux/s390x/ioctlent.h.in \
linux/s390x/syscallent.h \
linux/sh/ioctlent.h.in \
linux/sh/syscallent.h \
linux/sh64/ioctlent.h.in \
linux/sh64/syscallent.h \
linux/signalent.h \
2014-08-21 07:17:48 +04:00
linux/sock_diag.h \
2013-05-01 03:34:51 +04:00
linux/sparc/dummy2.h \
linux/sparc/errnoent.h \
linux/sparc/errnoent1.h \
linux/sparc/gen.pl \
linux/sparc/ioctlent.h.in \
linux/sparc/ioctlent1.h \
linux/sparc/signalent.h \
linux/sparc/signalent1.h \
linux/sparc/syscall1.h \
linux/sparc/syscallent.h \
linux/sparc/syscallent1.h \
linux/sparc64/dummy2.h \
linux/sparc64/errnoent.h \
linux/sparc64/errnoent1.h \
linux/sparc64/errnoent2.h \
linux/sparc64/ioctlent.h.in \
linux/sparc64/ioctlent1.h \
linux/sparc64/ioctlent2.h \
linux/sparc64/signalent.h \
linux/sparc64/signalent1.h \
linux/sparc64/signalent2.h \
linux/sparc64/syscall1.h \
linux/sparc64/syscallent.h \
linux/sparc64/syscallent1.h \
linux/sparc64/syscallent2.h \
2013-05-07 18:38:01 +04:00
linux/subcall.h \
2013-05-01 03:34:51 +04:00
linux/syscall.h \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/tile/errnoent1.h \
2013-05-01 03:34:51 +04:00
linux/tile/ioctlent.h.in \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/tile/ioctlent1.h \
linux/tile/signalent1.h \
2013-05-01 03:34:51 +04:00
linux/tile/syscallent.h \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/tile/syscallent1.h \
2013-06-02 22:09:44 +04:00
linux/ubi-user.h \
2013-05-01 03:34:51 +04:00
linux/x32/errnoent.h \
linux/x32/errnoent1.h \
linux/x32/ioctlent.h.in \
linux/x32/ioctlent1.h \
linux/x32/signalent.h \
linux/x32/signalent1.h \
linux/x32/syscallent.h \
linux/x32/syscallent1.h \
linux/x86_64/errnoent1.h \
linux/x86_64/errnoent2.h \
linux/x86_64/gentab.pl \
linux/x86_64/ioctlent.h.in \
linux/x86_64/ioctlent1.h \
linux/x86_64/ioctlent2.h \
linux/x86_64/signalent1.h \
linux/x86_64/signalent2.h \
linux/x86_64/syscallent.h \
linux/x86_64/syscallent1.h \
linux/x86_64/syscallent2.h \
Fix "make dist" on recently added architectures
* Makefile.am (EXTRA_DIST): Add linux/aarch64/errnoent1.h,
linux/aarch64/ioctlent.h.in, linux/aarch64/ioctlent1.h,
linux/aarch64/signalent1.h, linux/aarch64/syscallent.h,
linux/aarch64/syscallent1.h, linux/metag/ioctlent.h.in,
linux/metag/syscallent.h, linux/or1k/ioctlent.h.in,
linux/or1k/syscallent.h, linux/tile/errnoent1.h, linux/tile/ioctlent1.h,
linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
linux/xtensa/ioctlent.h.in, and linux/xtensa/syscallent.h.
2013-06-02 22:12:44 +04:00
linux/xtensa/ioctlent.h.in \
linux/xtensa/syscallent.h \
2013-05-01 03:34:51 +04:00
signalent.sh \
strace-graph \
strace-log-merge \
strace.spec \
syscallent.sh \
2014-02-16 10:59:20 +04:00
$( XLAT_INPUT_FILES) \
$( XLAT_HEADER_FILES) \
xlat/gen.sh \
2013-05-01 03:34:51 +04:00
xlate.el
2004-07-12 09:45:08 +04:00
2009-10-07 04:46:56 +04:00
.PHONY : srpm
2011-02-27 17:05:58 +03:00
srpm : dist -xz
rpmbuild --define '%_srcrpmdir .' -ts $( distdir) .tar.xz
2009-10-07 04:46:56 +04:00
2013-05-01 03:52:12 +04:00
BUILT_SOURCES = .version
$(srcdir)/.version :
$( AM_V_GEN) echo $( VERSION) > $@ -t && mv $@ -t $@
dist-hook :
$( AM_V_GEN) echo $( VERSION) > $( distdir) /.tarball-version
today = $( shell date +%Y-%m-%d)
version_regexp = $( subst .,\. ,$( VERSION) )
news_check_regexp = 'Noteworthy changes in release $(version_regexp) ($(today))'
news-check : NEWS
$( AM_V_GEN) if head -1 $< | \
grep -x $( news_check_regexp) >/dev/null; then \
:; \
else \
echo >& 2 '$<: check failed' ; \
exit 1; \
fi
linux/ioctlent: unify them all
This unifies all the ioctlent.h's in the linux subdir while still
allowing each arch to maintain its own minor list.
The basic method is:
- each arch has linux/<arch>/ioctlent.h.in which defines only the
arch-specific ioctls;
- linux/ioctlent.h.in which defines only the common ioctls;
- at build time, these two headers are combined and sorted to produce
the linux/ioctlent.h file.
This also requires a little tweaking of the include files since the
common ioctlent.h is a built file.
* linux/ioctlent.h: Split into linux/ioctlent.h.in and
linux/i386/ioctlent.h.in, remove asm entries from the former, remove
non-asm entries from the latter.
* linux/alpha/ioctlent.h: Rename to linux/alpha/ioctlent.h.in, remove
non-asm entries.
* linux/bfin/ioctlent.h: Rename to linux/bfin/ioctlent.h.in, remove
non-asm entries.
* linux/hppa/ioctlent.h: Rename to linux/hppa/ioctlent.h.in, remove
non-asm entries.
* linux/ia64/ioctlent.h: Rename to linux/ia64/ioctlent.h.in, remove
non-asm entries.
* linux/mips/ioctlent.h: Rename to linux/mips/ioctlent.h.in, remove
non-asm entries.
* linux/powerpc/ioctlent.h: Rename to linux/powerpc/ioctlent.h.in,
remove non-asm entries.
* linux/s390/ioctlent.h: Rename to linux/s390/ioctlent.h.in, remove
non-asm entries.
* linux/sh/ioctlent.h: Rename to linux/sh/ioctlent.h.in, remove
non-asm entries.
* linux/sparc/ioctlent.h: Rename to linux/sparc/ioctlent.h.in, remove
non-asm entries.
* linux/arm/ioctlent.h.in: New file.
* linux/avr32/ioctlent.h.in: Likewise.
* linux/i386/ioctlent.h.in: Likewise.
* linux/m68k/ioctlent.h.in: Likewise.
* linux/microblaze/ioctlent.h.in: Likewise.
* linux/tile/ioctlent.h.in: Likewise.
* linux/x86_64/ioctlent.h.in: Likewise.
* linux/s390x/ioctlent.h.in: Include ioctlent.h.in instead of
ioctlent.h.
* linux/sh64/ioctlent.h.in: Likewise.
* linux/sparc64/ioctlent.h.in: Likewise.
* linux/arm/ioctlent1.h: Update ioctlent.h include.
* linux/powerpc/ioctlent1.h: Likewise.
* linux/sparc/ioctlent1.h: Likewise.
* linux/sparc64/ioctlent1.h: Likewise.
* linux/x86_64/ioctlent1.h: Likewise.
* Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
(EXTRA_DIST): Update.
[MAINTAINER_MODE && LINUX]: Convert from ioctlent_h to ioctlent_h_in.
[LINUX]: Add $(builddir)/$(OS)/ioctlent.h generation rules.
* .gitignore: Add linux/ioctlent.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-21 07:24:22 +03:00
2014-11-04 04:40:42 +03:00
ioctlent_h = $( builddir) /$( OS) /ioctlent.h
BUILT_SOURCES += $( ioctlent_h)
CLEANFILES = $( ioctlent_h)
ioctlent_h_deps = $( srcdir) /$( OS) /ioctlent.h.in $( srcdir) /$( OS) /$( ARCH) /ioctlent.h.in
$(ioctlent_h) : $( top_builddir ) /config .status $( ioctlent_h_deps )
$( MKDIR_P) $( builddir) /$( OS)
cat $( ioctlent_h_deps) | \
$( COMPILE) -E -P - | \
sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \
LC_ALL = C sort -u -k2,2 -k1,1 > $@
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
2013-05-01 03:52:12 +04:00
$(srcdir)/ChangeLog : $( srcdir ) /gitlog -to -changelog $( srcdir ) /Makefile .in \
$( srcdir) /.version
2009-10-07 04:41:02 +04:00
@rm -f $@ .new
2013-05-01 03:52:12 +04:00
( cd $( srcdir) ; \
2011-11-05 17:32:27 +04:00
./gitlog-to-changelog --append-dot \
--since= '$(gen_changelog_start_date)' ; \
2009-10-07 04:41:02 +04:00
echo; echo; echo 'See ChangeLog-CVS for older changes.' \
) > $@ .new
chmod 444 $@ .new
mv -f $@ .new $@
2013-05-01 03:52:12 +04:00
$(srcdir)/CREDITS : $( srcdir ) /CREDITS .in $( srcdir ) /.mailmap \
$( srcdir) /Makefile.in $( srcdir) /.version
2011-02-24 04:51:15 +03:00
$( AM_V_GEN) \
2014-08-14 12:05:37 +04:00
( \
2013-05-01 03:52:12 +04:00
cd $( srcdir) ; \
2011-02-24 04:51:15 +03:00
sed '/^##/,$$d' CREDITS.in; \
{ sed -n '1,/^##>/d; s/ \+/\t/; s/^./&/p' CREDITS.in; \
git log --pretty= format:'%aN %aE' ; \
} | LC_ALL = C sort -u \
| awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}' ; \
2014-08-14 12:05:37 +04:00
) > $@ -t && mv $@ -t $@
2011-02-24 04:51:15 +03:00
2009-10-10 02:10:09 +04:00
export TAR_OPTIONS = --owner= 0 --group= 0 --numeric-owner --mode= go-w,go+rX
2014-10-16 14:05:43 +04:00
INCLUDEDIR = /usr/include
KERNEL_RELEASE = $( shell uname -r)
# Candidates for the kernel headers tree.
KERNEL_INCLUDE = \
/lib/modules/$( KERNEL_RELEASE) /build/include \
/usr/src/linux-$( KERNEL_RELEASE) /include \
$( INCLUDEDIR)
IOCTLDIR = $( shell find $( KERNEL_INCLUDE) -maxdepth 0 -type d -print -quit 2>/dev/null)
IOCTLASM = $( INCLUDEDIR) /asm
2004-07-12 09:45:08 +04:00
2014-11-04 04:40:42 +03:00
noinst_PROGRAMS = ioctlsort
ioctlsort_SOURCES = ioctlsort.c
nodist_ioctlsort_SOURCES = ioctls.h ioctldefs.h
CLEANFILES += $( nodist_ioctlsort_SOURCES)
ioctlsort.$(OBJEXT) : $( nodist_ioctlsort_SOURCES )
ioctls.h : $( srcdir ) /linux /ioctlent .sh
$( SHELL) $< $( IOCTLDIR) $( IOCTLASM)
ioctldefs.h : ioctls .h ;
2004-07-12 09:45:08 +04:00
2014-11-04 04:40:42 +03:00
ioctlent_h_in = linux/ioctlent.h.in
linux/ioctlent: unify them all
This unifies all the ioctlent.h's in the linux subdir while still
allowing each arch to maintain its own minor list.
The basic method is:
- each arch has linux/<arch>/ioctlent.h.in which defines only the
arch-specific ioctls;
- linux/ioctlent.h.in which defines only the common ioctls;
- at build time, these two headers are combined and sorted to produce
the linux/ioctlent.h file.
This also requires a little tweaking of the include files since the
common ioctlent.h is a built file.
* linux/ioctlent.h: Split into linux/ioctlent.h.in and
linux/i386/ioctlent.h.in, remove asm entries from the former, remove
non-asm entries from the latter.
* linux/alpha/ioctlent.h: Rename to linux/alpha/ioctlent.h.in, remove
non-asm entries.
* linux/bfin/ioctlent.h: Rename to linux/bfin/ioctlent.h.in, remove
non-asm entries.
* linux/hppa/ioctlent.h: Rename to linux/hppa/ioctlent.h.in, remove
non-asm entries.
* linux/ia64/ioctlent.h: Rename to linux/ia64/ioctlent.h.in, remove
non-asm entries.
* linux/mips/ioctlent.h: Rename to linux/mips/ioctlent.h.in, remove
non-asm entries.
* linux/powerpc/ioctlent.h: Rename to linux/powerpc/ioctlent.h.in,
remove non-asm entries.
* linux/s390/ioctlent.h: Rename to linux/s390/ioctlent.h.in, remove
non-asm entries.
* linux/sh/ioctlent.h: Rename to linux/sh/ioctlent.h.in, remove
non-asm entries.
* linux/sparc/ioctlent.h: Rename to linux/sparc/ioctlent.h.in, remove
non-asm entries.
* linux/arm/ioctlent.h.in: New file.
* linux/avr32/ioctlent.h.in: Likewise.
* linux/i386/ioctlent.h.in: Likewise.
* linux/m68k/ioctlent.h.in: Likewise.
* linux/microblaze/ioctlent.h.in: Likewise.
* linux/tile/ioctlent.h.in: Likewise.
* linux/x86_64/ioctlent.h.in: Likewise.
* linux/s390x/ioctlent.h.in: Include ioctlent.h.in instead of
ioctlent.h.
* linux/sh64/ioctlent.h.in: Likewise.
* linux/sparc64/ioctlent.h.in: Likewise.
* linux/arm/ioctlent1.h: Update ioctlent.h include.
* linux/powerpc/ioctlent1.h: Likewise.
* linux/sparc/ioctlent1.h: Likewise.
* linux/sparc64/ioctlent1.h: Likewise.
* linux/x86_64/ioctlent1.h: Likewise.
* Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
(EXTRA_DIST): Update.
[MAINTAINER_MODE && LINUX]: Convert from ioctlent_h to ioctlent_h_in.
[LINUX]: Add $(builddir)/$(OS)/ioctlent.h generation rules.
* .gitignore: Add linux/ioctlent.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-21 07:24:22 +03:00
BUILT_SOURCES += $( ioctlent_h_in)
$(srcdir)/$(ioctlent_h_in) : ioctlsort
2004-07-12 09:45:08 +04:00
$( <D) /$( <F) > $@
e n d i f