From 09e27354f37c7c666b46f10dbc2bf4e7a0fdf216 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Tue, 4 Aug 2020 13:52:00 -0400 Subject: [PATCH] chore: restore missing thirdparty Makefile --- runtime/thirdparty/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 runtime/thirdparty/Makefile diff --git a/runtime/thirdparty/Makefile b/runtime/thirdparty/Makefile new file mode 100644 index 0000000..7427f7e --- /dev/null +++ b/runtime/thirdparty/Makefile @@ -0,0 +1,26 @@ +CURR_DIR= $(shell pwd) +DIST_PREFIX=${CURR_DIR}/dist/ + +all: clean build + +build: ck jsmn http-parser + +ck: + mkdir -p ${DIST_PREFIX} + cd ck; ./configure --cores=$(shell getconf _NPROCESSORS_CONF) --prefix=${DIST_PREFIX} + make -C ck all + make -C ck install + +http-parser: http-parser/http_parser.c + mkdir -p ${DIST_PREFIX}/lib/ + cd http-parser; $(CC) $(CFLAGS) -I. -c http_parser.c; mv http_parser.o ${DIST_PREFIX}/lib/; cp http_parser.h ${DIST_PREFIX}/include/ + +jsmn: + mkdir -p ${DIST_PREFIX}/include/ + cp jsmn/jsmn.h ${DIST_PREFIX}/include/ + +clean: + make -C ck uninstall + rm -rf ${DIST_PREFIX} + +.PHONY: clean all build ck jsmn http-parser \ No newline at end of file