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_in_files = claws-mail-notification.metainfo.xml.in
6 appdatadir=$(datadir)/appdata
7 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
12 hotkey_lib = libcmnpgtkhotkey.la
13 hotkey_lib_path = $(top_builddir)/src/plugins/notification/gtkhotkey/libcmnpgtkhotkey.la
20 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_in_files)
24 -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
26 -I$(top_srcdir)/src/common \
27 -I$(top_builddir)/src/common \
28 -I$(top_srcdir)/src/gtk
32 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
33 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
34 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
37 $(LTRCCOMPILE) -i $< -o $@
39 plugin_res = version.lo
40 plugin_res_ldflag = -Wl,.libs/version.o
42 export_symbols = -export-symbols $(srcdir)/plugin.def
44 plugin_deps = libclaws.a $(plugin_res) plugin.def $(hotkey_lib)
47 $(DLLTOOL) --output-lib $@ --def $<
49 plugin_ldadd = -L. -lclaws
60 no_undefined = -no-undefined
66 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
71 plugindir = $(pkglibdir)/plugins
73 if BUILD_NOTIFICATION_PLUGIN
74 plugin_LTLIBRARIES = notification.la
77 notification_la_SOURCES = \
78 notification_plugin.c notification_plugin.h \
79 notification_core.c notification_core.h \
80 notification_popup.c notification_popup.h \
81 notification_banner.c notification_banner.h \
82 notification_command.c notification_command.h \
83 notification_lcdproc.c notification_lcdproc.h \
84 notification_trayicon.c notification_trayicon.h \
85 notification_indicator.c notification_indicator.h \
86 notification_hotkeys.c notification_hotkeys.h \
87 notification_prefs.c notification_prefs.h \
88 notification_foldercheck.c notification_foldercheck.h \
89 notification_pixbuf.c notification_pixbuf.h \
90 raw_claws_mail_logo_64x64.h
92 notification_la_LDFLAGS = \
93 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
94 -avoid-version -module
96 notification_la_DEPENDENCIES = $(plugin_deps) \
99 notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
102 $(libindicate_LIBS) \
103 $(libcanberra_gtk_LIBS) \
106 notification_la_CPPFLAGS = \
111 $(libnotify_CFLAGS) \
112 $(libindicate_CFLAGS) \
113 $(libcanberra_gtk_CFLAGS)