################################
# Makefile to build VQmon in the tool chain
# 

TOPDIR=..
LIBNAME=vqmon
include $(TOPDIR)/Makefiles/Repo-defines.mk

all:
	@echo "$(LIBNAME): nothing to do"

clean_build_intermediate_artifacts:
	@echo "$(LIBNAME): nothing to do"

clean_build_outputs: clean
	@echo "$(LIBNAME): nothing to do"

HAS_INSTALL_SUPPORT=2
include $(TOPDIR)/Makefiles/ThirdPartyTargetHelpers.mk

install_libs::
ifndef DESTDIR
	@echo "*** ERROR: please call this makefile supplying explicitly the DESTDIR variable"
	@exit 1
endif
	@echo "Installing $(LIBNAME) third party library to $(DESTDIR)"
	@mkdir --parents                   $(DESTDIR)
ifeq ($(CFG), debug-gcov)
	@cp -af $(VERBOSE_FLAG) lib/linux/x86_64/debug/lib*.a        $(DESTDIR)
else
	@cp -af $(VERBOSE_FLAG) lib/linux/x86_64/release/lib*.a        $(DESTDIR)
endif

install_headers::
ifndef DESTDIR
	@echo "*** ERROR: please call this makefile supplying explicitly the DESTDIR variable"
	@exit 1
endif
	@echo "Installing $(LIBNAME) third party headers to $(DESTDIR)"
	@mkdir --parents                           $(DESTDIR)/vqmon
	@cp -af $(VERBOSE_FLAG) config/*.h         $(DESTDIR)/vqmon
	@cp -af $(VERBOSE_FLAG) include/*.h        $(DESTDIR)/vqmon
