blob: 60553ddac61ef31b41028891449952c4331e2a7b (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
SUBDIRS = demangle . docs tests
CFLAGS = $(WERROR) -DVG_LIBDIR="\"$(libdir)"\" \
-Winline -Wall -Wshadow -O -fomit-frame-pointer -g
valdir = $(libdir)/valgrind
LDFLAGS = -Wl,-z -Wl,initfirst
INCLUDES = -I$(srcdir)/demangle
bin_SCRIPTS = valgrind cachegrind vg_annotate
SUPP_FILES = glibc-2.1.supp glibc-2.2.supp xfree-3.supp xfree-4.supp
val_DATA = $(SUPP_FILES) default.supp
BUILT_SOURCES = default.supp
default.supp: $(SUPP_FILES)
bzdist: dist
gunzip -c $(PACKAGE)-$(VERSION).tar.gz | bzip2 > $(PACKAGE)-$(VERSION).tar.bz2
EXTRA_DIST = $(val_DATA) \
PATCHES_APPLIED ACKNOWLEDGEMENTS \
README_KDE3_FOLKS README_PACKAGERS \
README_MISSING_SYSCALL_OR_IOCTL TODO dosyms vg_libpthread.vs \
valgrind.spec valgrind.spec.in
val_PROGRAMS = valgrind.so valgrinq.so libpthread.so
libpthread_so_SOURCES = vg_libpthread.c vg_libpthread_unimp.c
valgrinq_so_SOURCES = vg_valgrinq_dummy.c
valgrind_so_SOURCES = \
vg_clientfuncs.c \
vg_scheduler.c \
vg_cachesim.c \
vg_clientmalloc.c \
vg_clientperms.c \
vg_demangle.c \
vg_dispatch.S \
vg_errcontext.c \
vg_execontext.c \
vg_from_ucode.c \
vg_helpers.S \
vg_main.c \
vg_malloc2.c \
vg_memory.c \
vg_messages.c \
vg_mylibc.c \
vg_procselfmaps.c \
vg_profile.c \
vg_signals.c \
vg_startup.S \
vg_symtab2.c \
vg_syscall_mem.c \
vg_syscall.S \
vg_to_ucode.c \
vg_translate.c \
vg_transtab.c \
vg_vtagops.c
valgrind_so_LDADD = \
demangle/cp-demangle.o \
demangle/cplus-dem.o \
demangle/dyn-string.o \
demangle/safe-ctype.o
include_HEADERS = valgrind.h
noinst_HEADERS = \
vg_cachesim_gen.c \
vg_cachesim_I1.c \
vg_cachesim_D1.c \
vg_cachesim_L2.c \
vg_kerneliface.h \
vg_include.h \
vg_constants.h \
vg_unsafe.h
MANUAL_DEPS = $(noinst_HEADERS) $(include_HEADERS)
vg_memory.o: vg_memory.c $(MANUAL_DEPS)
$(COMPILE) -O2 @PREFERRED_STACK_BOUNDARY@ -c $<
vg_clientfuncs.o: vg_clientfuncs.c $(MANUAL_DEPS)
$(COMPILE) -fno-omit-frame-pointer -c $<
vg_libpthread.o: vg_libpthread.c $(MANUAL_DEPS)
$(COMPILE) -fno-omit-frame-pointer -c $<
valgrind.so$(EXEEXT): $(valgrind_so_OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o valgrind.so \
$(valgrind_so_OBJECTS) $(valgrind_so_LDADD)
valgrinq.so$(EXEEXT): $(valgrinq_so_OBJECTS)
$(CC) $(CFLAGS) -shared -o valgrinq.so $(valgrinq_so_OBJECTS)
libpthread.so$(EXEEXT): $(libpthread_so_OBJECTS) $(srcdir)/vg_libpthread.vs
$(CC) -Wall -Werror -g -O -shared -fpic -o libpthread.so \
$(libpthread_so_OBJECTS) \
-Wl,-version-script $(srcdir)/vg_libpthread.vs
install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(valdir)
rm -f $(DESTDIR)$(valdir)/libpthread.so.0
$(LN_S) libpthread.so $(DESTDIR)$(valdir)/libpthread.so.0
|