core cleanup: factor out purple MIME code
[siplcs.git] / src / core / Makefile.am
blob60ca6128f5d314c3d559bd60bacfe0e80406c04d
1 noinst_LTLIBRARIES = libsipe_core.la libsipe_core_purple.la
3 MAINTAINERCLEANFILES = \
4         Makefile.in
6 libsipe_core_la_SOURCES = \
7         sip-csta.h \
8         sip-csta.c \
9         sip-sec.h \
10         sip-sec.c \
11         sip-sec-mech.h \
12         sipe-cal.h \
13         sipe-cal.c \
14         sipe-chat.h \
15         sipe-chat.c \
16         sipe-dialog.h \
17         sipe-dialog.c \
18         sipe-session.h \
19         sipe-session.c \
20         sipe-sign.h \
21         sipe-sign.c \
22         sipe-xml.h \
23         sipe-xml.c
25 libsipe_core_purple_la_SOURCES = \
26         sip-prefix.h \
27         sipmsg.c \
28         sipmsg.h \
29         sipe.h \
30         sipe.c \
31         sipe-conf.h \
32         sipe-conf.c \
33         sipe-utils.h \
34         sipe-utils.c \
35         http-conn.h \
36         http-conn.c \
37         sipe-ews.h \
38         sipe-ews.c \
39         sipe-mime.h \
40         sipe-mime.c \
41         sip-sec-ntlm.h \
42         sip-sec-ntlm.c \
43         sipe-ft.h \
44         sipe-ft.c \
45         uuid.h \
46         uuid.c
48 AM_CFLAGS = $(st)
50 libsipe_core_la_CFLAGS = \
51         $(DEBUG_CFLAGS) \
52         $(QUALITY_CFLAGS) \
53         $(LIBXML2_CFLAGS) \
54         $(GLIB_CFLAGS) \
55         $(LOCALE_CPPFLAGS) \
56         -I$(srcdir)/../api
58 if SIP_SEC_KRB5
59 libsipe_core_la_SOURCES += sip-sec-krb5.h sip-sec-krb5.c
60 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
61 endif
63 if SIPE_INCLUDE_PURPLE
64 libsipe_core_purple_la_CFLAGS = \
65         $(libsipe_core_la_CFLAGS) \
66         $(PURPLE_CFLAGS) \
67         -I$(srcdir)/../purple
68 endif
70 check_PROGRAMS = sipe_xml_tests
71 sipe_xml_tests_SOURCES = sipe-xml-tests.c
72 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
73 sipe_xml_tests_LDADD = libsipe_core.la
74 sipe_xml_tests_LDFLAGS = $(LIBXML2_LIBS) $(GLIB_LIBS)
75 if SIPE_INCLUDE_PURPLE
76 sipe_xml_tests_LDADD   += libsipe_core_purple.la
77 sipe_xml_tests_LDFLAGS += $(PURPLE_LIBS)
78 endif
80 # disables "caching" of memory blocks in tests
81 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
82 TESTS = $(check_PROGRAMS)