audio: fix double compile of sipe-media.c
[siplcs.git] / src / core / Makefile.am
blob11d0703612480984e39ebd49f8df8dd57934ad3d
1 noinst_LTLIBRARIES = \
2         libsipe_core.la \
3         libsipe_core_tests.la \
4         libsipe_core_purple.la
6 MAINTAINERCLEANFILES = \
7         Makefile.in
9 EXTRA_DIST = \
10         sipe-win32dep.h \
11         sipe-win32dep.c
13 libsipe_core_la_SOURCES = \
14         http-conn.h \
15         http-conn.c \
16         sipmsg.h \
17         sipmsg.c \
18         sip-csta.h \
19         sip-csta.c \
20         sip-sec.h \
21         sip-sec.c \
22         sip-sec-mech.h \
23         sip-sec-ntlm.h \
24         sip-sec-ntlm.c \
25         sip-transport.h \
26         sip-transport.c \
27         sipe-buddy.h \
28         sipe-buddy.c \
29         sipe-cal.h \
30         sipe-cal.c \
31         sipe-chat.h \
32         sipe-chat.c \
33         sipe-core-private.h \
34         sipe-core.c \
35         sipe-dialog.h \
36         sipe-dialog.c \
37         sipe-domino.h \
38         sipe-domino.c \
39         sipe-ews.h \
40         sipe-ews.c \
41         sipe-schedule.h \
42         sipe-schedule.c \
43         sipe-session.h \
44         sipe-session.c \
45         sipe-sign.h \
46         sipe-sign.c \
47         sipe-utils.h \
48         sipe-utils.c \
49         sipe-xml.h \
50         sipe-xml.c \
51         uuid.h \
52         uuid.c
54 libsipe_core_tests_la_SOURCES = \
55         sip-sec-ntlm-tests.c
57 libsipe_core_purple_la_SOURCES = \
58         sipe.h \
59         sipe.c \
60         sipe-conf.h \
61         sipe-conf.c \
62         sipe-ft.h \
63         sipe-ft.c
65 AM_CFLAGS = $(st)
67 libsipe_core_la_CFLAGS = \
68         $(DEBUG_CFLAGS) \
69         $(QUALITY_CFLAGS) \
70         $(LIBXML2_CFLAGS) \
71         $(GLIB_CFLAGS) \
72         $(LOCALE_CPPFLAGS) \
73         -I$(srcdir)/../api
75 libsipe_core_tests_la_CFLAGS = $(libsipe_core_la_CFLAGS)
77 if SIP_SEC_KRB5
78 libsipe_core_la_SOURCES += sip-sec-krb5.h sip-sec-krb5.c
79 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
80 endif
82 if SIPE_MIME_GMIME
83 libsipe_core_la_SOURCES += sipe-mime.c
84 libsipe_core_la_CFLAGS  += $(GMIME_CFLAGS)
85 endif
87 if SIPE_CRYPTO_NSS
88 libsipe_core_la_SOURCES += \
89         md4.h \
90         md4.c \
91         sipe-crypt.c \
92         sipe-digest.c
93 libsipe_core_la_CFLAGS  += $(NSS_CFLAGS)
94 endif
96 if SIPE_INCLUDE_PURPLE
97 libsipe_core_purple_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(PURPLE_CFLAGS)
98 endif
100 if SIPE_WITH_VV
101 libsipe_core_la_SOURCES += sipe-media.h sipe-media.c
102 endif
104 check_PROGRAMS = sipe_xml_tests
105 sipe_xml_tests_SOURCES = sipe-xml-tests.c
106 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
107 sipe_xml_tests_LDADD = libsipe_core.la $(LIBXML2_LIBS) $(GLIB_LIBS)
109 # disables "caching" of memory blocks in tests
110 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
111 TESTS = $(check_PROGRAMS)