#############################################################
# Makefile to build libpcap in toolchain
#
#

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

LIBNGHTTP2_VER=1.58.0

ifeq ($(BUILD),debug-gcov)
EXTRA_CFLAGS= -g -O0
else
EXTRA_CFLAGS= -O3
endif

.PHONY: all clean distclean

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

clean_build_intermediate_artifacts:
	@echo "Nothing to do"

clean_build_outputs: clean
	@echo "Nothing to do"
#	rm -f $(PRECOMPILED_DIR)/*.so*


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
	@mkdir -p $(DESTDIR)
	# remove versioning on purpose
	@cp $(CPOPT) lib/*.a $(DESTDIR)/
	
install_headers:
ifndef DESTDIR
	@echo "*** ERROR: please call this makefile supplying explicitly the DESTDIR variable"
	@exit 1
endif
	@mkdir -p $(DESTDIR)/nghttp2
	@cp -arfv include/*.h $(DESTDIR)/nghttp2
