libpurple/protocols/gg/Makefile.am

Mon, 20 Aug 2012 16:07:55 +0200

author
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
date
Mon, 20 Aug 2012 16:07:55 +0200
branch
soc.2012.gg
changeset 33346
3b4cbb0e10d6
parent 33343
09f740724036
child 33351
bd15903d0d89
permissions
-rw-r--r--

Gadu-Gadu: public directory search with gg10.5 api

V=0

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

EXTRA_DIST = \
	Makefile.mingw \
	lib/COPYING

if USE_INTERNAL_LIBGADU
INTGGSOURCES = \
	lib/common.c \
	lib/compat.h \
	lib/config.h \
	lib/dcc.c \
	lib/dcc7.c \
	lib/debug.c \
	lib/debug.h \
	lib/deflate.c \
	lib/deflate.h \
	lib/encoding.c \
	lib/encoding.h \
	lib/events.c \
	lib/handlers.c \
	lib/http.c \
	lib/internal.h \
	lib/libgadu.c \
	lib/libgadu.h \
	lib/message.c \
	lib/message.h \
	lib/obsolete.c \
	lib/protocol.h \
	lib/pubdir.c \
	lib/pubdir50.c \
	lib/resolver.c \
	lib/resolver.h \
	lib/session.h \
	lib/sha1.c

INTGG_CFLAGS = -I$(top_srcdir)/libpurple/protocols/gg/lib \
	$(ZLIB_CFLAGS) \
	-DGG_IGNORE_DEPRECATED \
	-DGG_INTERNAL_LIBGADU_VERSION=$(GADU_LIBGADU_VERSION)
GADU_LIBS += $(ZLIB_LIBS)
endif

if USE_GNUTLS
GADU_LIBS += $(GNUTLS_LIBS)
GADU_CFLAGS += $(GNUTLS_CFLAGS)
endif

GGSOURCES = \
	$(INTGGSOURCES) \
	utils.h \
	utils.c \
	confer.h \
	confer.c \
	buddylist.h \
	buddylist.c \
	gg.h \
	gg.c \
	resolver-purple.h \
	resolver-purple.c \
	image.h \
	image.c \
	account.h \
	account.c \
	deprecated.h \
	deprecated.c \
	purplew.h \
	purplew.c \
	libgaduw.h \
	libgaduw.c \
	avatar.h \
	avatar.c \
	libgadu-events.h \
	libgadu-events.c \
	roster.c \
	roster.h \
	validator.c \
	validator.h \
	xml.c \
	xml.h \
	multilogon.c \
	multilogon.h \
	status.c \
	status.h \
	servconn.c \
	servconn.h \
	pubdir-prpl.c \
	pubdir-prpl.h \
	oauth/oauth.c \
	oauth/oauth.h \
	oauth/oauth-parameter.c \
	oauth/oauth-parameter.h \
	oauth/oauth-purple.c \
	oauth/oauth-purple.h

AM_CFLAGS = $(st)

libgg_la_LDFLAGS = -module -avoid-version

if STATIC_GG

st = -DPURPLE_STATIC_PRPL $(GADU_CFLAGS)
noinst_LTLIBRARIES = libgg.la
libgg_la_SOURCES = $(GGSOURCES)
libgg_la_CFLAGS  = $(AM_CFLAGS)
libgg_la_LIBADD  = $(GADU_LIBS)

else

st = $(GADU_CFLAGS)
pkg_LTLIBRARIES = libgg.la
libgg_la_SOURCES = $(GGSOURCES)
libgg_la_LIBADD  = $(GLIB_LIBS) $(GADU_LIBS)

endif

AM_CPPFLAGS = \
	-Wall -Wextra -Werror \
	-I$(top_srcdir)/libpurple \
	-I$(top_builddir)/libpurple \
	$(INTGG_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(DEBUG_CFLAGS)

mercurial