1 2AM_CPPFLAGS = \ 3 -I$(top_srcdir) \ 4 -DG_LOG_DOMAIN=\"libsystray\" \ 5 $(PLATFORM_CPPFLAGS) 6 7plugindir = $(libdir)/xfce4/panel/plugins 8 9# Keep the legacy "systray" name to ease the migration for users 10plugin_LTLIBRARIES = \ 11 libsystray.la 12 13libsystray_built_sources = \ 14 sn-watcher.h \ 15 sn-watcher.c \ 16 sn-dialog-ui.h \ 17 systray-marshal.c \ 18 systray-marshal.h 19 20libsystray_la_SOURCES = \ 21 $(libsystray_built_sources) \ 22 sn-config.c \ 23 sn-config.h \ 24 sn-backend.c \ 25 sn-backend.h \ 26 sn-button.c \ 27 sn-button.h \ 28 sn-box.c \ 29 sn-box.h \ 30 sn-dialog.c \ 31 sn-dialog.h \ 32 sn-icon-box.c \ 33 sn-icon-box.h \ 34 sn-item.c \ 35 sn-item.h \ 36 sn-plugin.c \ 37 sn-plugin.h \ 38 sn-util.c \ 39 sn-util.h \ 40 systray.c \ 41 systray.h \ 42 systray-box.c \ 43 systray-box.h \ 44 systray-manager.c \ 45 systray-manager.h \ 46 systray-socket.c \ 47 systray-socket.h 48 49libsystray_la_CFLAGS = \ 50 $(LIBX11_CFLAGS) \ 51 $(GTK_CFLAGS) \ 52 $(XFCONF_CFLAGS) \ 53 $(LIBXFCE4UTIL_CFLAGS) \ 54 $(LIBXFCE4UI_CFLAGS) \ 55 $(PLATFORM_CFLAGS) \ 56 $(DBUSMENU_CFLAGS) 57 58libsystray_la_LDFLAGS = \ 59 -avoid-version \ 60 -module \ 61 -no-undefined \ 62 -export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \ 63 $(PLATFORM_LDFLAGS) 64 65libsystray_la_LIBADD = \ 66 $(top_builddir)/libxfce4panel/libxfce4panel-$(LIBXFCE4PANEL_VERSION_API).la \ 67 $(top_builddir)/common/libpanel-common.la \ 68 $(LIBX11_LIBS) \ 69 $(GTK_LIBS) \ 70 $(LIBXFCE4UTIL_LIBS) \ 71 $(LIBXFCE4UI_LIBS) \ 72 $(XFCONF_LIBS) \ 73 $(DBUSMENU_LIBS) 74 75libsystray_la_DEPENDENCIES = \ 76 $(top_builddir)/libxfce4panel/libxfce4panel-$(LIBXFCE4PANEL_VERSION_API).la \ 77 $(top_builddir)/common/libpanel-common.la 78 79# 80# .desktop file 81# 82desktopdir = $(datadir)/xfce4/panel/plugins 83desktop_in_files = systray.desktop.in.in 84desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop) 85@INTLTOOL_DESKTOP_RULE@ 86 87EXTRA_DIST = \ 88 $(desktop_in_files) \ 89 sn-dialog.glade \ 90 systray-marshal.list 91 92DISTCLEANFILES = \ 93 $(desktop_DATA) 94 95# 96# Rules to auto-generate built sources 97# 98if MAINTAINER_MODE 99BUILT_SOURCES = \ 100 $(libsystray_built_sources) 101 102DISTCLEANFILES += \ 103 $(libsystray_built_sources) 104 105sn-watcher.h: 106sn-watcher.c: sn-watcher.xml Makefile 107 $(AM_V_GEN) $(GDBUS_CODEGEN) \ 108 --interface-prefix org.kde.StatusNotifierWatcher \ 109 --generate-c-code sn-watcher \ 110 $(srcdir)/sn-watcher.xml 111 112sn-dialog-ui.h: sn-dialog.glade 113 $(AM_V_GEN) xdt-csource --static --strip-comments --strip-content --name=sn_dialog_ui $< >$@ 114 115systray-marshal.h: systray-marshal.list Makefile 116 $(AM_V_GEN) glib-genmarshal --header --internal --prefix=_systray_marshal $< > $@ 117 118systray-marshal.c: systray-marshal.list Makefile 119 $(AM_V_GEN) echo "#include \"systray-marshal.h\"" > $@ \ 120 && glib-genmarshal --prefix=_systray_marshal --body $< >> $@ 121endif 122 123# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: 124