1# Copyright 1999-2014 the Claws Mail team.
2# This file is part of Claws Mail package, and distributed under the
3# terms of the General Public License version 3 (or later).
4# See COPYING file for license details.
5
6if BUILD_TESTS
7include $(top_srcdir)/tests.mk
8SUBDIRS = . tests
9endif
10
11PLUGINDIR = $(pkglibdir)/plugins/
12DESKTOPFILEPATH=$(datadir)/applications/claws-mail.desktop
13
14noinst_LTLIBRARIES = libclawscommon.la
15
16if OS_WIN32
17arch_sources = w32_reg.c w32_signal.c w32_stat.c \
18               w32_stdlib.c w32_string.c w32_time.c \
19               w32_unistd.c w32_wait.c w32_account.c
20arch_headers = w32lib.h
21else
22arch_files =
23arch_header =
24endif
25
26libclawscommon_la_SOURCES = $(arch_sources) \
27	codeconv.c \
28	file-utils.c \
29	hooks.c \
30	log.c \
31	md5.c \
32	mgutils.c \
33	passcrypt.c \
34	plugin.c \
35	prefs.c \
36	progressindicator.c \
37	proxy.c \
38	quoted-printable.c \
39	session.c \
40	smtp.c \
41	socket.c \
42	ssl.c \
43	ssl_certificate.c \
44	string_match.c \
45	stringtable.c \
46	claws.c \
47	tags.c \
48	template.c \
49	utils.c \
50	uuencode.c \
51	xml.c \
52	xmlprops.c \
53	pkcs5_pbkdf2.c \
54	unmime.c
55
56clawscommonincludedir = $(pkgincludedir)/common
57clawscommoninclude_HEADERS = $(arch_headers) \
58	codeconv.h \
59	file-utils.h \
60	defs.h \
61	hooks.h \
62	log.h \
63	md5.h \
64	mgutils.h \
65	passcrypt.h \
66	plugin.h \
67	prefs.h \
68	progressindicator.h \
69	proxy.h \
70	quoted-printable.h \
71	session.h \
72	smtp.h \
73	socket.h \
74	ssl_certificate.h \
75	ssl.h \
76	string_match.h \
77	stringtable.h \
78	claws.h \
79	tags.h \
80	template.h \
81	timing.h \
82	tlds.h \
83	utils.h \
84	uuencode.h \
85	version.h \
86	xml.h \
87	xmlprops.h \
88	pkcs5_pbkdf2.h \
89	unmime.h
90
91AM_CPPFLAGS = \
92	-I$(top_srcdir)/intl \
93	$(GLIB_CFLAGS) \
94	$(VALGRIND_CFLAGS) \
95	-DLOCALEDIR=\""$(localedir)"\" \
96	-DPLUGINDIR=\"$(PLUGINDIR)\" \
97	-DDATAROOTDIR=\""$(datarootdir)"\" \
98	-DDESKTOPFILEPATH=\"$(DESKTOPFILEPATH)\" \
99	-DGTK_DISABLE_DEPRECATED
100
101libclawscommon_la_LIBADD = \
102	$(GLIB_LIBS) \
103	$(CRYPT_LIBS) \
104	$(PTHREAD_LIBS)
105
106EXTRA_DIST = \
107	version.h.in
108