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.
8 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
9 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
10 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
13 $(LTRCCOMPILE) -i $< -o $@
15 plugin_res = version.lo
16 plugin_res_ldflag = -Wl,.libs/version.o
18 export_symbols = -export-symbols $(srcdir)/plugin.def
20 plugin_deps = libclaws.a $(plugin_res) plugin.def
23 $(DLLTOOL) --output-lib $@ --def $<
25 plugin_ldadd = -L. -lclaws
36 no_undefined = -no-undefined
42 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
47 plugindir = $(pkglibdir)/plugins
49 if BUILD_FETCHINFO_PLUGIN
50 plugin_LTLIBRARIES = fetchinfo.la
53 fetchinfo_la_SOURCES = \
54 fetchinfo_plugin.c fetchinfo_plugin.h \
55 fetchinfo_plugin_gtk.c
57 fetchinfo_la_LDFLAGS = \
58 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
59 -avoid-version -module \
62 fetchinfo_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
65 fetchinfo_la_DEPENDENCIES = $(plugin_deps)
69 -I$(top_srcdir)/src/common \
70 -I$(top_builddir)/src/common \
71 -I$(top_srcdir)/src/gtk
73 fetchinfo_la_CPPFLAGS = \
78 EXTRA_DIST = claws.def plugin.def version.rc