1 # Makefile.am for "src/plugins/fetchinfo" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
7 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
8 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
9 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
12 $(LTRCCOMPILE) -i $< -o $@
14 plugin_res = version.lo
15 plugin_res_ldflag = -Wl,.libs/version.o
17 export_symbols = -export-symbols $(srcdir)/plugin.def
19 plugin_deps = libclaws.a $(plugin_res) plugin.def
22 $(DLLTOOL) --output-lib $@ --def $<
24 plugin_ldadd = -L. -lclaws
35 no_undefined = -no-undefined
41 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
46 plugindir = $(pkglibdir)/plugins
48 if BUILD_FETCHINFO_PLUGIN
49 plugin_LTLIBRARIES = fetchinfo.la
52 fetchinfo_la_SOURCES = \
53 fetchinfo_plugin.c fetchinfo_plugin.h \
54 fetchinfo_plugin_gtk.c
56 fetchinfo_la_LDFLAGS = \
57 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
58 -avoid-version -module \
61 fetchinfo_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
64 fetchinfo_la_DEPENDENCIES = $(plugin_deps)
68 -I$(top_srcdir)/src/common \
69 -I$(top_builddir)/src/common \
70 -I$(top_srcdir)/src/gtk
72 fetchinfo_la_CPPFLAGS = \
74 $(CLAWS_MAIL_CFLAGS) \
78 EXTRA_DIST = claws.def plugin.def version.rc