chore: change sledge prefix

main
Sean McBride 4 years ago
parent 6b4ae2515f
commit f6bc233e83

@ -25,7 +25,7 @@ clean:
${AWSM_EXECUTABLE} ${TMP_DIR}/$(@:%_rt=%).wasm -o ${TMP_DIR}/$(@:%_rt=%).bc ${AWSM_EXECUTABLE} ${TMP_DIR}/$(@:%_rt=%).wasm -o ${TMP_DIR}/$(@:%_rt=%).bc
${CC} ${CFLAGS} ${OPTFLAGS} -D${USE_MEM} -D${ARCH} ${TMP_DIR}/$(@:%_rt=%).bc ${AWSM_MEMC} ${AWSM_RT_LIBC} ${AWSM_RT_ENV} ${AWSM_RT_RT} -lm -o ${TMP_DIR}/$(@:%_rt=%)_wasm.out ${CC} ${CFLAGS} ${OPTFLAGS} -D${USE_MEM} -D${ARCH} ${TMP_DIR}/$(@:%_rt=%).bc ${AWSM_MEMC} ${AWSM_RT_LIBC} ${AWSM_RT_ENV} ${AWSM_RT_RT} -lm -o ${TMP_DIR}/$(@:%_rt=%)_wasm.out
${AWSM_EXECUTABLE} --inline-constant-globals --runtime-globals ${TMP_DIR}/$(@:%_rt=%).wasm -o ${TMP_DIR}/$(@:%_rt=%).bc ${AWSM_EXECUTABLE} --inline-constant-globals --runtime-globals ${TMP_DIR}/$(@:%_rt=%).wasm -o ${TMP_DIR}/$(@:%_rt=%).bc
${CC} --shared -fPIC ${OPTFLAGS} -I${SERVERLESS_RT_INC} -D${USE_MEM} ${TMP_DIR}/$(@:%_rt=%).bc ${SERVERLESS_MEMC} ${SERVERLESS_WASMISA} -o ${TMP_DIR}/$(@:%_rt=%)_wasm.so ${CC} --shared -fPIC ${OPTFLAGS} -I${SLEDGE_RT_INC} -D${USE_MEM} ${TMP_DIR}/$(@:%_rt=%).bc ${SLEDGE_MEMC} ${SLEDGE_WASMISA} -o ${TMP_DIR}/$(@:%_rt=%)_wasm.so
@cp ${TMP_DIR}/$(@:%_rt=%)_wasm.so ${SERVERLESS_BIN_DIR} @cp ${TMP_DIR}/$(@:%_rt=%)_wasm.so ${SLEDGE_BIN_DIR}
# @rm -rf ${TMP_DIR} # @rm -rf ${TMP_DIR}

@ -32,14 +32,14 @@ AWSM_MEMC=${AWSM_RT_MEM}/${MEMC_64}
AWSM_DUMMY=${AWSM_BASE_DIR}/code_benches/dummy.c AWSM_DUMMY=${AWSM_BASE_DIR}/code_benches/dummy.c
# for SLEdge # for SLEdge
SERVERLESS_BASE_DIR=../../ SLEDGE_BASE_DIR=../../
SERVERLESS_RT_DIR=${SERVERLESS_BASE_DIR}/runtime/ SLEDGE_RT_DIR=${SLEDGE_BASE_DIR}/runtime/
SERVERLESS_RT_INC=${SERVERLESS_RT_DIR}/include/ SLEDGE_RT_INC=${SLEDGE_RT_DIR}/include/
SERVERLESS_BIN_DIR=${SERVERLESS_RT_DIR}/bin/ SLEDGE_BIN_DIR=${SLEDGE_RT_DIR}/bin/
SERVERLESS_WASMISA=${SERVERLESS_RT_DIR}/compiletime/instr.c SLEDGE_WASMISA=${SLEDGE_RT_DIR}/compiletime/instr.c
USE_MEM=USE_MEM_VM USE_MEM=USE_MEM_VM
ifeq ($(USE_MEM),USE_MEM_VM) ifeq ($(USE_MEM),USE_MEM_VM)
SERVERLESS_MEMC=${SERVERLESS_RT_DIR}/compiletime/memory/${MEMC_64} SLEDGE_MEMC=${SLEDGE_RT_DIR}/compiletime/memory/${MEMC_64}
endif endif

Loading…
Cancel
Save