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