]> granicus.if.org Git - strace/blob - Makefile.in
README-linux: updated to note that strace might not compile
[strace] / Makefile.in
1 # Makefile.in -- strace Makefile prototype                     -*- Makefile -*-
2 #
3 # $Id$
4 #
5
6 srcdir = @srcdir@
7 VPATH = @srcdir@
8
9 CC = @CC@
10
11 INSTALL = @INSTALL@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_DATA = @INSTALL_DATA@
14
15 DEFS = @DEFS@
16 LDLIBS = @LIBS@
17
18 CFLAGS = @CFLAGS@
19 CPPFLAGS = @CPPFLAGS@
20 LDFLAGS = @LDFLAGS@
21 WARNFLAGS = @WARNFLAGS@
22
23 # OS is one of `linux', `sunos4', or `svr4'.
24 OS = @opsys@
25 # ARCH is one of `i386', `m68k', `sparc', `arm', `mips' or `ia64'.
26 ARCH = @arch@
27 # OSARCH is OS/ARCH if it exists, otherwise just OS.
28 OSARCH = @osarch@
29
30 # You may define any of MAX_PROCS, DEFAULT_STRLEN, DEFAULT_ACOLUMN,
31 # or DEFAULT_SORTBY here.
32 EXTRA_DEFS =
33
34 # Where include files are located, useful for cross-compiling.
35 includedir = @includedir@
36
37 # Where to install the program:
38 # I recommend `/usr' for Linux, `/usr/local' for the others.
39 prefix = @prefix@
40 exec_prefix = @exec_prefix@
41
42 bindir = $(exec_prefix)/bin
43 man1dir = $(prefix)/man/man1
44 man1ext = .1
45
46 SHELL = /bin/sh
47
48 INCLUDES = -I. -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) -I$(srcdir)/$(OS)
49 SUBDIRS = $(OSARCH)
50 ALL_SUBDIRS = test linux linux/alpha linux/powerpc sunos4 svr4
51 OBJ = strace.o version.o syscall.o util.o \
52         desc.o file.o ipc.o io.o ioctl.o mem.o net.o process.o bjm.o \
53         resource.o signal.o sock.o system.o term.o time.o proc.o stream.o
54
55 all: strace
56
57 strace: $(OBJ)
58         $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
59
60 install: all
61         $(INSTALL_PROGRAM) strace $(bindir)/strace
62         $(INSTALL_PROGRAM) $(srcdir)/strace-graph $(bindir)/strace-graph
63         $(INSTALL_DATA) $(srcdir)/strace.1 $(man1dir)/strace$(man1ext)
64
65 clean: clean-local
66         for i in $(ALL_SUBDIRS); do \
67                 (test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \
68         done; exit 0
69
70 clean-local:
71         rm -f *.o a.out core strace make.out
72
73 distclean: distclean-local
74         for i in $(ALL_SUBDIRS); do \
75                 (test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \
76         done; exit 0
77
78 distclean-local: clean-local
79         rm -f machine
80         rm -f Makefile config.h config.status config.cache config.log
81
82 maintainer-clean: maintainter-clean-local
83         for i in $(ALL_SUBDIRS); do \
84                 (test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \
85         done; exit 0
86
87 maintainer-clean-local: distclean-local
88
89 .c.o:
90         $(CC) $(WARNFLAGS) $(DEFS) $(EXTRA_DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<
91
92 desc.o: desc.c defs.h config.h
93 file.o: file.c defs.h config.h
94 io.o: io.c defs.h config.h
95 ioctl.o: ioctl.c defs.h config.h
96 mem.o: mem.c defs.h config.h
97 net.o: net.c defs.h config.h
98 process.o: process.c defs.h config.h
99 resource.o: resource.c defs.h config.h
100 signal.o: signal.c defs.h config.h
101 socket.o: socket.c defs.h config.h
102 strace.o: strace.c defs.h config.h
103 syscall.o: syscall.c defs.h config.h
104 system.o: system.c defs.h config.h
105 time.o: time.c defs.h config.h
106 util.o: util.c defs.h config.h