From: Michael Orlitzky Date: Fri, 30 Mar 2012 19:23:35 +0000 (-0400) Subject: Switch to the new module interface in Makefile.am. X-Git-Tag: v0.0.8~9 X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=inline;h=50cfde7475003e06e0c763ee8ecd0f719cca023a;hp=5ad8fbf8f5f6a71ba24f0ae0055f554227b055d8;p=xfce4-hdaps.git Switch to the new module interface in Makefile.am. --- diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am index e9632fe..cf07427 100644 --- a/panel-plugin/Makefile.am +++ b/panel-plugin/Makefile.am @@ -27,13 +27,11 @@ INCLUDES = \ # # HDAPS plugin # -plugin_PROGRAMS = \ - xfce4-hdaps +plugin_LTLIBRARIES = libhdaps.la -plugindir = \ - $(libexecdir)/xfce4/panel-plugins +plugindir = $(libexecdir)/xfce4/panel/plugins -xfce4_hdaps_SOURCES = \ +libhdaps_la_SOURCES = \ hdaps.c \ hdaps.h \ xfce4-hdaps.c \ @@ -41,39 +39,36 @@ xfce4_hdaps_SOURCES = \ xfce4-hdaps-dialogs.c \ xfce4-hdaps-dialogs.h -xfce4_hdaps_CFLAGS = \ - $(LIBXFCE4UTIL_CFLAGS) \ - $(LIBXFCE4UI_CFLAGS) \ - $(LIBXFCE4PANEL_CFLAGS) \ +libhdaps_la_CFLAGS = \ + $(LIBXFCE4UTIL_CFLAGS) \ + $(LIBXFCE4UI_CFLAGS) \ + $(LIBXFCE4PANEL_CFLAGS) \ $(PLATFORM_CFLAGS) -xfce4_hdaps_LDADD = \ - $(LIBXFCE4UTIL_LIBS) \ - $(LIBXFCE4UI_LIBS) \ +libhdaps_la_LDFLAGS = \ + -avoid-version \ + -module \ + -no-undefined \ + -export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \ + $(PLATFORM_LDFLAGS) + +libhdaps_la_LIBADD = \ + $(LIBXFCE4UTIL_LIBS) \ + $(LIBXFCE4UI_LIBS) \ $(LIBXFCE4PANEL_LIBS) # # Desktop file # -desktopdir = \ - $(datadir)/xfce4/panel-plugins - -desktop_in_in_files = \ - xfce4-hdaps.desktop.in.in - -desktop_in_files = \ - $(desktop_in_in_files:.desktop.in.in=.desktop.in) +desktopdir = $(datadir)/xfce4/panel/plugins -%.desktop.in: %.desktop.in.in - sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@ +desktop_in_files = xfce4-hdaps.desktop.in -desktop_DATA = \ - $(desktop_in_files:.desktop.in=.desktop) +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ -EXTRA_DIST = \ - $(desktop_in_in_files) +EXTRA_DIST = $(desktop_in_in_files) CLEANFILES = \ $(desktop_in_files) \