summaryrefslogtreecommitdiff
path: root/plugins/Makefile.am
blob: 0330cec53e9ddd7ad0ae075980d063d7eae19fb2 (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
plugindir = $(libdir)/telepathy/gabble-0

installable_plugins = \
	console.la \
	gateways.la

test_only_plugins = \
	test.la

# testing-only plugins
if ENABLE_INSTALLED_TESTS
noinst_LTLIBRARIES = \
	$(NULL)

testplugindir = $(gabbletestsdir)/plugins
testplugin_LTLIBRARIES = \
	$(test_only_plugins) \
	$(NULL)

test_la_LDFLAGS = $(AM_LDFLAGS)
else
noinst_LTLIBRARIES = \
	$(test_only_plugins) \
	$(NULL)

# because test.la is not installed, libtool will want to compile it as static
# despite -shared (a convenience library), unless we also use -rpath
test_la_LDFLAGS = $(AM_LDFLAGS) -rpath $(plugindir)
endif

if ENABLE_PLUGINS
plugin_LTLIBRARIES = $(installable_plugins)

dist_bin_SCRIPTS = \
	telepathy-gabble-xmpp-console
else
# we still compile the plugin (just to make sure it compiles!) but we don't
# install it
noinst_LTLIBRARIES += $(installable_plugins)

EXTRA_DIST = \
	telepathy-gabble-xmpp-console
endif

AM_LDFLAGS = -module -avoid-version -shared

test_la_SOURCES = \
    test.c \
    test.h

gateways_la_SOURCES = \
	gateways.c \
	gateways.h

console_la_SOURCES = \
	console.c \
	console.h

AM_CFLAGS = $(ERROR_CFLAGS) \
    -I $(top_srcdir) -I $(top_builddir) \
    @DBUS_CFLAGS@ @GLIB_CFLAGS@ @WOCKY_CFLAGS@ @TP_GLIB_CFLAGS@ \
    -I $(top_srcdir)/gabble -I $(top_builddir)/gabble \
    -I $(top_srcdir)/plugins