internationalise plugin appdata files
[claws.git] / src / plugins / attachwarner / Makefile.am
1 # Makefile.am for "src/plugins/attachwarner" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_in_files = claws-mail-attachwarner.metainfo.xml.in
6 appdatadir=$(datadir)/appdata
7 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
8
9 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_in_files)
10
11 IFLAGS = \
12         -I$(top_srcdir)/src \
13         -I$(top_srcdir)/src/common \
14         -I$(top_builddir)/src/common \
15         -I$(top_srcdir)/src/gtk
16
17 if OS_WIN32
18
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'`
22
23 %.lo : %.rc
24         $(LTRCCOMPILE) -i $< -o $@
25
26 plugin_res = version.lo
27 plugin_res_ldflag = -Wl,.libs/version.o
28
29 export_symbols = -export-symbols $(srcdir)/plugin.def
30
31 plugin_deps = libclaws.a $(plugin_res) plugin.def
32
33 libclaws.a: claws.def
34         $(DLLTOOL) --output-lib $@ --def $<
35
36 plugin_ldadd = -L. -lclaws
37
38 else
39 plugin_res =
40 plugin_res_ldflag =
41 export_symbols =
42 plugin_deps =
43 plugin_ldadd =
44 endif
45
46 if PLATFORM_WIN32
47 no_undefined = -no-undefined
48 else
49 no_undefined =
50 endif
51
52 if CYGWIN
53 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
54 else
55 cygwin_export_lib = 
56 endif
57
58 plugindir = $(pkglibdir)/plugins
59
60 if BUILD_ATTACHWARNER_PLUGIN
61 plugin_LTLIBRARIES = attachwarner.la
62 endif
63
64 attachwarner_la_LDFLAGS = \
65         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
66         -avoid-version -module \
67         $(GTK_LIBS)
68
69 attachwarner_la_DEPENDENCIES = $(plugin_deps)
70
71 attachwarner_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
72         $(GTK_LIBS)
73
74 attachwarner_la_CPPFLAGS = \
75         $(IFLAGS) \
76         $(GLIB_CFLAGS) \
77         $(GTK_CFLAGS)
78
79 attachwarner_la_SOURCES = \
80         attachwarner.c attachwarner.h \
81         attachwarner_prefs.c attachwarner_prefs.h
82