view libpurple/protocols/yahoo/Makefile.am @ 31530:86598f5d7ebd

Yahoo: Fix a crash that happens when the PurpleAccount disconnects after purple_network_listen() is called in yahoo_send_p2p_pkt(), but before the callback for purple_network_listen() is called. This solution isn't perfect-- it will almost certainly fall flat on its face if yahoo_send_p2p_packet() is called twice in a row--but doesn't make matters worse. Fixes #12432. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author hanzz@soc.pidgin.im
date Thu, 30 Dec 2010 01:22:52 +0000
parents 35cb9aa9eb2f
children
line wrap: on
line source

EXTRA_DIST = \
	Makefile.mingw

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

YAHOOSOURCES = \
	libymsg.c \
	libymsg.h \
	util.c \
	yahoochat.h \
	yahoochat.c \
	yahoo_aliases.c \
	yahoo_aliases.h \
	yahoo_doodle.h \
	yahoo_doodle.c \
	yahoo_filexfer.h \
	yahoo_filexfer.c \
	yahoo_friend.h \
	yahoo_friend.c \
	yahoo_packet.h \
	yahoo_packet.c \
	yahoo_picture.c \
	yahoo_picture.h \
	yahoo_profile.c \
	ycht.c \
	ycht.h

AM_CFLAGS = $(st)

libyahoo_la_LDFLAGS = -module -avoid-version
libyahoojp_la_LDFLAGS = -module -avoid-version

if STATIC_YAHOO

st = -DPURPLE_STATIC_PRPL
noinst_LTLIBRARIES  = libymsg.la
libymsg_la_SOURCES = $(YAHOOSOURCES) libyahoo.c libyahoojp.c
libymsg_la_CFLAGS  = $(AM_CFLAGS)

else

st =
pkg_LTLIBRARIES     = libymsg.la libyahoo.la libyahoojp.la

libymsg_la_SOURCES = $(YAHOOSOURCES)
libymsg_la_LIBADD  = $(GLIB_LIBS)

libyahoo_la_SOURCES = libyahoo.c
libyahoo_la_LIBADD = libymsg.la

libyahoojp_la_SOURCES = libyahoojp.c
libyahoojp_la_LIBADD = libymsg.la

endif

AM_CPPFLAGS = \
	-I$(top_srcdir)/libpurple \
	-I$(top_builddir)/libpurple \
	$(GLIB_CFLAGS) \
	$(DEBUG_CFLAGS)