applet: print strerror and exit if execlp() fails
[espeaktime] / src / Makefile.am
index 0e0d50d..77006b7 100644 (file)
@@ -1,10 +1,17 @@
 bin_SCRIPTS = espeaktime-now.sh
-bin_PROGRAMS = espeaktimed gst-play-event
+bin_PROGRAMS = espeaktimed
 espeaktimed_SOURCES = daemon.c
 espeaktimed_CFLAGS = $(GLIB_CFLAGS) $(DBUS_CFLAGS) $(MCE_CFLAGS) $(HAL_CFLAGS)
 espeaktimed_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) $(MCE_LIBS) $(HAL_LIBS)
 
-gst_play_event_SOURCES = gst-play-event.c
-gst_play_event_CFLAGS = $(GST_CFLAGS) $(PA_CFLAGS)
-gst_play_event_LDADD = $(GST_LIBS) $(PA_LIBS)
+libcpdir = $(libdir)/hildon-control-panel
+libcp_LTLIBRARIES = libespeaktime-cp.la
+libespeaktime_cp_la_SOURCES = applet.c
+libespeaktime_cp_la_CFLAGS = $(HILDON_CFLAGS) $(GCONF_CLAGS) $(OSSO_CFLAGS)
+libespeaktime_cp_la_LDFLAGS = -module -avoid-version
+libespeaktime_cp_la_LIBADD = $(HILDON_LIBS) $(GCONF_LIBS)
 
+EXTRA_PROGRAMS = applet
+applet_SOURCES = applet.c
+applet_CFLAGS = -DTEST $(HILDON_CFLAGS) $(GCONF_CFLAGS) $(OSSO_CFLAGS)
+applet_LDADD = $(HILDON_LIBS) $(GCONF_LIBS)