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