c64321174592518cf8f84a9d544cdc41bdda26b6
[claws.git] / src / plugins / spamassassin / Makefile.am
1 # Makefile.am for "src/plugins/spamassassin" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_files = claws-mail-spamassasin.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
8 EXTRA_DIST = $(appdata_files)
9
10 plugindir = $(pkglibdir)/plugins
11
12 if BUILD_SPAMASSASSIN_PLUGIN
13 plugin_LTLIBRARIES = spamassassin.la
14 endif
15
16 spamassassin_la_SOURCES = \
17         spamassassin.c spamassassin.h \
18         spamassassin_gtk.c spamassassin.h \
19         libspamc.c libspamc.h \
20         utils.c utils.h
21
22 spamassassin_la_LDFLAGS = \
23         -avoid-version -module
24
25 if CYGWIN
26 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
27 else
28 cygwin_export_lib =
29 endif
30 spamassassin_la_LIBADD = $(cygwin_export_lib) \
31         $(GTK_LIBS)
32
33 spamassassin_la_CPPFLAGS = \
34         -I$(top_srcdir)/src \
35         -I$(top_srcdir)/src/common \
36         -I$(top_builddir)/src/common \
37         -I$(top_srcdir)/src/gtk \
38         $(ENCHANT_CFLAGS) \
39         $(GLIB_CFLAGS) \
40         $(GTK_CFLAGS)
41
42 EXTRA_DIST = \
43         README