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.
7 hotkey_lib = libcmnpgtkhotkey.la
8 hotkey_lib_path = $(top_builddir)/src/plugins/notification/gtkhotkey/libcmnpgtkhotkey.la
15 EXTRA_DIST = claws.def plugin.def version.rc
19 -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
21 -I$(top_srcdir)/src/common \
22 -I$(top_builddir)/src/common \
23 -I$(top_srcdir)/src/gtk
27 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
28 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
29 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
32 $(LTRCCOMPILE) -i $< -o $@
34 plugin_res = version.lo
35 plugin_res_ldflag = -Wl,.libs/version.o
37 export_symbols = -export-symbols $(srcdir)/plugin.def
39 plugin_deps = libclaws.a $(plugin_res) plugin.def $(hotkey_lib)
42 $(DLLTOOL) --output-lib $@ --def $<
44 plugin_ldadd = -L. -lclaws
55 no_undefined = -no-undefined
61 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
66 plugindir = $(pkglibdir)/plugins
68 if BUILD_NOTIFICATION_PLUGIN
69 plugin_LTLIBRARIES = notification.la
72 notification_la_SOURCES = \
73 notification_plugin.c notification_plugin.h \
74 notification_core.c notification_core.h \
75 notification_popup.c notification_popup.h \
76 notification_banner.c notification_banner.h \
77 notification_command.c notification_command.h \
78 notification_lcdproc.c notification_lcdproc.h \
79 notification_trayicon.c notification_trayicon.h \
80 notification_indicator.c notification_indicator.h \
81 notification_hotkeys.c notification_hotkeys.h \
82 notification_prefs.c notification_prefs.h \
83 notification_foldercheck.c notification_foldercheck.h \
84 notification_pixbuf.c notification_pixbuf.h
86 notification_la_LDFLAGS = \
87 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
88 -avoid-version -module
90 notification_la_DEPENDENCIES = $(plugin_deps) \
93 notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
97 $(libcanberra_gtk_LIBS) \
100 notification_la_CPPFLAGS = \
105 $(libnotify_CFLAGS) \
106 $(libindicate_CFLAGS) \
107 $(libcanberra_gtk_CFLAGS)