l10n: sync translations with transifex.com (es, pt_BR)
[siplcs.git] / src / core / Makefile.am
blobbc311be83e3d5a3f321684d58ec09e1202e08c64
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.h \
55         sipe-ft-tftp.c \
56         sipe-group.h \
57         sipe-group.c \
58         sipe-groupchat.h \
59         sipe-groupchat.c \
60         sipe-http.h \
61         sipe-http.c \
62         sipe-http-request.h \
63         sipe-http-request.c \
64         sipe-http-transport.h \
65         sipe-http-transport.c \
66         sipe-im.h \
67         sipe-im.c \
68         sipe-incoming.h \
69         sipe-incoming.c \
70         sipe-lync-autodiscover.h \
71         sipe-lync-autodiscover.c \
72         sipe-mime-common.c \
73         sipe-notify.h \
74         sipe-notify.c \
75         sipe-ocs2005.h \
76         sipe-ocs2005.c \
77         sipe-ocs2007.h \
78         sipe-ocs2007.c \
79         sipe-schedule.h \
80         sipe-schedule.c \
81         sipe-session.h \
82         sipe-session.c \
83         sipe-sign.h \
84         sipe-sign.c \
85         sipe-status.h \
86         sipe-status.c \
87         sipe-subscriptions.h \
88         sipe-subscriptions.c \
89         sipe-svc.h \
90         sipe-svc.c \
91         sipe-tls.h \
92         sipe-tls.c \
93         sipe-ucs.h \
94         sipe-ucs.c \
95         sipe-user.h \
96         sipe-user.c \
97         sipe-utils.h \
98         sipe-utils.c \
99         sipe-webticket.h \
100         sipe-webticket.c \
101         sipe-xml.h \
102         uuid.h \
103         uuid.c
105 if SIPE_OS_WIN32
106 libsipe_core_la_SOURCES += \
107         sip-sec-sspi.h \
108         sip-sec-sspi.c \
109         sipe-domino.h \
110         sipe-domino.c \
111         sipe-win32dep.h \
112         sipe-win32dep.c
113 else
115 if !SIP_SEC_GSSAPI_ONLY
116 libsipe_core_la_SOURCES += \
117         sip-sec-ntlm.h \
118         sip-sec-ntlm.c
120 noinst_LTLIBRARIES += \
121         libsipe_core_tests.la
123 libsipe_core_tests_la_SOURCES = \
124         sip-sec-ntlm-tests.c
125 libsipe_core_tests_la_LIBADD = \
126         libsipe_core_la-sipmsg.lo \
127         libsipe_core_la-sipe-sign.lo \
128         libsipe_core_la-sipe-utils.lo \
129         libsipe_core_la-uuid.lo
130 endif
132 endif
134 if SIPE_OPENSSL
135 libsipe_core_crypto_la_SOURCES = \
136         sipe-cert-crypto-openssl.c \
137         sipe-crypt-openssl.c \
138         sipe-digest-openssl.c
139 else
140 libsipe_core_crypto_la_SOURCES = \
141         sipe-cert-crypto-nss.c \
142         sipe-crypt-nss.c \
143         sipe-digest-nss.c
144 if !SIP_SEC_GSSAPI_ONLY
145 libsipe_core_crypto_la_SOURCES += \
146         md4.h \
147         md4.c
148 endif
149 endif
151 libsipe_core_libxml2_la_SOURCES = \
152         sipe-xml.c
154 AM_CFLAGS = $(st)
156 libsipe_core_la_CFLAGS = \
157         $(DEBUG_CFLAGS) \
158         $(QUALITY_CFLAGS) \
159         $(GLIB_CFLAGS) \
160         $(LOCALE_CPPFLAGS) \
161         -I$(srcdir)/../api
163 if !SIPE_OS_WIN32
164 if !SIP_SEC_GSSAPI_ONLY
165 libsipe_core_tests_la_CFLAGS = $(libsipe_core_la_CFLAGS)
166 endif
167 endif
169 if SIP_SEC_GSSAPI
170 libsipe_core_la_SOURCES += \
171         sip-sec-gssapi.h \
172         sip-sec-gssapi.c
173 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
175 if !SIP_SEC_GSSAPI_ONLY
176 libsipe_core_la_SOURCES += \
177         sip-sec-negotiate.h \
178         sip-sec-negotiate.c
179 endif
180 endif
183 if SIPE_MIME_GMIME
184 noinst_LTLIBRARIES           += libsipe_core_mime.la
185 libsipe_core_mime_la_SOURCES  = sipe-mime.c
186 libsipe_core_mime_la_CFLAGS   = $(libsipe_core_la_CFLAGS) $(GMIME_CFLAGS)
187 endif
189 if SIPE_OS_WIN32
190 libsipe_core_la_CFLAGS  += -DHAVE_SSPI=1
191 endif
193 libsipe_core_crypto_la_CFLAGS = \
194         $(libsipe_core_la_CFLAGS)
195 if SIPE_OPENSSL
196 libsipe_core_crypto_la_CFLAGS += \
197         $(OPENSSL_CFLAGS)
198 else
199 libsipe_core_crypto_la_CFLAGS += \
200         $(NSS_CFLAGS) \
201         $(VALGRIND_CFLAGS)
202 endif
204 libsipe_core_libxml2_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(LIBXML2_CFLAGS)
206 if SIPE_WITH_VV
207 libsipe_core_la_SOURCES += sipe-media.h sipe-media.c \
208         sdpmsg.h sdpmsg.c \
209         sipe-msrtp.c
210 endif
212 if SIPE_HAVE_XDATA
213 libsipe_core_la_SOURCES += \
214         sipe-ft-lync.h sipe-ft-lync.c
216 if SIPE_HAVE_APPSHARE
217 libsipe_core_la_SOURCES += \
218         sipe-appshare.c \
219         sipe-appshare.h \
220         sipe-appshare-client.h \
221         sipe-appshare-remmina.c \
222         sipe-appshare-xfreerdp.c
224 libsipe_core_la_CFLAGS += $(GIO_CFLAGS)
225 endif
226 endif
228 check_PROGRAMS =
230 check_PROGRAMS += sipe_xml_tests
231 sipe_xml_tests_SOURCES = sipe-xml-tests.c
232 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
233 sipe_xml_tests_LDADD = \
234         libsipe_core_libxml2.la \
235         libsipe_core_la-sipe-utils.lo \
236         $(LIBXML2_LIBS) \
237         $(GLIB_LIBS)
239 check_PROGRAMS += sip_sec_digest_tests
240 sip_sec_digest_tests_SOURCES = sip-sec-digest-tests.c
241 sip_sec_digest_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
242 sip_sec_digest_tests_LDADD = \
243         libsipe_core_la-sipe-utils.lo
244 if SIPE_OPENSSL
245 sip_sec_digest_tests_LDADD += \
246         libsipe_core_crypto_la-sipe-crypt-openssl.lo \
247         libsipe_core_crypto_la-sipe-digest-openssl.lo \
248         $(OPENSSL_LIBS)
249 else
250 sip_sec_digest_tests_LDADD += \
251         libsipe_core_crypto_la-sipe-crypt-nss.lo \
252         libsipe_core_crypto_la-sipe-digest-nss.lo \
253         $(NSS_LIBS)
254 endif
255 sip_sec_digest_tests_LDADD += \
256         $(GLIB_LIBS)
258 # disables "caching" of memory blocks in tests
259 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
260 TESTS = $(check_PROGRAMS)
262 noinst_PROGRAMS =
264 if !SIPE_OS_WIN32
265 # TODO: the code needs some TLC from a MinGW expert to compile...
266 noinst_PROGRAMS += sipe_tls_analyzer
267 sipe_tls_analyzer_SOURCES = sipe-tls-analyzer.c
268 sipe_tls_analyzer_CFLAGS = $(libsipe_core_la_CFLAGS)
269 sipe_tls_analyzer_LDADD = \
270         $(GLIB_LIBS)
272 noinst_PROGRAMS += sipe_tls_tester
273 sipe_tls_tester_SOURCES = sipe-tls-tester.c
274 sipe_tls_tester_CFLAGS = $(libsipe_core_la_CFLAGS)
275 sipe_tls_tester_LDADD = \
276         libsipe_core_la-sipe-tls.lo
278 if SIPE_OPENSSL
279 sipe_tls_tester_LDADD += \
280         libsipe_core_crypto_la-sipe-cert-crypto-openssl.lo \
281         libsipe_core_crypto_la-sipe-crypt-openssl.lo \
282         libsipe_core_crypto_la-sipe-digest-openssl.lo \
283         $(OPENSSL_LIBS)
284 else
285 sipe_tls_tester_LDADD += \
286         libsipe_core_crypto_la-sipe-cert-crypto-nss.lo \
287         libsipe_core_crypto_la-sipe-crypt-nss.lo \
288         libsipe_core_crypto_la-sipe-digest-nss.lo \
289         $(NSS_LIBS)
290 endif
291 sipe_tls_tester_LDADD += \
292         $(GLIB_LIBS)
293 endif
295 noinst_PROGRAMS += sipe_ntlm_analyzer
296 sipe_ntlm_analyzer_SOURCES = sip-sec-ntlm-analyzer.c
297 sipe_ntlm_analyzer_CFLAGS = $(libsipe_core_la_CFLAGS)
298 sipe_ntlm_analyzer_LDADD = \
299         $(GLIB_LIBS)