fix CID 1596595: Resource leaks, and CID 1596594: (CHECKED_RETURN)
[claws.git] / src / common / Makefile.am
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
6 if BUILD_TESTS
7 include $(top_srcdir)/tests.mk
8 SUBDIRS = . tests
9 endif
10
11 PLUGINDIR = $(pkglibdir)/plugins/
12 DESKTOPFILEPATH=$(datadir)/applications/claws-mail.desktop
13
14 noinst_LTLIBRARIES = libclawscommon.la
15
16 if OS_WIN32
17 arch_sources = w32_reg.c
18 arch_headers = w32_reg.h
19 else
20 arch_files = 
21 arch_header = 
22 endif
23
24 libclawscommon_la_SOURCES = $(arch_sources) \
25         codeconv.c \
26         file-utils.c \
27         hooks.c \
28         log.c \
29         md5.c \
30         mgutils.c \
31         passcrypt.c \
32         plugin.c \
33         prefs.c \
34         progressindicator.c \
35         proxy.c \
36         quoted-printable.c \
37         session.c \
38         smtp.c \
39         socket.c \
40         ssl.c \
41         ssl_certificate.c \
42         string_match.c \
43         stringtable.c \
44         claws.c \
45         tags.c \
46         template.c \
47         utils.c \
48         uuencode.c \
49         xml.c \
50         xmlprops.c \
51         pkcs5_pbkdf2.c \
52         unmime.c
53
54 clawscommonincludedir = $(pkgincludedir)/common
55 clawscommoninclude_HEADERS = $(arch_headers) \
56         codeconv.h \
57         file-utils.h \
58         defs.h \
59         hooks.h \
60         log.h \
61         md5.h \
62         mgutils.h \
63         passcrypt.h \
64         plugin.h \
65         prefs.h \
66         progressindicator.h \
67         proxy.h \
68         quoted-printable.h \
69         session.h \
70         smtp.h \
71         socket.h \
72         ssl_certificate.h \
73         ssl.h \
74         string_match.h \
75         stringtable.h \
76         claws.h \
77         tags.h \
78         template.h \
79         timing.h \
80         tlds.h \
81         utils.h \
82         uuencode.h \
83         version.h \
84         xml.h \
85         xmlprops.h \
86         pkcs5_pbkdf2.h \
87         unmime.h
88
89 AM_CPPFLAGS = \
90         -I$(top_srcdir)/intl \
91         $(GLIB_CFLAGS) \
92         $(VALGRIND_CFLAGS) \
93         -DLOCALEDIR=\""$(localedir)"\" \
94         -DPLUGINDIR=\"$(PLUGINDIR)\" \
95         -DDATAROOTDIR=\""$(datarootdir)"\" \
96         -DDESKTOPFILEPATH=\"$(DESKTOPFILEPATH)\" \
97         -DGTK_DISABLE_DEPRECATED
98
99 libclawscommon_la_LIBADD = \
100         $(GLIB_LIBS) \
101         $(CRYPT_LIBS) \
102         $(PTHREAD_LIBS)
103
104 EXTRA_DIST = \
105         version.h.in