core cleanup: compile clean core modules without purple flags
[siplcs.git] / src / purple / Makefile.am
blobf694c7dcedf408cb6e6dafe5b5ae6a03c23b07a7
1 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
3 pkg_LTLIBRARIES = libsipe.la
5 MAINTAINERCLEANFILES = \
6         Makefile.in
8 EXTRA_DIST = \
9         core-depurple.h
11 libsipe_la_SOURCES = \
12         purple-debug.c \
13         purple-plugin.c
15 AM_CFLAGS = $(st)
17 libsipe_la_CFLAGS = \
18         $(DEBUG_CFLAGS) \
19         $(QUALITY_CFLAGS) \
20         $(GLIB_CFLAGS) \
21         $(LOCALE_CPPFLAGS) \
22         $(PURPLE_CFLAGS) \
23         -I$(srcdir)/../api \
24         -I$(srcdir)/../core
26 libsipe_la_LDFLAGS = \
27         -module -avoid-version -no-undefined
29 libsipe_la_LIBADD = \
30         ../core/libsipe_core.la \
31         ../core/libsipe_core_purple.la \
32         $(LIBXML2_LIBS) \
33         $(GLIB_LIBS) \
34         $(PURPLE_LIBS)
36 if SIP_SEC_KRB5
37 libsipe_la_LDFLAGS += $(KRB5_LDFLAGS)
38 libsipe_la_LIBADD  += $(KRB5_LIBS)
39 endif
41 check_PROGRAMS = tests
42 tests_SOURCES = tests.c
43 tests_CFLAGS = $(libsipe_la_CFLAGS)
44 tests_LDADD = ../core/libsipe_core_purple.la
45 tests_LDFLAGS = $(PURPLE_LIBS)
47 TESTS = $(check_PROGRAMS)
49 # Remove any libsipe.so from the old incorrect installation location
50 install-exec-local:
51         rm -f $(DESTDIR)$(libdir)/pidgin/libsipe.so