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