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