Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
[claws.git] / src / plugins / address_keeper / Makefile.am
1 # Copyright 1999-2021 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
7
8 IFLAGS = \
9         -I$(top_builddir)/src \
10         -I$(top_builddir)/src/common \
11         -I$(top_srcdir)/src \
12         -I$(top_srcdir)/src/common \
13         -I$(top_srcdir)/src/gtk
14
15 plugin_ldflags =
16 plugin_extra_deps =
17 plugin_libadd =
18
19 if OS_WIN32
20
21 libclaws.a: claws.def
22         $(DLLTOOL) --output-lib $@ --def $<
23
24 %.lo : %.rc
25         $(LIBTOOL) --mode=compile --tag=RC $(RC) -i $< -o $@
26
27 plugin_ldflags += \
28         -Wl,.libs/version.o \
29         -no-undefined \
30         -export-symbols $(srcdir)/plugin.def
31 plugin_extra_deps += libclaws.a version.lo plugin.def
32 plugin_libadd += -L. -lclaws
33
34 endif
35
36 if CYGWIN
37 plugin_ldflags += -no-undefined
38 plugin_libadd += -L$(top_builddir)/src -lclaws-mail
39 endif
40
41 plugindir = $(pkglibdir)/plugins
42
43 if BUILD_ADDRESS_KEEPER_PLUGIN
44 plugin_LTLIBRARIES = address_keeper.la
45 endif
46
47 address_keeper_la_LDFLAGS = \
48         $(plugin_ldflags) \
49         -avoid-version -module
50
51 EXTRA_address_keeper_la_DEPENDENCIES = $(plugin_extra_deps)
52
53 address_keeper_la_LIBADD = $(plugin_libadd) \
54         $(GTK_LIBS)
55
56 address_keeper_la_CPPFLAGS = \
57         $(IFLAGS) \
58         $(GLIB_CFLAGS) \
59         $(GTK_CFLAGS) \
60         $(ENCHANT_CFLAGS)
61
62 address_keeper_la_SOURCES = \
63         address_keeper.c \
64         address_keeper.h \
65         address_keeper_prefs.c \
66         address_keeper_prefs.h
67
68 clean-local:
69         rm -f libclaws.a
70
71 .PHONY: test