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