tests: remove obsolete purple init junk
[siplcs.git] / src / core / Makefile.am
blob89d3445e76400b36e43ed530e688105f4c6f020f
2 pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)
4 pkg_LTLIBRARIES = libsipe.la
6 MAINTAINERCLEANFILES = \
7         Makefile.in
9 libsipe_la_SOURCES = \
10         sip-prefix.h    \
11         sipmsg.c \
12         sipmsg.h \
13         sipe.h \
14         sipe.c \
15         sipe-chat.h \
16         sipe-chat.c \
17         sipe-conf.h \
18         sipe-conf.c \
19         sipe-dialog.h \
20         sipe-dialog.c \
21         sipe-nls.h \
22         sipe-session.h \
23         sipe-session.c \
24         sipe-utils.h \
25         sipe-utils.c \
26         sipe-cal.h \
27         sipe-cal.c \
28         http-conn.h \
29         http-conn.c \
30         sipe-ews.h \
31         sipe-ews.c \
32         sip-csta.c \
33         sip-csta.h \
34         sip-sec.h \
35         sip-sec.c \
36         sip-sec-mech.h \
37         sip-sec-ntlm.h \
38         sip-sec-ntlm.c \
39         sipe-sign.h \
40         sipe-sign.c \
41         sipe-ft.h \
42         sipe-ft.c \
43         uuid.h \
44         uuid.c
46 if SIP_SEC_KRB5
47 libsipe_la_SOURCES +=  \
48         sip-sec-krb5.h \
49         sip-sec-krb5.c
50 endif
52 AM_CFLAGS = $(st)
54 libsipe_la_CFLAGS = \
55         $(DEBUG_CFLAGS) \
56         $(QUALITY_CFLAGS) \
57         $(GLIB_CFLAGS) \
58         $(PURPLE_CFLAGS) \
59         $(LOCALE_CPPFLAGS) \
60         $(KRB5_CFLAGS) \
61         -DPURPLE_PLUGINS
63 libsipe_la_LDFLAGS = \
64         -module -avoid-version -no-undefined \
65         $(KRB5_LDFLAGS)
67 libsipe_la_LIBADD = \
68         $(GLIB_LIBS) \
69         $(PURPLE_LIBS) \
70         $(KRB5_LIBS)
72 tests: tests.c .libs/libsipe.so
73         set -e; \
74         $(CC) $(libsipe_la_CFLAGS) $^ -o $@; \
75         LD_LIBRARY_PATH=.libs ./tests; \
76         rm -f tests
78 # Remove any libsipe.so from the old incorrect installation location
79 install-exec-local:
80         rm -f $(DESTDIR)$(libdir)/pidgin/libsipe.so