1plugindir = $(libdir)/xfce4/panel/plugins 2plugin_LTLIBRARIES = libmpc.la 3 4libmpc_la_CFLAGS = \ 5 -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ 6 @LIBXFCE4UI_CFLAGS@ \ 7 @LIBXFCE4PANEL_CFLAGS@ 8 9libmpc_la_LIBADD = \ 10 @LIBXFCE4UI_LIBS@ \ 11 @LIBXFCE4PANEL_LIBS@ 12 13libmpc_la_LDFLAGS = \ 14 -avoid-version \ 15 -module \ 16 -no-undefined \ 17 -export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \ 18 $(PLATFORM_LDFLAGS) 19 20libmpc_la_SOURCES = xfce4-mpc-plugin.c xfce4-mpc-plugin.h 21if USE_LIBMPD 22libmpc_la_CFLAGS += @LIBMPD_CFLAGS@ 23libmpc_la_LIBADD += @LIBMPD_LIBS@ 24else 25libmpc_la_SOURCES += simple-libmpd.c simple-libmpd.h 26endif 27 28# .desktop file 29# 30# We need to let intltool merge the translated fields, so we add a 31# level of indirection: a <name>.desktop.in file. 32# 33desktop_in_files = xfce4-mpc-plugin.desktop.in 34 35desktopdir = $(datadir)/xfce4/panel/plugins 36desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) 37@INTLTOOL_DESKTOP_RULE@ 38 39EXTRA_DIST = $(desktop_in_files) 40 41DISTCLEANFILES = $(desktop_DATA) 42