media: fix relay candidate raddr and rport
[siplcs.git] / src / core / Makefile.am
blob9990a68fabf7e548a9641710f645665e3aa37060
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 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
163 if !SIP_SEC_GSSAPI_ONLY
164 libsipe_core_la_SOURCES += \
165         sip-sec-negotiate.h \
166         sip-sec-negotiate.c
167 endif
168 endif
171 if SIPE_MIME_GMIME
172 noinst_LTLIBRARIES           += libsipe_core_mime.la
173 libsipe_core_mime_la_SOURCES  = sipe-mime.c
174 libsipe_core_mime_la_CFLAGS   = $(libsipe_core_la_CFLAGS) $(GMIME_CFLAGS)
175 endif
177 if SIPE_OS_WIN32
178 libsipe_core_la_CFLAGS  += -DHAVE_SSPI=1
179 endif
181 libsipe_core_crypto_la_CFLAGS = \
182         $(libsipe_core_la_CFLAGS)
183 if SIPE_OPENSSL
184 libsipe_core_crypto_la_CFLAGS += \
185         $(OPENSSL_CFLAGS)
186 else
187 libsipe_core_crypto_la_CFLAGS += \
188         $(NSS_CFLAGS) \
189         $(VALGRIND_CFLAGS)
190 endif
192 libsipe_core_libxml2_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(LIBXML2_CFLAGS)
194 if SIPE_WITH_VV
195 libsipe_core_la_SOURCES += sipe-media.h sipe-media.c \
196         sdpmsg.h sdpmsg.c
197 endif
199 check_PROGRAMS =
201 check_PROGRAMS += sipe_xml_tests
202 sipe_xml_tests_SOURCES = sipe-xml-tests.c
203 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
204 sipe_xml_tests_LDADD = \
205         libsipe_core.la \
206         libsipe_core_libxml2.la \
207         $(LIBXML2_LIBS) \
208         $(GLIB_LIBS)
210 check_PROGRAMS += sip_sec_digest_tests
211 sip_sec_digest_tests_SOURCES = sip-sec-digest-tests.c
212 sip_sec_digest_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
213 sip_sec_digest_tests_LDADD = \
214         libsipe_core_la-sipe-utils.lo
215 if SIPE_OPENSSL
216 sip_sec_digest_tests_LDADD += \
217         libsipe_core_crypto_la-sipe-crypt-openssl.lo \
218         libsipe_core_crypto_la-sipe-digest-openssl.lo \
219         $(OPENSSL_LIBS)
220 else
221 sip_sec_digest_tests_LDADD += \
222         libsipe_core_crypto_la-sipe-crypt-nss.lo \
223         libsipe_core_crypto_la-sipe-digest-nss.lo \
224         $(NSS_LIBS)
225 endif
226 sip_sec_digest_tests_LDADD += \
227         $(GLIB_LIBS)
229 # disables "caching" of memory blocks in tests
230 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
231 TESTS = $(check_PROGRAMS)
233 noinst_PROGRAMS =
235 if !SIPE_OS_WIN32
236 # TODO: the code needs some TLC from a MinGW expert to compile...
237 noinst_PROGRAMS += sipe_tls_tester
238 sipe_tls_tester_SOURCES = sipe-tls-tester.c
239 sipe_tls_tester_CFLAGS = $(libsipe_core_la_CFLAGS)
240 sipe_tls_tester_LDADD = \
241         libsipe_core_la-sipe-tls.lo
242 if SIPE_OPENSSL
243 sipe_tls_tester_LDADD += \
244         libsipe_core_crypto_la-sipe-cert-crypto-openssl.lo \
245         libsipe_core_crypto_la-sipe-crypt-openssl.lo \
246         libsipe_core_crypto_la-sipe-digest-openssl.lo \
247         $(OPENSSL_LIBS)
248 else
249 sipe_tls_tester_LDADD += \
250         libsipe_core_crypto_la-sipe-cert-crypto-nss.lo \
251         libsipe_core_crypto_la-sipe-crypt-nss.lo \
252         libsipe_core_crypto_la-sipe-digest-nss.lo \
253         $(NSS_LIBS)
254 endif
255 sipe_tls_tester_LDADD += \
256         $(GLIB_LIBS)
257 endif
259 noinst_PROGRAMS += sipe_ntlm_analyzer
260 sipe_ntlm_analyzer_SOURCES = sip-sec-ntlm-analyzer.c
261 sipe_ntlm_analyzer_CFLAGS = $(libsipe_core_la_CFLAGS)
262 sipe_ntlm_analyzer_LDADD = \
263         $(GLIB_LIBS)