+SUBDIRS = dbus_wrapper
+
bin_PROGRAMS = mdictionary
mdictionary_SOURCES = ws_gui.c ws_gui_callbacks.c ws_gui_layout.c ws_gui_utils.c
mdictionary_CFLAGS = -DLOCALEDIR=\"/usr/share/locale\" $(GTK_CFLAGS) $(GTKHTML_CFLAGS) $(GLIB_CFLAGS) $(OSSO_CFLAGS) $(GCONF_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/../../include
-mdictionary_LDFLAGS = -L$(prefix)/lib $(GTK_LIBS) $(GTKHTML_LIBS) $(GLIB_LIBS) $(OSSO_LIBS) $(GCONF_LIBS) -lws_dbus
+mdictionary_LDFLAGS = $(GTK_LIBS) $(GTKHTML_LIBS) $(GLIB_LIBS) $(OSSO_LIBS) $(GCONF_LIBS)
mdictionary_CFLAGS += $(shell pkg-config --exists hildon-fm-2 hildon-1 && echo `pkg-config --cflags hildon-fm-2 hildon-1`)
mdictionary_LDFLAGS += $(shell pkg-config --exists hildon-fm-2 hildon-1 && echo `pkg-config --libs hildon-fm-2 hildon-1`)
mdictionary_LDFLAGS += $(shell pkg-config --exists hildon-fm hildon-libs && echo `pkg-config --libs hildon-fm hildon-libs`)
mdictionary_CFLAGS += $(shell pkg-config --exists hildon-fm-2 hildon-1 && echo -DCHINOOK)
-mdictionary_CFLAGS += -DWS_VERSION=\"$(APPVER)\"
\ No newline at end of file
+mdictionary_CFLAGS += -DWS_VERSION=\"$(APPVER)\"
+
+mdictionary_LDADD = dbus_wrapper/src/libws_dbus.la
\ No newline at end of file