aboutsummaryrefslogtreecommitdiff
path: root/puzzle/neo/makefile
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 14:01:50 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-23 14:01:50 +0200
commite22d67e4ac0c03f8e05ae887b62791ce57e8818c (patch)
treee35dbe66c434e1b3a906f8960614c9074a857cdc /puzzle/neo/makefile
parentbfa85b6c313a725afe98bbe6ccb60978de3187a9 (diff)
parent3314fce1b841cfb41994e62eb8b472adbe06115d (diff)
Merge branch 'master' into wip/docs
Diffstat (limited to 'puzzle/neo/makefile')
-rw-r--r--puzzle/neo/makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/puzzle/neo/makefile b/puzzle/neo/makefile
new file mode 100644
index 0000000..509d8e3
--- /dev/null
+++ b/puzzle/neo/makefile
@@ -0,0 +1,20 @@
+TARGET = $(BUILD_DIR)/main.elf
+
+include ../../lazy.mk
+
+export SERIAL_PORT ?= /dev/ttyACM0
+flash: upload-main;
+upload-main: $(TARGET)
+
+test: test_a test_b;
+
+test_a:
+ $(MAKE) -C . clean
+ $(MAKE) -E CMFLAGS+=-D\ CMAKE_CXX_FLAGS=-DTEST_A -C .
+ $(MAKE) -E SERIAL_PORT=/dev/ttyACM0 -C . flash
+
+test_b:
+ $(MAKE) -C . clean
+ $(MAKE) -E CMFLAGS+=-D\ CMAKE_CXX_FLAGS=-DTEST_B -C .
+ $(MAKE) -E SERIAL_PORT=/dev/ttyACM1 -C . flash
+