1 # Makefile.am for "src/plugins/attachwarner" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
5 appdata_in_files = claws-mail-attachwarner.metainfo.xml.in
6 appdatadir=$(datadir)/appdata
7 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
9 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_in_files)
13 -I$(top_srcdir)/src/common \
14 -I$(top_builddir)/src/common \
15 -I$(top_srcdir)/src/gtk
19 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
20 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
21 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
24 $(LTRCCOMPILE) -i $< -o $@
26 plugin_res = version.lo
27 plugin_res_ldflag = -Wl,.libs/version.o
29 export_symbols = -export-symbols $(srcdir)/plugin.def
31 plugin_deps = libclaws.a $(plugin_res) plugin.def
34 $(DLLTOOL) --output-lib $@ --def $<
36 plugin_ldadd = -L. -lclaws
47 no_undefined = -no-undefined
53 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
58 plugindir = $(pkglibdir)/plugins
60 if BUILD_ATTACHWARNER_PLUGIN
61 plugin_LTLIBRARIES = attachwarner.la
64 attachwarner_la_LDFLAGS = \
65 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
66 -avoid-version -module \
69 attachwarner_la_DEPENDENCIES = $(plugin_deps)
71 attachwarner_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
74 attachwarner_la_CPPFLAGS = \
79 attachwarner_la_SOURCES = \
80 attachwarner.c attachwarner.h \
81 attachwarner_prefs.c attachwarner_prefs.h