## Process this file with automake to produce Makefile.in

noinst_PROGRAMS = $(TEST_PROGS)

TEST_PROGS     = parse_html parse_uri favicon parse_date parse_rss parse_xml social update
MEMCHECK_PROGS = $(TEST_PROGS)

test: $(TEST_PROGS)
	echo $(TEST_PROGS) |\
	sed "s/^/.\//;s/ / \&\& .\//g" |\
	xargs -I{} sh -c "{}"
	./test_a11y.sh
	./memcheck.sh $(MEMCHECK_PROGS)

.PHONY: test

AM_CPPFLAGS = \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
	-DPACKAGE_LIB_DIR=\""$(pkglibdir)"\" \
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DBIN_DIR=\""$(bindir)"\" \
	-I$(top_srcdir)/src \
	-I$(top_srcdir) \
	$(PACKAGE_CFLAGS) \
	$(INTROSPECTION_CFLAGS)

favicon_LDADD = \
	../parsers/libliparsers.a \
	../plugins/libliplugins.a \
	../node_sources/liblinode_sources.a \
	../node_providers/liblinode_providers.a \
	../ui/libliui.a \
	../webkit/libwebkit.a \
	../auth.o \
	../browser.o \
	../browser_history.o \
	../comments.o \
	../common.o \
	../conf.o \
	../date.o \
	../download.o \
	../db.o \
	../dbus.o \
	../debug.o \
	../enclosure.o \
	../export.o \
	../favicon.o \
	../feed_parser.o \
	../feedlist.o \
	../html.o \
	../item.o \
	../item_history.o \
	../item_loader.o \
	../item_state.o \
	../itemset.o \
	../itemlist.o \
	../json.o \
	../liferea_application.o \
	../metadata.o \
	../migrate.o \
	../net.o \
	../net_monitor.o \
	../node.o \
	../node_provider.o \
	../node_source.o \
	../rule.o \
	../social.o \
	../subscription.o \
	../subscription_icon.o \
	../update.o \
	../update_job.o \
	../update_job_queue.o \
	../vfolder_loader.o \
	../xml.o \
	$(PACKAGE_LIBS) \
	$(INTLLIBS) \
	$(WEBKIT_LIBS) \
	$(INTROSPECTION_LIBS) \
	-lm

clean-local: clean-local-check
.PHONY: clean-local-check
clean-local-check:
	-rm *.Po

favicon_CFLAGS = $(AM_CPPFLAGS)

parse_html_CFLAGS = $(AM_CPPFLAGS)
parse_html_LDADD = $(favicon_LDADD)

parse_date_CFLAGS = $(AM_CPPFLAGS)
parse_date_LDADD = $(favicon_LDADD)

parse_rss_CFLAGS = $(AM_CPPFLAGS)
parse_rss_LDADD = $(favicon_LDADD)

parse_uri_CFLAGS = $(AM_CPPFLAGS)
parse_uri_LDADD = $(favicon_LDADD)

parse_xml_CFLAGS = $(AM_CPPFLAGS)
parse_xml_LDADD = $(favicon_LDADD)

social_CFLAGS = $(AM_CPPFLAGS)
social_LDADD = $(favicon_LDADD)

update_CFLAGS = $(AM_CPPFLAGS)
update_LDADD = $(favicon_LDADD)
