1# Automake input for strace. 2 3bin_PROGRAMS = strace 4man_MANS = strace.1 5bin_SCRIPTS = strace-graph 6 7# OS is one of `linux', `sunos4', `svr4', or `freebsd'. 8OS = @opsys@ 9# ARCH is `i386', `m68k', `sparc', etc. 10ARCH = @arch@ 11 12AM_CFLAGS = $(WARNFLAGS) 13INCLUDES = -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) -I$(srcdir)/$(OS) 14 15strace_SOURCES = strace.c syscall.c util.c desc.c file.c ipc.c \ 16 io.c ioctl.c mem.c net.c process.c bjm.c \ 17 resource.c signal.c sock.c system.c term.c time.c \ 18 proc.c stream.c 19noinst_HEADERS = defs.h 20 21EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \ 22 debian/changelog debian/control debian/copyright debian/rules \ 23 strace.spec \ 24 strace-graph COPYRIGHT CREDITS PORTING \ 25 README-CVS README-freebsd README-linux README-sunos4 README-svr4 \ 26 linux/ioctlsort.c linux/ioctlent.sh \ 27 linux/ioctlent.h linux/errnoent.h linux/signalent.h \ 28 linux/syscall.h linux/syscallent.h linux/dummy.h \ 29 linux/alpha/errnoent.h linux/alpha/ioctlent.h \ 30 linux/alpha/signalent.h linux/alpha/syscallent.h \ 31 linux/hppa/errnoent.h linux/hppa/ioctlent.h \ 32 linux/hppa/signalent.h linux/hppa/syscallent.h \ 33 linux/ia64/syscallent.h linux/ia64/errnoent.h \ 34 linux/ia64/ioctlent.h linux/ia64/signalent.h \ 35 linux/mips/ioctlent.sh linux/mips/errnoent.h \ 36 linux/mips/ioctlent.h linux/mips/signalent.h \ 37 linux/mips/syscallent.h \ 38 linux/powerpc/syscallent.h \ 39 linux/powerpc/errnoent.h linux/powerpc/ioctlent.h \ 40 linux/powerpc/signalent.h \ 41 linux/s390/errnoent.h linux/s390/ioctlent.h \ 42 linux/s390/signalent.h linux/s390/syscallent.h \ 43 linux/s390x/errnoent.h linux/s390x/ioctlent.h \ 44 linux/s390x/signalent.h linux/s390x/syscallent.h \ 45 linux/sh/syscallent.h linux/sh/errnoent.h \ 46 linux/sh/ioctlent.h linux/sh/signalent.h \ 47 linux/sh64/syscallent.h \ 48 linux/sparc/dummy2.h \ 49 linux/sparc/errnoent.h linux/sparc/errnoent1.h \ 50 linux/sparc/ioctlent.h linux/sparc/ioctlent1.h \ 51 linux/sparc/signalent.h linux/sparc/signalent1.h \ 52 linux/sparc/syscall.h linux/sparc/syscall1.h \ 53 linux/sparc/syscallent.h linux/sparc/syscallent1.h \ 54 linux/sparc/gen.pl linux/sparc/syscall.h.2 \ 55 linux/sparc64/dummy2.h linux/sparc64/errnoent.h \ 56 linux/sparc64/errnoent1.h linux/sparc64/errnoent2.h \ 57 linux/sparc64/ioctlent.h linux/sparc64/ioctlent1.h \ 58 linux/sparc64/ioctlent2.h linux/sparc64/signalent.h \ 59 linux/sparc64/signalent1.h linux/sparc64/signalent2.h \ 60 linux/sparc64/syscall.h linux/sparc64/syscall1.h \ 61 linux/sparc64/syscallent.h linux/sparc64/syscallent1.h \ 62 linux/sparc64/syscallent2.h \ 63 linux/x86_64/syscallent.h linux/x86_64/gentab.pl \ 64 linux/x86_64/errnoent1.h linux/x86_64/ioctlent1.h \ 65 linux/x86_64/signalent1.h linux/x86_64/syscallent1.h \ 66 freebsd/ioctlent.sh \ 67 freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \ 68 freebsd/i386/errnoent.h freebsd/i386/ioctlent.h \ 69 freebsd/i386/signalent.h \ 70 freebsd/i386/syscall.h freebsd/i386/syscallent.h \ 71 sunos4/dummy.h sunos4/errnoent.h \ 72 sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \ 73 sunos4/syscall.h sunos4/syscallent.h \ 74 svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \ 75 svr4/signalent.h svr4/syscall.h svr4/syscallent.h 76 77if MAINTAINER_MODE 78if LINUX 79 80IOCTLDIR = /usr/include 81IOCTLASM = asm 82 83if I386 84ioctlent_h = linux/ioctlent.h 85else 86ioctlent_h = linux/$(ARCH)/ioctlent.h 87endif 88 89BUILT_SOURCES = $(ioctlent_h) 90 91$(srcdir)/$(ioctlent_h): ioctlsort 92 $(<D)/$(<F) > $@ 93ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h 94 $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \ 95 -o $@ $< 96ioctls.h: $(srcdir)/linux/ioctlent.sh 97 $(SHELL) $< $(IOCTLDIR) $(IOCTLASM) 98ioctldefs.h: ioctls.h ; 99 100endif 101endif 102