internationalise plugin appdata files
[claws.git] / src / plugins / tnef_parse / Makefile.am
1 # Makefile.am for "src/plugins/tnef_parse" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_in_files = claws-mail-tnef_parse.metainfo.xml.in
6 appdatadir=$(datadir)/appdata
7 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
8
9 @INTLTOOL_XML_RULE@
10
11 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_in_files)
12
13 if OS_WIN32
14
15 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
16      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
17      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
18
19 %.lo : %.rc
20         $(LTRCCOMPILE) -i $< -o $@
21
22 plugin_res = version.lo
23 plugin_res_ldflag = -Wl,.libs/version.o
24
25 export_symbols = -export-symbols $(srcdir)/plugin.def
26
27 plugin_deps = libclaws.a $(plugin_res) plugin.def
28
29 libclaws.a: claws.def
30         $(DLLTOOL) --output-lib $@ --def $<
31
32 plugin_ldadd = -L. -lclaws
33
34 else
35 plugin_res =
36 plugin_res_ldflag =
37 export_symbols =
38 plugin_deps =
39 plugin_ldadd =
40 endif
41
42 if PLATFORM_WIN32
43 no_undefined = -no-undefined
44 else
45 no_undefined =
46 endif
47
48 if CYGWIN
49 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
50 else
51 cygwin_export_lib = 
52 endif
53
54 plugindir = $(pkglibdir)/plugins
55
56 if BUILD_TNEF_PARSE_PLUGIN
57 plugin_LTLIBRARIES = tnef_parse.la
58 endif
59
60 tnef_parse_la_SOURCES = \
61          tnef_parse.c \
62          tnef_dump.c \
63          tnef_dump.h \
64          ytnef.c
65
66 tnef_parse_la_LDFLAGS = \
67         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
68         -avoid-version -module \
69         $(GTK_LIBS)
70
71 tnef_parse_la_DEPENDENCIES = $(plugin_deps)
72
73 tnef_parse_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
74         $(GTK_LIBS)
75
76 noinst_HEADERS = \
77         mapidefs.h \
78         mapi.h \
79         mapitags.h \
80         tnef_dump.h \
81         tnef-errors.h \
82         tnef-types.h \
83         ytnef.h
84
85 IFLAGS = \
86         -I$(top_srcdir)/src \
87         -I$(top_srcdir)/src/common \
88         -I$(top_builddir)/src/common \
89         -I$(top_srcdir)/src/gtk
90
91 tnef_parse_la_CPPFLAGS = \
92         $(IFLAGS) \
93         $(GLIB_CFLAGS) \
94         $(GTK_CFLAGS)