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