1 # Makefile.am for "src/plugins/bsfilter" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
5 appdata_files = claws-mail-bsfilter.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
11 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_DATA)
15 -I$(top_srcdir)/src/common \
16 -I$(top_builddir)/src/common \
17 -I$(top_srcdir)/src/gtk
21 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
22 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
23 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
26 $(LTRCCOMPILE) -i $< -o $@
28 plugin_res = version.lo
29 plugin_res_ldflag = -Wl,.libs/version.o
31 export_symbols = -export-symbols $(srcdir)/plugin.def
33 plugin_deps = libclaws.a $(plugin_res) plugin.def
36 $(DLLTOOL) --output-lib $@ --def $<
38 plugin_ldadd = -L. -lclaws
49 no_undefined = -no-undefined
55 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
60 plugindir = $(pkglibdir)/plugins
62 if BUILD_BSFILTER_PLUGIN
63 plugin_LTLIBRARIES = bsfilter.la
66 bsfilter_la_LDFLAGS = \
67 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
68 -avoid-version -module \
69 $(GTK_LIBS) $(PTHREAD_LIBS)
71 bsfilter_la_DEPENDENCIES = $(plugin_deps)
73 bsfilter_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
74 $(GTK_LIBS) $(PTHREAD_LIBS)
76 bsfilter_la_CPPFLAGS = \
81 bsfilter_la_SOURCES = \
82 bsfilter.c bsfilter.h \