DEV: matlab proof of concept

This commit is contained in:
2021-01-02 19:04:06 +02:00
parent 6a33ed4976
commit 5d3af03fb6
9 changed files with 164 additions and 9 deletions
+5 -5
View File
@@ -45,7 +45,7 @@ REL_CFLAGS := -Wall -Wextra -O2
# ============== Linker settings ==============
# Linker flags (example: -pthread -lm)
LDFLAGS :=
LDFLAGS := -lm -lopenblas
# Map output file
MAP_FILE := output.map
MAP_FLAG := -Xlinker -Map=$(BUILD_DIR)/$(MAP_FILE)
@@ -53,11 +53,11 @@ MAP_FLAG := -Xlinker -Map=$(BUILD_DIR)/$(MAP_FILE)
# ============== Docker settings ==============
# We need:
# - Bind the entire project directory(the dir that icludes all the code) as volume.
# - In docker instance, change to working directory(where the makefile is).
# - In docker instance, change to working directory(where the makefile is).
DOCKER_VOL_DIR := $${PWD}
DOCKER_WRK_DIR :=
DOCKER_RUN := docker run
DOCKER_FLAGS := --rm -v $(DOCKER_VOL_DIR):/usr/src/$(PROJECT) -w /usr/src/$(PROJECT)/$(DOCKER_WRK_DIR)
DOCKER_WRK_DIR :=
DOCKER_RUN := docker run --rm
DOCKER_FLAGS := -v $(DOCKER_VOL_DIR):/usr/src/$(PROJECT) -w /usr/src/$(PROJECT)/$(DOCKER_WRK_DIR)
# docker invoke mechanism (edit with care)
# note: