update copyright year
[claws.git] / src / plugins / bsfilter / Makefile.am
1 # Copyright 1999-2021 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 EXTRA_DIST = claws.def plugin.def
7
8 IFLAGS = \
9         -I$(top_builddir)/src \
10         -I$(top_srcdir)/src \
11         -I$(top_srcdir)/src/common \
12         -I$(top_srcdir)/src/gtk
13
14 plugin_ldflags =
15 plugin_extra_deps =
16 plugin_libadd =
17
18 if OS_WIN32
19
20 libclaws.a: claws.def
21         $(DLLTOOL) --output-lib $@ --def $<
22
23 %.lo : %.rc
24         $(LIBTOOL) --mode=compile --tag=RC $(RC) -i $< -o $@
25
26 plugin_ldflags += \
27         -Wl,.libs/version.o \
28         -no-undefined \
29         -export-symbols $(srcdir)/plugin.def
30 plugin_extra_deps += libclaws.a version.lo plugin.def
31 plugin_libadd += -L. -lclaws
32
33 endif
34
35 if CYGWIN
36 plugin_ldflags += -no-undefined
37 plugin_libadd += -L$(top_builddir)/src -lclaws-mail
38 endif
39
40 plugindir = $(pkglibdir)/plugins
41
42 if BUILD_BSFILTER_PLUGIN
43 plugin_LTLIBRARIES = bsfilter.la
44 endif
45
46 bsfilter_la_LDFLAGS = \
47         $(plugin_ldflags) \
48         -avoid-version -module
49
50 EXTRA_bsfilter_la_DEPENDENCIES = $(plugin_extra_deps)
51
52 bsfilter_la_LIBADD = $(plugin_libadd) \
53         $(GTK_LIBS) \
54         $(PTHREAD_LIBS)
55
56 bsfilter_la_CPPFLAGS = \
57         $(IFLAGS) \
58         $(GLIB_CFLAGS) \
59         $(GTK_CFLAGS) \
60         $(ENCHANT_CFLAGS)
61
62 bsfilter_la_SOURCES = \
63         bsfilter.c \
64         bsfilter.h \
65         bsfilter_gtk.c
66
67 clean-local:
68         rm -f libclaws.a
69
70 .PHONY: test