build: don't use _LDFLAGS for -L/-l options
[siplcs.git] / src / core / Makefile.am
blob346a1b193fb7d0f0d4355dc18c30ad364044dc7e
1 noinst_LTLIBRARIES = \
2         libsipe_core.la \
3         libsipe_core_tests.la \
4         libsipe_core_purple.la
6 MAINTAINERCLEANFILES = \
7         Makefile.in
9 libsipe_core_la_SOURCES = \
10         sipmsg.h \
11         sipmsg.c \
12         sip-csta.h \
13         sip-csta.c \
14         sip-sec.h \
15         sip-sec.c \
16         sip-sec-mech.h \
17         sip-sec-ntlm.h \
18         sip-sec-ntlm.c \
19         sipe-cal.h \
20         sipe-cal.c \
21         sipe-chat.h \
22         sipe-chat.c \
23         sipe-dialog.h \
24         sipe-dialog.c \
25         sipe-session.h \
26         sipe-session.c \
27         sipe-sign.h \
28         sipe-sign.c \
29         sipe-utils.h \
30         sipe-utils.c \
31         sipe-xml.h \
32         sipe-xml.c \
33         uuid.h \
34         uuid.c
36 libsipe_core_tests_la_SOURCES = \
37         sip-sec-ntlm-tests.c
39 libsipe_core_purple_la_SOURCES = \
40         sipe.h \
41         sipe.c \
42         sipe-conf.h \
43         sipe-conf.c \
44         http-conn.h \
45         http-conn.c \
46         sipe-ews.h \
47         sipe-ews.c \
48         sipe-ft.h \
49         sipe-ft.c
51 AM_CFLAGS = $(st)
53 libsipe_core_la_CFLAGS = \
54         $(DEBUG_CFLAGS) \
55         $(QUALITY_CFLAGS) \
56         $(LIBXML2_CFLAGS) \
57         $(GLIB_CFLAGS) \
58         $(LOCALE_CPPFLAGS) \
59         -I$(srcdir)/../api
61 libsipe_core_tests_la_CFLAGS = $(libsipe_core_la_CFLAGS)
63 if SIP_SEC_KRB5
64 libsipe_core_la_SOURCES += sip-sec-krb5.h sip-sec-krb5.c
65 libsipe_core_la_CFLAGS  += $(KRB5_CFLAGS)
66 endif
68 if SIPE_MIME_GMIME
69 libsipe_core_la_SOURCES += sipe-mime.c
70 libsipe_core_la_CFLAGS  += $(GMIME_CFLAGS)
71 endif
73 if SIPE_INCLUDE_PURPLE
74 libsipe_core_purple_la_CFLAGS = $(libsipe_core_la_CFLAGS) $(PURPLE_CFLAGS)
75 endif
77 check_PROGRAMS = sipe_xml_tests
78 sipe_xml_tests_SOURCES = sipe-xml-tests.c
79 sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS)
80 sipe_xml_tests_LDADD = libsipe_core.la $(LIBXML2_LIBS) $(GLIB_LIBS)
82 # disables "caching" of memory blocks in tests
83 TESTS_ENVIRONMENT = G_SLICE="always-malloc"
84 TESTS = $(check_PROGRAMS)