view finch/plugins/Makefile.am @ 22771:43233dc1d40b

applied changes from 4c5110037671f84e3e775214c32692b5b23c11e1 through ae37fe6b64c30704715a369df88bd76674a39b1a applied changes from 4c5110037671f84e3e775214c32692b5b23c11e1 through ae37fe6b64c30704715a369df88bd76674a39b1a applied changes from b28057d6ade7c221b0616c3b02e86659e2d8b10b through 52c0efb045580dac7b6f5e40c91002e917e0cae3 Plucked changes for the chat-join-failed signal and associated server.c function from im.pidgin.pidgin, as these necessitate a minor version bump.
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 29 Apr 2008 03:59:28 +0000
parents 85c365822504
children f5bcb58bdf56 20846036cbd5
line wrap: on
line source

gntclipboard_la_LDFLAGS = -module -avoid-version
gntgf_la_LDFLAGS      = -module -avoid-version
gnthistory_la_LDFLAGS = -module -avoid-version
gntlastlog_la_LDFLAGS = -module -avoid-version
grouping_la_LDFLAGS   = -module -avoid-version

if PLUGINS

plugin_LTLIBRARIES = \
	gntclipboard.la \
	gntgf.la \
	gnthistory.la \
	gntlastlog.la \
	grouping.la

plugindir = $(libdir)/finch

gntclipboard_la_SOURCES = gntclipboard.c
gntgf_la_SOURCES      = gntgf.c
gnthistory_la_SOURCES = gnthistory.c
gntlastlog_la_SOURCES = lastlog.c
grouping_la_SOURCES   = grouping.c

gntclipboard_la_CFLAGS = $(X11_CFLAGS)
gntgf_la_CFLAGS = $(X11_CFLAGS)

gntclipboard_la_LIBADD = $(GLIB_LIBS) $(X11_LIBS)
gntgf_la_LIBADD       = $(GLIB_LIBS) $(X11_LIBS) $(top_builddir)/finch/libgnt/libgnt.la
gnthistory_la_LIBADD  = $(GLIB_LIBS)
gntlastlog_la_LIBADD  = $(GLIB_LIBS)
grouping_la_LIBADD    = $(GLIB_LIBS) $(top_builddir)/finch/libgnt/libgnt.la

endif # PLUGINS

EXTRA_DIST = pietray.py

AM_CPPFLAGS = \
	-DDATADIR=\"$(datadir)\" \
	-I$(top_builddir)/libpurple \
	-I$(top_srcdir)/libpurple \
	-I$(top_srcdir) \
	-I$(top_srcdir)/finch \
	-I$(top_srcdir)/finch/libgnt \
	$(DEBUG_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(GNT_CFLAGS) \
	$(PLUGIN_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_srcdir) $(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 -f .libs/libtmp$@.*