Merge branch 'mob' of git+ssh://repo.or.cz/srv/git/siplcs into mob
[siplcs.git] / src / core / Makefile.am
blobb9d229ba0b99cdce311db7485f8d5a428450dd1a
1 noinst_LTLIBRARIES = \
2         libsipe_core.la \
3         libsipe_core_tests.la \
4         libsipe_core_purple.la
6 MAINTAINERCLEANFILES = \
7         Makefile.in
9 if !SIPE_OS_WIN32
10 EXTRA_DIST = \
11         sipe-win32dep.h \
12         sipe-win32dep.c
13 endif
15 libsipe_core_la_SOURCES = \
16         http-conn.h \
17         http-conn.c \
18         sipmsg.h \
19         sipmsg.c \
20         sip-csta.h \
21         sip-csta.c \
22         sip-sec.h \
23         sip-sec.c \
24         sip-sec-mech.h \
25         sip-sec-ntlm.h \
26         sip-sec-ntlm.c \
27         sip-transport.h \
28         sip-transport.c \
29         sipe-buddy.h \
30         sipe-buddy.c \
31         sipe-cal.h \
32         sipe-cal.c \
33         sipe-chat.h \
34         sipe-chat.c \
35         sipe-conf.h \
36         sipe-conf.c \
37         sipe-core-private.h \
38         sipe-core.c \
39         sipe-dialog.h \
40         sipe-dialog.c \
41         sipe-domino.h \
42         sipe-domino.c \
43         sipe-ews.h \
44         sipe-ews.c \
45         sipe-ft.h \
46         sipe-ft.c \
47         sipe-groupchat.h \
48         sipe-groupchat.c \
49         sipe-incoming.h \
50         sipe-incoming.c \
51         sipe-schedule.h \
52         sipe-schedule.c \
53         sipe-session.h \
54         sipe-session.c \
55         sipe-sign.h \
56         sipe-sign.c \
57         sipe-subscriptions.h \
58         sipe-subscriptions.c \
59         sipe-user.c \
60         sipe-xml.h \
61         sipe-xml.c \
62         uuid.h \
63         uuid.c
65 if SIPE_OS_WIN32
66 libsipe_core_la_SOURCES += \
67         sipe-win32dep.h \
68         sipe-win32dep.c
69 else
70 libsipe_core_la_SOURCES += \
71         sipe-utils.h \
72         sipe-utils.c
73 endif
75 libsipe_core_tests_la_SOURCES = \
76         sip-sec-ntlm-tests.c
78 libsipe_core_purple_la_SOURCES = \
79         sipe.h \
80         sipe.c
82 if SIPE_OS_WIN32
83 # sipe-utils.c contain windows networking dependency wrapped in purple
84 libsipe_core_purple_la_SOURCES += \
85         sipe-utils.h \
86         sipe-utils.c
87 endif
89 AM_CFLAGS = $(st)
91 libsipe_core_la_CFLAGS = \
92         $(DEBUG_CFLAGS) \
93         $(QUALITY_CFLAGS) \
94         $(LIBXML2_CFLAGS) \
95         $(GLIB_CFLAGS) \
96         $(LOCALE_CPPFLAGS) \
97         -I$(srcdir)/../api
99 libsipe_core_tests_la_CFLAGS = $(libsipe_core_la_CFLAGS)
101 if SIP_SEC_KRB5
102 libsipe_core_la_SOURCES += sip-sec-krb5.h sip-sec-krb5.c
103 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
104 endif
106 if SIPE_MIME_GMIME
107 libsipe_core_la_SOURCES += sipe-mime.c
108 libsipe_core_la_CFLAGS  += $(GMIME_CFLAGS)
109 endif
111 if SIPE_CRYPTO_NSS
112 libsipe_core_la_SOURCES += \
113         md4.h \
114         md4.c \
115         sipe-crypt.c \
116         sipe-digest.c
117 libsipe_core_la_CFLAGS  += $(NSS_CFLAGS)
118 endif
120 if SIPE_INCLUDE_PURPLE
121 libsipe_core_purple_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(PURPLE_CFLAGS)
122 endif
124 if SIPE_WITH_VV
125 libsipe_core_la_SOURCES += sipe-media.h sipe-media.c \
126         sdpmsg.h sdpmsg.c
127 endif
129 check_PROGRAMS = sipe_xml_tests
130 sipe_xml_tests_SOURCES = sipe-xml-tests.c
131 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
132 sipe_xml_tests_LDADD = libsipe_core.la $(LIBXML2_LIBS) $(GLIB_LIBS)
134 # disables "caching" of memory blocks in tests
135 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
136 TESTS = $(check_PROGRAMS)