summaryrefslogtreecommitdiff
path: root/sensors-applet
diff options
context:
space:
mode:
Diffstat (limited to 'sensors-applet')
-rw-r--r--sensors-applet/Makefile.am24
-rw-r--r--sensors-applet/main.c2
2 files changed, 21 insertions, 5 deletions
diff --git a/sensors-applet/Makefile.am b/sensors-applet/Makefile.am
index 078c7b7..d6021b1 100644
--- a/sensors-applet/Makefile.am
+++ b/sensors-applet/Makefile.am
@@ -19,6 +19,9 @@ AM_CPPFLAGS = -DMATELOCALEDIR=\""$(datadir)/locale/"\" \
$(LIBNOTIFY_CFLAGS) \
$(WARN_CFLAGS)
+mate_sensors_applet_libdir= $(pkglibdir)
+mate_sensors_applet_lib_LTLIBRARIES=libmate_sensors_applet.la
+
LIBS = $(GLIB_LIBS) $(GTK_LIBS) $(MATE_LIBS) $(CAIRO_LIBS) $(LIBNOTIFY_LIBS)
@@ -29,8 +32,23 @@ else
libnotify_SRC =
endif
-libexec_PROGRAMS = mate-sensors-applet
-mate_sensors_applet_SOURCES = main.c \
+libmate_sensors_applet_la_CFLAGS = \
+ $(MATE_APPLETS4_CFLAGS) \
+ $(WARN_CFLAGS) \
+ $(AM_CFLAGS) \
+ $(NULL)
+
+libmate_sensors_applet_la_LDFLAGS = \
+ -module -avoid-version \
+ $(WARN_LDFLAGS) \
+ $(AM_LDFLAGS) \
+ $(NULL)
+
+libmate_sensors_applet_la_LIBADD = \
+ $(MATE_APPLETS4_LIBS) \
+ $(NULL)
+
+libmate_sensors_applet_la_SOURCES = main.c \
about-dialog.c \
about-dialog.h \
active-sensor.c \
@@ -48,8 +66,6 @@ mate_sensors_applet_SOURCES = main.c \
sensors-applet-settings.h \
$(libnotify_SRC)
-mate_sensors_applet_LDADD = -ldl
-
# install headers for plugins to use
INST_H_FILES = sensors-applet-plugin.h sensors-applet-sensor.h
diff --git a/sensors-applet/main.c b/sensors-applet/main.c
index 3aedab2..ce1ea6e 100644
--- a/sensors-applet/main.c
+++ b/sensors-applet/main.c
@@ -42,7 +42,7 @@ static gboolean sensors_applet_fill(MatePanelApplet *applet,
return retval;
}
-MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("SensorsAppletFactory",
+MATE_PANEL_APPLET_IN_PROCESS_FACTORY ("SensorsAppletFactory",
PANEL_TYPE_APPLET,
"SensorsApplet",
sensors_applet_fill,