diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-23 14:00:56 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-23 14:00:56 +0200 |
commit | 3314fce1b841cfb41994e62eb8b472adbe06115d (patch) | |
tree | e14545da6ea9701b5477bc9ba624a00a4e1dabd4 /puzzle/neo/makefile | |
parent | 0da43c3bc7b876aa07f409d6b7b3c7a8b72cfaae (diff) | |
parent | 9664deb3e817b616dd1e8f73a89c0703a0771464 (diff) |
Merge branch 'prot/neo-puzzle' of github.com:lonkaars/puzzelbox
Diffstat (limited to 'puzzle/neo/makefile')
-rw-r--r-- | puzzle/neo/makefile | 20 |
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 + |