|
|
@ -7,31 +7,39 @@ TESTSRT=$(TESTS:%=%_rt)
|
|
|
|
.PHONY: all clean rttests tinyekf cifar10 gocr sod
|
|
|
|
.PHONY: all clean rttests tinyekf cifar10 gocr sod
|
|
|
|
|
|
|
|
|
|
|
|
all: rttests tinyekf cifar10 gocr sod
|
|
|
|
all: rttests tinyekf cifar10 gocr sod
|
|
|
|
@echo "Compilation done!"
|
|
|
|
@echo "Test Compilation done!"
|
|
|
|
|
|
|
|
|
|
|
|
rttests: $(TESTSRT)
|
|
|
|
rttests: $(TESTSRT)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
|
|
|
|
@echo "Cleaning Test Applications"
|
|
|
|
@rm -rf ${TMP_DIR}
|
|
|
|
@rm -rf ${TMP_DIR}
|
|
|
|
@rm -rf ${SLEDGE_BIN_DIR}/*_wasm.so
|
|
|
|
@rm -rf ${SLEDGE_BIN_DIR}/*_wasm.so
|
|
|
|
|
|
|
|
@make clean -C ./TinyEKF/extras/c/ -f wasm.mk
|
|
|
|
|
|
|
|
@make clean -C ./CMSIS_5_NN/ -f Makefile
|
|
|
|
|
|
|
|
@make clean -C ./gocr/src/ -f wasm.mk
|
|
|
|
|
|
|
|
@make clean -C ./sod/
|
|
|
|
|
|
|
|
|
|
|
|
tinyekf:
|
|
|
|
tinyekf:
|
|
|
|
make gps_ekf_fn.so -C ./TinyEKF/extras/c/ -f wasm.mk
|
|
|
|
@echo "Making and Installing tinyekf"
|
|
|
|
cp ./TinyEKF/extras/c/gps_ekf_fn.so ${SLEDGE_BIN_DIR}/ekf_wasm.so
|
|
|
|
@make gps_ekf_fn.so -C ./TinyEKF/extras/c/ -f wasm.mk
|
|
|
|
|
|
|
|
@cp ./TinyEKF/extras/c/gps_ekf_fn.so ${SLEDGE_BIN_DIR}/ekf_wasm.so
|
|
|
|
|
|
|
|
|
|
|
|
cifar10:
|
|
|
|
cifar10:
|
|
|
|
make cifar10.so -C ./CMSIS_5_NN/ -f Makefile
|
|
|
|
@echo "Making and Installing cifar10"
|
|
|
|
cp ./CMSIS_5_NN/cifar10.so ${SLEDGE_BIN_DIR}/cifar10_wasm.so
|
|
|
|
@make cifar10.so -C ./CMSIS_5_NN/ -f Makefile
|
|
|
|
|
|
|
|
@cp ./CMSIS_5_NN/cifar10.so ${SLEDGE_BIN_DIR}/cifar10_wasm.so
|
|
|
|
|
|
|
|
|
|
|
|
gocr:
|
|
|
|
gocr:
|
|
|
|
@echo "Making and Installing gocr"
|
|
|
|
@echo "Making and Installing gocr"
|
|
|
|
make gocr.so -C ./gocr/src/ -f wasm.mk
|
|
|
|
@make gocr.so -C ./gocr/src/ -f wasm.mk
|
|
|
|
@cp ./gocr/src/gocr.so ${SLEDGE_BIN_DIR}/gocr_wasm.so
|
|
|
|
@cp ./gocr/src/gocr.so ${SLEDGE_BIN_DIR}/gocr_wasm.so
|
|
|
|
|
|
|
|
|
|
|
|
sod:
|
|
|
|
sod:
|
|
|
|
make clean dir samples.so -C ./sod/
|
|
|
|
@echo "Making and Installing license_plate_detection and image_resize"
|
|
|
|
cp ./sod/bin/license_plate_detection.so ${SLEDGE_BIN_DIR}/lpd_wasm.so
|
|
|
|
@make dir samples.so -C ./sod/
|
|
|
|
cp ./sod/bin/resize_image.so ${SLEDGE_BIN_DIR}/resize_wasm.so
|
|
|
|
@cp ./sod/bin/license_plate_detection.so ${SLEDGE_BIN_DIR}/lpd_wasm.so
|
|
|
|
|
|
|
|
@cp ./sod/bin/resize_image.so ${SLEDGE_BIN_DIR}/resize_wasm.so
|
|
|
|
|
|
|
|
|
|
|
|
%_rt:
|
|
|
|
%_rt:
|
|
|
|
@mkdir -p ${TMP_DIR}
|
|
|
|
@mkdir -p ${TMP_DIR}
|
|
|
|