ucs: fix Persona key extraction
[siplcs.git] / src / core / Makefile.am
blob8f4fc1afc45d96c03203e2f704310f6afa3bd1f5
1 EXTRA_DIST = \
2         Makefile.mingw \
3         libsiperc.rc.in
5 noinst_LTLIBRARIES = \
6         libsipe_core.la \
7         libsipe_core_crypto.la \
8         libsipe_core_libxml2.la
10 MAINTAINERCLEANFILES = \
11         Makefile.in
13 libsipe_core_la_SOURCES = \
14         sipmsg.h \
15         sipmsg.c \
16         sip-csta.h \
17         sip-csta.c \
18         sip-sec.h \
19         sip-sec.c \
20         sip-sec-basic.h \
21         sip-sec-basic.c \
22         sip-sec-digest.h \
23         sip-sec-digest.c \
24         sip-sec-mech.h \
25         sip-sec-tls-dsk.h \
26         sip-sec-tls-dsk.c \
27         sip-soap.h \
28         sip-soap.c \
29         sip-transport.h \
30         sip-transport.c \
31         sipe-buddy.h \
32         sipe-buddy.c \
33         sipe-cal.h \
34         sipe-cal.c \
35         sipe-certificate.h \
36         sipe-certificate.c \
37         sipe-cert-crypto.h \
38         sipe-chat.h \
39         sipe-chat.c \
40         sipe-conf.h \
41         sipe-conf.c \
42         sipe-core-private.h \
43         sipe-core.c \
44         sipe-crypt.h \
45         sipe-dialog.h \
46         sipe-dialog.c \
47         sipe-digest.h \
48         sipe-ews.h \
49         sipe-ews.c \
50         sipe-ews-autodiscover.h \
51         sipe-ews-autodiscover.c \
52         sipe-ft.h \
53         sipe-ft.c \
54         sipe-ft-tftp.c \
55         sipe-group.h \
56         sipe-group.c \
57         sipe-groupchat.h \
58         sipe-groupchat.c \
59         sipe-http.h \
60         sipe-http.c \
61         sipe-http-request.h \
62         sipe-http-request.c \
63         sipe-http-transport.h \
64         sipe-http-transport.c \
65         sipe-im.h \
66         sipe-im.c \
67         sipe-incoming.h \
68         sipe-incoming.c \
69         sipe-notify.h \
70         sipe-notify.c \
71         sipe-ocs2005.h \
72         sipe-ocs2005.c \
73         sipe-ocs2007.h \
74         sipe-ocs2007.c \
75         sipe-schedule.h \
76         sipe-schedule.c \
77         sipe-session.h \
78         sipe-session.c \
79         sipe-sign.h \
80         sipe-sign.c \
81         sipe-status.h \
82         sipe-status.c \
83         sipe-subscriptions.h \
84         sipe-subscriptions.c \
85         sipe-svc.h \
86         sipe-svc.c \
87         sipe-tls.h \
88         sipe-tls.c \
89         sipe-ucs.h \
90         sipe-ucs.c \
91         sipe-user.h \
92         sipe-user.c \
93         sipe-utils.h \
94         sipe-utils.c \
95         sipe-webticket.h \
96         sipe-webticket.c \
97         sipe-xml.h \
98         uuid.h \
99         uuid.c
101 if SIPE_OS_WIN32
102 libsipe_core_la_SOURCES += \
103         sip-sec-sspi.h \
104         sip-sec-sspi.c \
105         sipe-domino.h \
106         sipe-domino.c \
107         sipe-win32dep.h \
108         sipe-win32dep.c
109 else
111 if !SIP_SEC_GSSAPI_ONLY
112 libsipe_core_la_SOURCES += \
113         md4.h \
114         md4.c \
115         sip-sec-ntlm.h \
116         sip-sec-ntlm.c
118 noinst_LTLIBRARIES += \
119         libsipe_core_tests.la
121 libsipe_core_tests_la_SOURCES = \
122         sip-sec-ntlm-tests.c
123 endif
125 endif
127 if SIPE_OPENSSL
128 libsipe_core_crypto_la_SOURCES = \
129         sipe-cert-crypto-openssl.c \
130         sipe-crypt-openssl.c \
131         sipe-digest-openssl.c
132 else
133 libsipe_core_crypto_la_SOURCES = \
134         sipe-cert-crypto-nss.c \
135         sipe-crypt-nss.c \
136         sipe-digest-nss.c
137 endif
139 libsipe_core_libxml2_la_SOURCES = \
140         sipe-xml.c
142 AM_CFLAGS = $(st)
144 libsipe_core_la_CFLAGS = \
145         $(DEBUG_CFLAGS) \
146         $(QUALITY_CFLAGS) \
147         $(GLIB_CFLAGS) \
148         $(LOCALE_CPPFLAGS) \
149         -I$(srcdir)/../api
151 if !SIPE_OS_WIN32
152 if !SIP_SEC_GSSAPI_ONLY
153 libsipe_core_tests_la_CFLAGS = $(libsipe_core_la_CFLAGS)
154 endif
155 endif
157 if SIP_SEC_GSSAPI
158 libsipe_core_la_SOURCES += \
159         sip-sec-gssapi.h \
160         sip-sec-gssapi.c \
161         sip-sec-negotiate.h \
162         sip-sec-negotiate.c
163 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
164 endif
167 if SIPE_MIME_GMIME
168 noinst_LTLIBRARIES           += libsipe_core_mime.la
169 libsipe_core_mime_la_SOURCES  = sipe-mime.c
170 libsipe_core_mime_la_CFLAGS   = $(libsipe_core_la_CFLAGS) $(GMIME_CFLAGS)
171 endif
173 if SIPE_OS_WIN32
174 libsipe_core_la_CFLAGS  += -DHAVE_SSPI=1
175 endif
177 libsipe_core_crypto_la_CFLAGS = \
178         $(libsipe_core_la_CFLAGS)
179 if SIPE_OPENSSL
180 libsipe_core_crypto_la_CFLAGS += \
181         $(OPENSSL_CFLAGS)
182 else
183 libsipe_core_crypto_la_CFLAGS += \
184         $(NSS_CFLAGS) \
185         $(VALGRIND_CFLAGS)
186 endif
188 libsipe_core_libxml2_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(LIBXML2_CFLAGS)
190 if SIPE_WITH_VV
191 libsipe_core_la_SOURCES += sipe-media.h sipe-media.c \
192         sdpmsg.h sdpmsg.c
193 endif
195 check_PROGRAMS =
197 check_PROGRAMS += sipe_xml_tests
198 sipe_xml_tests_SOURCES = sipe-xml-tests.c
199 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
200 sipe_xml_tests_LDADD = \
201         libsipe_core.la \
202         libsipe_core_libxml2.la \
203         $(LIBXML2_LIBS) \
204         $(GLIB_LIBS)
206 check_PROGRAMS += sip_sec_digest_tests
207 sip_sec_digest_tests_SOURCES = sip-sec-digest-tests.c
208 sip_sec_digest_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
209 sip_sec_digest_tests_LDADD = \
210         libsipe_core_la-sipe-utils.lo
211 if SIPE_OPENSSL
212 sip_sec_digest_tests_LDADD += \
213         libsipe_core_crypto_la-sipe-crypt-openssl.lo \
214         libsipe_core_crypto_la-sipe-digest-openssl.lo \
215         $(OPENSSL_LIBS)
216 else
217 sip_sec_digest_tests_LDADD += \
218         libsipe_core_crypto_la-sipe-crypt-nss.lo \
219         libsipe_core_crypto_la-sipe-digest-nss.lo \
220         $(NSS_LIBS)
221 endif
222 sip_sec_digest_tests_LDADD += \
223         $(GLIB_LIBS)
225 # disables "caching" of memory blocks in tests
226 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
227 TESTS = $(check_PROGRAMS)
229 noinst_PROGRAMS =
231 if !SIPE_OS_WIN32
232 # TODO: the code needs some TLC from a MinGW expert to compile...
233 noinst_PROGRAMS += sipe_tls_tester
234 sipe_tls_tester_SOURCES = sipe-tls-tester.c
235 sipe_tls_tester_CFLAGS = $(libsipe_core_la_CFLAGS)
236 sipe_tls_tester_LDADD = \
237         libsipe_core_la-sipe-tls.lo
238 if SIPE_OPENSSL
239 sipe_tls_tester_LDADD += \
240         libsipe_core_crypto_la-sipe-cert-crypto-openssl.lo \
241         libsipe_core_crypto_la-sipe-crypt-openssl.lo \
242         libsipe_core_crypto_la-sipe-digest-openssl.lo \
243         $(OPENSSL_LIBS)
244 else
245 sipe_tls_tester_LDADD += \
246         libsipe_core_crypto_la-sipe-cert-crypto-nss.lo \
247         libsipe_core_crypto_la-sipe-crypt-nss.lo \
248         libsipe_core_crypto_la-sipe-digest-nss.lo \
249         $(NSS_LIBS)
250 endif
251 sipe_tls_tester_LDADD += \
252         $(GLIB_LIBS)
253 endif
255 noinst_PROGRAMS += sipe_ntlm_analyzer
256 sipe_ntlm_analyzer_SOURCES = sip-sec-ntlm-analyzer.c
257 sipe_ntlm_analyzer_CFLAGS = $(libsipe_core_la_CFLAGS)
258 sipe_ntlm_analyzer_LDADD = \
259         $(GLIB_LIBS)