add configure option --enable-appdata and put all appdata in appdata/
[claws.git] / src / plugins / notification / Makefile.am
1 # Makefile.am for "src/plugins/notification" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 if BUILD_HOTKEYS
6 hotkey_lib = libcmnpgtkhotkey.la
7 hotkey_lib_path = $(top_builddir)/src/plugins/notification/gtkhotkey/libcmnpgtkhotkey.la
8 else
9 hotkey_lib =
10 hotkey_lib_path =
11 endif
12
13 SUBDIRS=gtkhotkey
14 EXTRA_DIST = claws.def plugin.def version.rc
15 CFLAGS += "-Wall"
16
17 IFLAGS = \
18         -I$(top_srcdir)/src/plugins/notification/gtkhotkey \
19         -I$(top_srcdir)/src \
20         -I$(top_srcdir)/src/common \
21         -I$(top_builddir)/src/common \
22         -I$(top_srcdir)/src/gtk
23
24 if OS_WIN32
25
26 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
27      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
28      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
29
30 %.lo : %.rc
31         $(LTRCCOMPILE) -i $< -o $@
32
33 plugin_res = version.lo
34 plugin_res_ldflag = -Wl,.libs/version.o
35
36 export_symbols = -export-symbols $(srcdir)/plugin.def
37
38 plugin_deps = libclaws.a $(plugin_res) plugin.def $(hotkey_lib) 
39
40 libclaws.a: claws.def
41         $(DLLTOOL) --output-lib $@ --def $<
42
43 plugin_ldadd = -L. -lclaws
44
45 else
46 plugin_res =
47 plugin_res_ldflag =
48 export_symbols =
49 plugin_deps =
50 plugin_ldadd =
51 endif
52
53 if PLATFORM_WIN32
54 no_undefined = -no-undefined
55 else
56 no_undefined =
57 endif
58
59 if CYGWIN
60 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
61 else
62 cygwin_export_lib = 
63 endif
64
65 plugindir = $(pkglibdir)/plugins
66
67 if BUILD_NOTIFICATION_PLUGIN
68 plugin_LTLIBRARIES = notification.la
69 endif
70
71 notification_la_SOURCES = \
72         notification_plugin.c notification_plugin.h \
73         notification_core.c notification_core.h \
74         notification_popup.c notification_popup.h \
75         notification_banner.c notification_banner.h \
76         notification_command.c notification_command.h \
77         notification_lcdproc.c notification_lcdproc.h \
78         notification_trayicon.c notification_trayicon.h \
79         notification_indicator.c notification_indicator.h \
80         notification_hotkeys.c notification_hotkeys.h \
81         notification_prefs.c notification_prefs.h \
82         notification_foldercheck.c notification_foldercheck.h \
83         notification_pixbuf.c notification_pixbuf.h \
84         raw_claws_mail_logo_64x64.h
85
86 notification_la_LDFLAGS = \
87         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
88         -avoid-version -module
89
90 notification_la_DEPENDENCIES = $(plugin_deps) \
91         $(hotkey_lib_path)
92
93 notification_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
94         $(GTK_LIBS)  \
95         $(libnotify_LIBS) \
96         $(libindicate_LIBS) \
97         $(libcanberra_gtk_LIBS) \
98         $(hotkey_lib_path)
99
100 notification_la_CPPFLAGS = \
101         $(IFLAGS) \
102         $(NOTIFY_CFLAGS) \
103         $(GLIB_CFLAGS) \
104         $(GTK_CFLAGS) \
105         $(libnotify_CFLAGS) \
106         $(libindicate_CFLAGS) \
107         $(libcanberra_gtk_CFLAGS)
108
109 clean-local:
110         rm -f libclaws.a