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

# testing-only plugins
noinst_LTLIBRARIES = \
	test.la

installable_plugins =
	$(NULL)

if ENABLE_PLUGINS
plugin_LTLIBRARIES = $(installable_plugins)
else
# we still compile the plugin (just to make sure it compiles!) but we don't
# install it
noinst_LTLIBRARIES += $(installable_plugins)
endif

AM_LDFLAGS = -module -avoid-version -shared

test_la_SOURCES = \
    test.c \
    test.h

# 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)

AM_CFLAGS = $(ERROR_CFLAGS) \
    -I $(top_srcdir) -I $(top_builddir) \
    @GLIB_CFLAGS@ \
    -I $(top_srcdir)/salut -I $(top_builddir)/salut \
    -I $(top_srcdir)/plugins