File: Makefile.am

package info (click to toggle)
pidgin 2.11.0-0%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 63,220 kB
  • ctags: 32,054
  • sloc: ansic: 326,207; sh: 11,683; makefile: 3,545; python: 1,296; perl: 529; cs: 209; tcl: 96; xml: 10
file content (161 lines) | stat: -rw-r--r-- 4,684 bytes parent folder | download | duplicates (7)
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
DIST_SUBDIRS = mono perl ssl tcl

if USE_PERL
PERL_DIR = perl
endif

if USE_TCL
TCL_DIR = tcl
endif

if ENABLE_DBUS
DBUS_LTLIB = dbus-example.la
endif

if USE_MONO
MONO_DIR = mono
endif

SUBDIRS = \
	$(MONO_DIR) \
	$(PERL_DIR) \
	ssl \
	$(TCL_DIR)

plugindir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)

autoaccept_la_LDFLAGS       = -module -avoid-version
buddynote_la_LDFLAGS        = -module -avoid-version
ciphertest_la_LDFLAGS		= -module -avoid-version
codeinline_la_LDFLAGS		= -module -avoid-version
debug_example_la_LDFLAGS    = -module -avoid-version
helloworld_la_LDFLAGS       = -module -avoid-version
idle_la_LDFLAGS             = -module -avoid-version
joinpart_la_LDFLAGS         = -module -avoid-version
log_reader_la_LDFLAGS       = -module -avoid-version
newline_la_LDFLAGS          = -module -avoid-version
notify_example_la_LDFLAGS   = -module -avoid-version
offlinemsg_la_LDFLAGS       = -module -avoid-version
one_time_password_la_LDFLAGS	= -module -avoid-version
pluginpref_example_la_LDFLAGS = -module -avoid-version
psychic_la_LDFLAGS          = -module -avoid-version
signals_test_la_LDFLAGS		= -module -avoid-version
simple_la_LDFLAGS			= -module -avoid-version
statenotify_la_LDFLAGS      = -module -avoid-version

# this can't be in a conditional otherwise automake 1.4 yells
dbus_example_la_LDFLAGS     = -module -avoid-version

if PLUGINS

plugin_LTLIBRARIES = \
	autoaccept.la       \
	buddynote.la        \
	idle.la             \
	joinpart.la         \
	log_reader.la       \
	newline.la          \
	offlinemsg.la       \
	psychic.la          \
	statenotify.la      \
	$(DBUS_LTLIB)

noinst_LTLIBRARIES = \
	ciphertest.la \
	codeinline.la \
	debug_example.la \
	helloworld.la \
	notify_example.la \
	one_time_password.la \
	pluginpref_example.la \
	signals_test.la \
	simple.la

autoaccept_la_SOURCES       = autoaccept.c
buddynote_la_SOURCES        = buddynote.c
ciphertest_la_SOURCES		= ciphertest.c
codeinline_la_SOURCES		= codeinline.c
debug_example_la_SOURCES = debug_example.c
helloworld_la_SOURCES       = helloworld.c
idle_la_SOURCES             = idle.c
joinpart_la_SOURCES         = joinpart.c
log_reader_la_SOURCES       = log_reader.c
newline_la_SOURCES          = newline.c
notify_example_la_SOURCES   = notify_example.c
offlinemsg_la_SOURCES       = offlinemsg.c
one_time_password_la_SOURCES	= one_time_password.c
pluginpref_example_la_SOURCES = pluginpref_example.c
psychic_la_SOURCES          = psychic.c
signals_test_la_SOURCES		= signals-test.c
simple_la_SOURCES			= simple.c
statenotify_la_SOURCES      = statenotify.c

autoaccept_la_LIBADD        = $(GLIB_LIBS)
buddynote_la_LIBADD         = $(GLIB_LIBS)
ciphertest_la_LIBADD		= $(GLIB_LIBS)
codeinline_la_LIBADD		= $(GLIB_LIBS)
idle_la_LIBADD              = $(GLIB_LIBS)
joinpart_la_LIBADD          = $(GLIB_LIBS)
log_reader_la_LIBADD        = $(GLIB_LIBS)
newline_la_LIBADD           = $(GLIB_LIBS)
notify_example_la_LIBADD    = $(GLIB_LIBS)
offlinemsg_la_LIBADD        = $(GLIB_LIBS)
one_time_password_la_LIBADD = $(GLIB_LIBS)
pluginpref_example_la_LIBADD = $(GLIB_LIBS)
psychic_la_LIBADD           = $(GLIB_LIBS)
signals_test_la_LIBADD		= $(GLIB_LIBS)
simple_la_LIBADD			= $(GLIB_LIBS)
statenotify_la_LIBADD       = $(GLIB_LIBS)

if ENABLE_DBUS

CLEANFILES              = dbus-example-bindings.c
dbus_example_la_SOURCES = dbus-example.c

dbus_example_la_LIBADD      = $(GLIB_LIBS) $(DBUS_LIBS)

.PHONY: always

$(top_builddir)/libpurple/dbus-types.h: always
	cd $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F)

dbus-example-bindings.c: $(top_srcdir)/libpurple/dbus-analyze-functions.py $(dbus_example_la_SOURCES)
	cat $(srcdir)/$(dbus_example_la_SOURCES) | \
	$(PYTHON) $(top_srcdir)/libpurple/dbus-analyze-functions.py --export-only > $@

$(dbus_example_la_OBJECTS) dbus-example.so: dbus-example-bindings.c $(top_builddir)/libpurple/dbus-types.h


endif # ENABLE_DBUS

endif # PLUGINS

EXTRA_DIST = \
	Makefile.mingw \
	dbus-buddyicons-example.py \
	filectl.c \
	fortuneprofile.pl \
	ipc-test-client.c \
	ipc-test-server.c \
	startup.py

AM_CPPFLAGS = \
	-DDATADIR=\"$(datadir)\" \
	-I$(top_srcdir)/libpurple \
	-I$(top_builddir)/libpurple \
	$(DEBUG_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(PLUGIN_CFLAGS) \
	$(DBUS_CFLAGS)

#
# This part allows people to build their own plugins in here.
# Yes, it's a mess.
#
SUFFIXES = .c .so
.c.so:
	$(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_builddir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS)
	$(LIBTOOL) --mode=link    $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS)
	@rm -f tmp$@.lo tmp$@.o libtmp$@.la
	@cp .libs/libtmp$@*.so $@
	@rm -rf .libs/libtmp$@.*