blob: cfa7d460ebf4e736718ec34698d14b623aadb7b4 [file] [log] [blame]
# Makefile.in -- strace Makefile prototype -*- Makefile -*-
#
# $Id$
#
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
DEFS = @DEFS@
LDLIBS = @LIBS@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
WARNFLAGS = @WARNFLAGS@
# OS is one of `linux', `sunos4', `svr4', or `freebsd'.
OS = @opsys@
# ARCH is one of `i386', `m68k', `sparc', `arm', `mips' or `ia64'.
ARCH = @arch@
# OSARCH is OS/ARCH if it exists, otherwise just OS.
OSARCH = @osarch@
# You may define any of MAX_PROCS, DEFAULT_STRLEN, DEFAULT_ACOLUMN,
# or DEFAULT_SORTBY here.
EXTRA_DEFS =
# Where include files are located, useful for cross-compiling.
includedir = @includedir@
# Where to install the program:
# I recommend `/usr' for Linux, `/usr/local' for the others.
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
man1dir = $(mandir)/man1
man1ext = .1
SHELL = /bin/sh
INCLUDES = -I. -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) \
-I$(srcdir)/$(OS)
SUBDIRS = $(OSARCH)
ALL_SUBDIRS = test linux linux/alpha linux/powerpc sunos4 svr4 \
linux/s390 linux/s390x freebsd/i386
OBJ = strace.o version.o syscall.o util.o desc.o file.o ipc.o \
io.o ioctl.o mem.o net.o process.o bjm.o \
resource.o signal.o sock.o system.o term.o time.o \
proc.o stream.o
all: strace
headers:
-$(MAKE) -C $(OSARCH) headers
strace: headers $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
install: all
$(INSTALL_PROGRAM) strace $(bindir)/strace
$(INSTALL_PROGRAM) $(srcdir)/strace-graph $(bindir)/strace-graph
$(INSTALL_DATA) $(srcdir)/strace.1 $(man1dir)/strace$(man1ext)
clean: clean-local
for i in $(ALL_SUBDIRS); do \
(test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \
done; exit 0
clean-local:
rm -f *.o a.out core strace make.out
distclean: distclean-local
for i in $(ALL_SUBDIRS); do \
(test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \
done; exit 0
distclean-local: clean-local
rm -f machine
rm -f Makefile config.h config.status config.cache config.log
maintainer-clean: maintainter-clean-local
for i in $(ALL_SUBDIRS); do \
(test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \
done; exit 0
maintainer-clean-local: distclean-local
.c.o:
$(CC) $(WARNFLAGS) $(DEFS) $(EXTRA_DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<
desc.o: desc.c defs.h config.h
file.o: file.c defs.h config.h
io.o: io.c defs.h config.h
ioctl.o: ioctl.c defs.h config.h
mem.o: mem.c defs.h config.h
net.o: net.c defs.h config.h
process.o: process.c defs.h config.h
resource.o: resource.c defs.h config.h
signal.o: signal.c defs.h config.h
socket.o: socket.c defs.h config.h
strace.o: strace.c defs.h config.h
syscall.o: syscall.c defs.h config.h
system.o: system.c defs.h config.h
time.o: time.c defs.h config.h
util.o: util.c defs.h config.h