merge of '6696045322d43e1d7c9634a33cf10ca2323c061c'
[pidgin-git.git] / finch / plugins / Makefile.am
blob9258ae1706f7434065d758180b23fa9fb607eeeb
1 gntclipboard_la_LDFLAGS = -module -avoid-version
2 gntgf_la_LDFLAGS      = -module -avoid-version
3 gnthistory_la_LDFLAGS = -module -avoid-version
4 gntlastlog_la_LDFLAGS = -module -avoid-version
5 gnttinyurl_la_LDFLAGS = -module -avoid-version
6 grouping_la_LDFLAGS   = -module -avoid-version
8 if PLUGINS
10 plugin_LTLIBRARIES = \
11         gntclipboard.la \
12         gntgf.la \
13         gnthistory.la \
14         gntlastlog.la \
15         gnttinyurl.la \
16         grouping.la
18 plugindir = $(libdir)/finch
20 gntclipboard_la_SOURCES = gntclipboard.c
21 gntgf_la_SOURCES      = gntgf.c
22 gnthistory_la_SOURCES = gnthistory.c
23 gntlastlog_la_SOURCES = lastlog.c
24 gnttinyurl_la_SOURCES = gnttinyurl.c
25 grouping_la_SOURCES   = grouping.c
27 gntclipboard_la_CFLAGS = $(X11_CFLAGS)
28 gntgf_la_CFLAGS = $(X11_CFLAGS)
30 gntclipboard_la_LIBADD = $(GLIB_LIBS) $(X11_LIBS)
31 gntgf_la_LIBADD       = $(GLIB_LIBS) $(X11_LIBS) $(top_builddir)/finch/libgnt/libgnt.la
32 gnthistory_la_LIBADD  = $(GLIB_LIBS)
33 gntlastlog_la_LIBADD  = $(GLIB_LIBS)
34 gnttinyurl_la_LIBADD  = $(GLIB_LIBS)
35 grouping_la_LIBADD    = $(GLIB_LIBS) $(top_builddir)/finch/libgnt/libgnt.la
37 endif # PLUGINS
39 EXTRA_DIST = pietray.py
41 AM_CPPFLAGS = \
42         -DDATADIR=\"$(datadir)\" \
43         -I$(top_builddir)/libpurple \
44         -I$(top_srcdir)/libpurple \
45         -I$(top_srcdir) \
46         -I$(top_srcdir)/finch \
47         -I$(top_srcdir)/finch/libgnt \
48         $(DEBUG_CFLAGS) \
49         $(GLIB_CFLAGS) \
50         $(GNT_CFLAGS) \
51         $(PLUGIN_CFLAGS)
54 # This part allows people to build their own plugins in here.
55 # Yes, it's a mess.
57 SUFFIXES = .c .so
58 .c.so:
59         $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_builddir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS)
60         $(LIBTOOL) --mode=link    $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS)
61         @rm -f tmp$@.lo tmp$@.o libtmp$@.la
62         @cp .libs/libtmp$@.so.so $@
63         @rm -rf .libs/libtmp$@.*