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