include $(top_srcdir)/Makefile.decl

bin_PROGRAMS = tracker-needle

AM_VALAFLAGS = \
	--pkg gtk+-2.0 --pkg gio-2.0 \
	$(BUILD_VALAFLAGS) \
	$(top_srcdir)/src/libtracker-sparql/tracker-sparql-$(TRACKER_API_VERSION).vapi \
	config.vapi

AM_CPPFLAGS =                                      \
	$(BUILD_CFLAGS)                                \
	-D_XOPEN_SOURCE                                \
	-I$(top_srcdir)/src                            \
	-I$(top_builddir)/src                          \
	-DTRACKER_UI_DIR=\"$(datadir)/tracker/\"       \
	-DLOCALEDIR=\""$(localedir)"\"                 \
	-DSRCDIR=\"$(abs_srcdir)/\"                    \
	$(TRACKER_NEEDLE_CFLAGS)                       \
	-include config.h

LDADD =                                            \
	$(top_builddir)/src/libtracker-sparql/libtracker-sparql-$(TRACKER_API_VERSION).la \
	$(BUILD_LIBS)                                  \
	$(TRACKER_NEEDLE_LIBS)

tracker_needle_SOURCES =                           \
	tracker-cell-renderer-text.vala                \
	tracker-history.vala                           \
	tracker-query.vala                             \
	tracker-stats.vala                             \
	tracker-taglist.vala                           \
	tracker-utils.vala                             \
	tracker-needle.vala                            \
	tracker-view.vala

@INTLTOOL_DESKTOP_RULE@

uidir = $(datadir)/tracker
ui_DATA = tracker-needle.ui

desktopdir = $(datadir)/applications
desktop_DATA = tracker-needle.desktop

BUILT_SOURCES = \
	tracker_needle_vala.stamp

CLEANFILES = \
	$(desktop_DATA)

EXTRA_DIST = \
	$(ui_DATA) \
	$(desktop_DATA) \
	config.vapi

