1 # Makefile.am for "src/plugins/notification" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
5 appdata_files = claws-mail-notification.metainfo.xml
6 appdatadir = $(datadir)/appdata
7 appdata_DATA = $(appdata_files)
10 hotkey_lib = libcmnpgtkhotkey.la
11 hotkey_lib_path = $(top_builddir)/src/plugins/notification/gtkhotkey/libcmnpgtkhotkey.la
18 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_files)
22 -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
24 -I$(top_srcdir)/src/common \
25 -I$(top_builddir)/src/common \
26 -I$(top_srcdir)/src/gtk
30 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
31 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
32 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
35 $(LTRCCOMPILE) -i $< -o $@
37 plugin_res = version.lo
38 plugin_res_ldflag = -Wl,.libs/version.o
40 export_symbols = -export-symbols $(srcdir)/plugin.def
42 plugin_deps = libclaws.a $(plugin_res) plugin.def $(hotkey_lib)
45 $(DLLTOOL) --output-lib $@ --def $<
47 plugin_ldadd = -L. -lclaws
58 no_undefined = -no-undefined
64 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
69 plugindir = $(pkglibdir)/plugins
71 if BUILD_NOTIFICATION_PLUGIN
72 plugin_LTLIBRARIES = notification.la
75 notification_la_SOURCES = \
76 notification_plugin.c notification_plugin.h \
77 notification_core.c notification_core.h \
78 notification_popup.c notification_popup.h \
79 notification_banner.c notification_banner.h \
80 notification_command.c notification_command.h \
81 notification_lcdproc.c notification_lcdproc.h \
82 notification_trayicon.c notification_trayicon.h \
83 notification_indicator.c notification_indicator.h \
84 notification_hotkeys.c notification_hotkeys.h \
85 notification_prefs.c notification_prefs.h \
86 notification_foldercheck.c notification_foldercheck.h \
87 notification_pixbuf.c notification_pixbuf.h \
88 raw_claws_mail_logo_64x64.h
90 notification_la_LDFLAGS = \
91 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
92 -avoid-version -module
94 notification_la_DEPENDENCIES = $(plugin_deps) \
97 notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
100 $(libindicate_LIBS) \
101 $(libcanberra_gtk_LIBS) \
104 notification_la_CPPFLAGS = \
109 $(libnotify_CFLAGS) \
110 $(libindicate_CFLAGS) \
111 $(libcanberra_gtk_CFLAGS)