Fix #3198585: Extra line breaks
[siplcs.git] / src / core / Makefile.am
bloba3037151fd61c8c95cf374f305130a7eaf272f39
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-ft-tftp.c \
48         sipe-groupchat.h \
49         sipe-groupchat.c \
50         sipe-im.h \
51         sipe-im.c \
52         sipe-incoming.h \
53         sipe-incoming.c \
54         sipe-schedule.h \
55         sipe-schedule.c \
56         sipe-session.h \
57         sipe-session.c \
58         sipe-sign.h \
59         sipe-sign.c \
60         sipe-subscriptions.h \
61         sipe-subscriptions.c \
62         sipe-user.c \
63         sipe-user.h \
64         sipe-xml.h \
65         sipe-xml.c \
66         uuid.h \
67         uuid.c
69 if SIPE_OS_WIN32
70 libsipe_core_la_SOURCES += \
71         sipe-win32dep.h \
72         sipe-win32dep.c
73 else
74 libsipe_core_la_SOURCES += \
75         sipe-utils.h \
76         sipe-utils.c
77 endif
79 libsipe_core_tests_la_SOURCES = \
80         sip-sec-ntlm-tests.c
82 libsipe_core_purple_la_SOURCES = \
83         sipe.h \
84         sipe.c
86 if SIPE_OS_WIN32
87 # sipe-utils.c contain windows networking dependency wrapped in purple
88 libsipe_core_purple_la_SOURCES += \
89         sipe-utils.h \
90         sipe-utils.c
91 endif
93 AM_CFLAGS = $(st)
95 libsipe_core_la_CFLAGS = \
96         $(DEBUG_CFLAGS) \
97         $(QUALITY_CFLAGS) \
98         $(LIBXML2_CFLAGS) \
99         $(GLIB_CFLAGS) \
100         $(LOCALE_CPPFLAGS) \
101         -I$(srcdir)/../api
103 libsipe_core_tests_la_CFLAGS = $(libsipe_core_la_CFLAGS)
105 if SIP_SEC_KRB5
106 libsipe_core_la_SOURCES += sip-sec-krb5.h sip-sec-krb5.c
107 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
108 endif
110 if SIPE_MIME_GMIME
111 libsipe_core_la_SOURCES += sipe-mime.c
112 libsipe_core_la_CFLAGS  += $(GMIME_CFLAGS)
113 endif
115 if SIPE_CRYPTO_NSS
116 libsipe_core_la_SOURCES += \
117         md4.h \
118         md4.c \
119         sipe-crypt.c \
120         sipe-digest.c
121 libsipe_core_la_CFLAGS  += $(NSS_CFLAGS)
122 endif
124 if SIPE_INCLUDE_PURPLE
125 libsipe_core_purple_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(PURPLE_CFLAGS)
126 endif
128 if SIPE_WITH_VV
129 libsipe_core_la_SOURCES += sipe-media.h sipe-media.c \
130         sdpmsg.h sdpmsg.c
131 endif
133 check_PROGRAMS = sipe_xml_tests
134 sipe_xml_tests_SOURCES = sipe-xml-tests.c
135 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
136 sipe_xml_tests_LDADD = libsipe_core.la $(LIBXML2_LIBS) $(GLIB_LIBS)
138 # disables "caching" of memory blocks in tests
139 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
140 TESTS = $(check_PROGRAMS)