# -*- Makefile -*-
sbin_PROGRAMS += bongocollector

bongocollector_SOURCES =			\
	src/agents/collector/collector.c	\
	src/agents/collector/collector.h

bongocollector_CPPFLAGS = $(AM_CPPFLAGS) \
	$(LIBCURL_CPPFLAGS) $(LIBICAL_CFLAGS)

bongocollector_LDADD =						   \
	libbongonmap.la						   \
	libbongocal.la						   \
	libbongomsgapi.la					   \
	libbongologger.la					   \
	libbongoconnio.la					   \
	libbongomemmgr.la					   \
	libbongostreamio.la					   \
	libbongoutil.la						   \
	libbongoxpl.la						   \
	$(top_builddir)/import/log4c/log4c/libbongolog4c.la	   \
	$(LIBCURL_LIBS)						   \
	$(LIBICAL_LIBS)						   \
	$(PTHREAD_LIBS)						   \
	$(ALL_LIBS)

install-data-hook::
	$(mkinstalldirs) $(DESTDIR)$(XPL_DEFAULT_CACHE_DIR)/collector

src/agents/collector/all: bongocollector
src/agents/collector/clean: clean
src/agents/collector/install:
	@cd $(top_builddir) && $(MAKE) $(MFLAGS) sbin_PROGRAMS=bongocollector install-sbinPROGRAMS
