blob: 132117e2e13a6cd2fc9499caa5926db6e043dcfa (
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
|
NULL=
#lib_LTLIBRARIES = libleakcheck.la
INCLUDES =\
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_builddir)/libnautilus \
$(BONOBO_CFLAGS) \
$(OAF_CFLAGS) \
$(GCONF_CFLAGS) \
$(GNOMEUI_CFLAGS) \
$(VFS_CFLAGS) \
$(XML_CFLAGS) \
-DVERSION="\"$(VERSION)\"" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
$(NULL)
LDADD =\
$(top_builddir)/libnautilus/libnautilus.la \
$(top_builddir)/libnautilus-extensions/libnautilus-extensions.la \
$(top_builddir)/cut-n-paste-code/widgets/e-paned/libe-paned.la \
$(top_builddir)/librsvg/librsvg.la \
$(BONOBO_LIBS) \
$(OAF_LIBS) \
$(GCONF_LIBS) \
$(GNOMEUI_LIBS) \
$(VFS_LIBS) \
$(XML_LIBS) \
$(NULL)
noinst_PROGRAMS =\
test-nautilus-graphic \
test-nautilus-mime-actions \
test-nautilus-mime-actions-set \
test-nautilus-password-dialog \
test-nautilus-preferences \
test-nautilus-widgets \
$(NULL)
test_nautilus_mime_actions_SOURCES = test-nautilus-mime-actions.c
test_nautilus_mime_actions_set_SOURCES = test-nautilus-mime-actions-set.c
test_nautilus_widgets_SOURCES = test-nautilus-widgets.c
test_nautilus_preferences_SOURCES = test-nautilus-preferences.c
test_nautilus_graphic_SOURCES = test-nautilus-graphic.c
test_nautilus_password_dialog_SOURCES = test-nautilus-password-dialog.c
#libleakcheck_la_SOURCES = \
# nautilus-leak-checker.c \
# nautilus-leak-checker.h \
# nautilus-leak-checker-stubs.h \
# nautilus-leak-hash-table.c \
# nautilus-leak-hash-table.h \
# nautilus-leak-symbol-lookup.c \
# nautilus-leak-symbol-lookup.h \
# $(NULL)
EXTRA_DIST = \
test-nautilus-mime-actions.c \
$(NULL)
# the libtool way of building libleakcheck.so is totally broken, libtool cannot
# build an .so with statically linked -liberty
# LIBLEAKCHECK_STATIC_LIBS = "-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"
#libleakcheck_la_LDADD = -module -avoid-version $(LIBLEAKCHECK_STATIC_LIBS)
#libleakcheck_la_LIBADD = -ldl
# libleakcheck.la: $(libleakcheck_la_OBJECTS) $(libleakcheck_la_DEPENDENCIES)
# $(LINK) -rpath $(libdir) $(libleakcheck_la_LDADD) $(libleakcheck_la_OBJECTS) $(libleakcheck_la_LIBADD) $(LIBS)
# for now just hardcode a plain old link line, someday someone can
#figure out what the magic password is to make libtool do this cleanly
all: libleakcheck.so
CLEANFILES += libleakcheck.so
libleakcheck.so: nautilus-leak-checker.c nautilus-leak-hash-table.c nautilus-leak-symbol-lookup.c
gcc nautilus-leak-checker.c nautilus-leak-hash-table.c nautilus-leak-symbol-lookup.c -Wall -o $@ -shared $(GLIB_CFLAGS) $(GLIB_LIBS) -lpthread -ldl -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic
# to include them in "make dist"
EXTRA_DIST = nautilus-leak-checker.c nautilus-leak-hash-table.c nautilus-leak-symbol-lookup.c \
nautilus-leak-checker-stubs.h nautilus-leak-hash-table.h nautilus-leak-checker.h nautilus-leak-symbol-lookup.h
leakcheck_DATA = libleakcheck.so
leakcheckdir= $(DESTDIR)$(libdir)
leakchecktest: nautilus-leak-checker.c nautilus-leak-hash-table.c nautilus-leak-symbol-lookup.c
gcc nautilus-leak-checker.c nautilus-leak-hash-table.c nautilus-leak-symbol-lookup.c -Wall -o $@ -DLEAK_CHECK_TESTING $(GLIB_CFLAGS) $(GLIB_LIBS) -lpthread -ldl -Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic
|