|
|
@ -31,6 +31,12 @@ JSMN=jsmn
|
|
|
|
JSMNINC=-I${JSMN}
|
|
|
|
JSMNINC=-I${JSMN}
|
|
|
|
JSMNCFLAGS=${JSMNINC} -DJSMN_STATIC -DJSMN_STRICT
|
|
|
|
JSMNCFLAGS=${JSMNINC} -DJSMN_STATIC -DJSMN_STRICT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTTPPARSE=http-parser
|
|
|
|
|
|
|
|
HTTPPARSEINC=-I${HTTPPARSE}
|
|
|
|
|
|
|
|
HTTPPARSESRC=${HTTPPARSE}/http_parser.c
|
|
|
|
|
|
|
|
HTTPPARSECFLAGS=${HTTPPARSEINC}
|
|
|
|
|
|
|
|
CFILES += ${HTTPPARSESRC}
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(USE_MEM),USE_MEM_GENERIC)
|
|
|
|
ifeq ($(USE_MEM),USE_MEM_GENERIC)
|
|
|
|
CFILES += ${RTDIR}/memory/generic.c
|
|
|
|
CFILES += ${RTDIR}/memory/generic.c
|
|
|
|
else ifeq ($(USE_MEM),USE_MEM_VM)
|
|
|
|
else ifeq ($(USE_MEM),USE_MEM_VM)
|
|
|
@ -42,7 +48,7 @@ all: clean runtime tools
|
|
|
|
runtime:
|
|
|
|
runtime:
|
|
|
|
@echo "Compiling runtime"
|
|
|
|
@echo "Compiling runtime"
|
|
|
|
@mkdir -p bin/
|
|
|
|
@mkdir -p bin/
|
|
|
|
@${CC} ${CFLAGS} ${LDFLAGS} ${CFILES} ${JSMNCFLAGS} -L/usr/lib/ -luv $^ -o ${RUNTIME}
|
|
|
|
@${CC} ${CFLAGS} ${LDFLAGS} ${CFILES} ${JSMNCFLAGS} ${HTTPPARSECFLAGS} -L/usr/lib/ -luv $^ -o ${RUNTIME}
|
|
|
|
|
|
|
|
|
|
|
|
tools:
|
|
|
|
tools:
|
|
|
|
# @echo "Compiling tools"
|
|
|
|
# @echo "Compiling tools"
|
|
|
|