blob: 1e8adcda83d985d2de7761e4c95c5279e9b7d51b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#
# ltrace's Makefile.in
#
#OS := $(shell uname -s)
OS := @HOST_OS@
TOPDIR = $(shell pwd)
prefix = @prefix@
sysconfdir = @sysconfdir@
bindir = $(prefix)/bin
mandir = @mandir@
docdir = $(prefix)/share/doc/ltrace
CC = @CC@
CFLAGS = -Wall @CFLAGS@
CPPFLAGS = -iquote $(TOPDIR) -iquote $(TOPDIR)/sysdeps/$(OS) -DSYSCONFDIR=\"$(sysconfdir)\" @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
INSTALL_FILE = $(INSTALL) -p -m 644
INSTALL_PROGRAM = $(INSTALL) -p -m 755
INSTALL_SCRIPT = $(INSTALL) -p -m 755
INSTALL_DIR = $(INSTALL) -p -d -m 755
OBJ = libltrace.o options.o elf.o output.o read_config_file.o \
execute_program.o handle_event.o display_args.o \
breakpoints.o proc.o demangle.o dict.o debug.o summary.o
VERSION = @PACKAGE_VERSION@
all: ltrace
ltrace: main.o libltrace.a
$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
libltrace.a: sysdeps/sysdep.o $(OBJ)
$(AR) rcv $@ $^
sysdeps/sysdep.o: dummy
$(MAKE) -C sysdeps/$(OS)
clean-deja:
$(RM) testrun.log testrun.sum
cd testsuite; make clean
clean: clean-deja
$(MAKE) -C sysdeps/$(OS) clean
rm -f ltrace main.o libltrace.a $(OBJ)
rm -f *~ *.bak a.out core
distclean: clean
rm -f config.h Makefile
realclean: distclean
install: ltrace
$(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(docdir) $(DESTDIR)$(mandir)/man1
$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)
$(INSTALL_PROGRAM) ltrace $(DESTDIR)$(bindir)
$(INSTALL_FILE) etc/ltrace.conf $(DESTDIR)$(sysconfdir)
$(INSTALL_FILE) COPYING README TODO BUGS ChangeLog $(DESTDIR)$(docdir)
$(INSTALL_FILE) ltrace.1 $(DESTDIR)$(mandir)/man1
check:
cd testsuite;cat /proc/version;uptime;free -m;$(MAKE) check
dummy:
.PHONY: all clean distclean dist install dummy
.EXPORT_ALL_VARIABLES:
|