diff --git a/deps/http_parser.mk b/deps/http_parser.mk new file mode 100644 index 0000000000000..471aca192e6a4 --- /dev/null +++ b/deps/http_parser.mk @@ -0,0 +1,29 @@ +## http_parser + +HTTPPARSER_GIT_URL := git://github.com/nodejs/http-parser.git +HTTPPARSER_TAR_URL = https://api.github.com/repos/nodejs/http-parser/tarball/$1 +$(eval $(call git-external,http_parser,HTTPPARSER,Makefile,libhttpparser.$(SHLIB_EXT),$(BUILDDIR))) + +HTTPPARSER_OBJ_TARGET := $(build_shlibdir)/libhttp_parser.$(SHLIB_EXT) +HTTPPARSER_OBJ_SOURCE := $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)/libhttp_parser.$(SHLIB_EXT) + +$(HTTPPARSER_OBJ_SOURCE): $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)/Makefile + $(MAKE) -C $(dir $<) library $(MAKE_COMMON) + touch -c $@ +$(HTTPPARSER_OBJ_TARGET): $(HTTPPARSER_OBJ_SOURCE) + $(call make-install,$(HTTPPARSER_SRC_DIR), library PREFIX=$(build_staging)/$(HTTPPARSER_SRC_DIR)$(build_prefix)) + touch -c $(HTTPPARSER_OBJ_TARGET) + +clean-http_parser: + -rm -rf $(BUILDDIR)/$(HTTPPARSER_SRC_DIR) + -rm -f $(HTTPPARSER_OBJ_TARGET) +distclean-http_parser: + -rm -rf $(SRCDIR)/srccache/http_parser-$(HTTPPARSER_SHA1).tar.gz \ + $(SRCDIR)/srccache/http_parser-$(HTTPPARSER_SHA1) \ + $(BUILDDIR)/http_parser-$(HTTPPARSER_SHA1) + +get-http_parser: $(HTTPPARSER_SRC_FILE) +configure-http_parser: $(BUILDDIR)/$(HTTPPARSER_SRC_DIR)/Makefile +compile-http_parser: $(HTTPPARSER_OBJ_SOURCE) +check-http_parser: compile-http_parser +install-http_parser: $(HTTPPARSER_OBJ_TARGET) diff --git a/deps/http_parser.version b/deps/http_parser.version new file mode 100644 index 0000000000000..517e8e6652d3d --- /dev/null +++ b/deps/http_parser.version @@ -0,0 +1,2 @@ +HTTPPARSER_BRANCH=master +HTTPPARSER_SHA1=9b0d5b33ebdaacff1dadd06bad4e198b11ff880e