blob: 509d8e3259cba8979bfd60b9b254cb76fab1cc90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|