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.
6 EXTRA_DIST = claws.def plugin.def version.rc
10 -I$(top_srcdir)/src/common \
11 -I$(top_builddir)/src/common \
12 -I$(top_srcdir)/src/gtk
16 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
17 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
18 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
21 $(LTRCCOMPILE) -i $< -o $@
23 plugin_res = version.lo
24 plugin_res_ldflag = -Wl,.libs/version.o
26 export_symbols = -export-symbols $(srcdir)/plugin.def
28 plugin_deps = libclaws.a $(plugin_res) plugin.def
31 $(DLLTOOL) --output-lib $@ --def $<
33 plugin_ldadd = -L. -lclaws
44 no_undefined = -no-undefined
50 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
55 plugindir = $(pkglibdir)/plugins
57 if BUILD_BSFILTER_PLUGIN
58 plugin_LTLIBRARIES = bsfilter.la
61 bsfilter_la_LDFLAGS = \
62 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
63 -avoid-version -module \
64 $(GTK_LIBS) $(PTHREAD_LIBS)
66 bsfilter_la_DEPENDENCIES = $(plugin_deps)
68 bsfilter_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
69 $(GTK_LIBS) $(PTHREAD_LIBS)
71 bsfilter_la_CPPFLAGS = \
76 bsfilter_la_SOURCES = \
77 bsfilter.c bsfilter.h \