aboutsummaryrefslogtreecommitdiff
path: root/puzzle/dummy/makefile
blob: 041054ef3b4c2b1095202a5ce724ef7ebf00158d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TARGET = $(BUILD_DIR)/main.elf

include ../../lazy.mk

export SERIAL_PORT ?= /dev/ttyACM0
flash: upload-main;

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