Add license and copyright to 9b3fd2b5
[claws.git] / src / plugins / fetchinfo / Makefile.am
1 # Copyright 1999-2014 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
5
6 if OS_WIN32
7
8 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
9      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
10      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
11
12 %.lo : %.rc
13         $(LTRCCOMPILE) -i $< -o $@
14
15 plugin_res = version.lo
16 plugin_res_ldflag = -Wl,.libs/version.o
17
18 export_symbols = -export-symbols $(srcdir)/plugin.def
19
20 plugin_deps = libclaws.a $(plugin_res) plugin.def
21
22 libclaws.a: claws.def
23         $(DLLTOOL) --output-lib $@ --def $<
24
25 plugin_ldadd = -L. -lclaws
26
27 else
28 plugin_res =
29 plugin_res_ldflag =
30 export_symbols =
31 plugin_deps =
32 plugin_ldadd =
33 endif
34
35 if PLATFORM_WIN32
36 no_undefined = -no-undefined
37 else
38 no_undefined =
39 endif
40
41 if CYGWIN
42 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
43 else
44 cygwin_export_lib = 
45 endif
46
47 plugindir = $(pkglibdir)/plugins
48
49 if BUILD_FETCHINFO_PLUGIN
50 plugin_LTLIBRARIES = fetchinfo.la
51 endif
52
53 fetchinfo_la_SOURCES = \
54         fetchinfo_plugin.c fetchinfo_plugin.h \
55         fetchinfo_plugin_gtk.c
56
57 fetchinfo_la_LDFLAGS = \
58         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
59         -avoid-version -module \
60         $(GTK_LIBS)
61
62 fetchinfo_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
63         $(GTK_LIBS)
64
65 fetchinfo_la_DEPENDENCIES = $(plugin_deps)
66
67 IFLAGS = \
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 fetchinfo_la_CPPFLAGS = \
74         $(IFLAGS) \
75         $(GLIB_CFLAGS) \
76         $(GTK_CFLAGS)
77
78 EXTRA_DIST = claws.def plugin.def version.rc