aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 916539042e475d1368f462587477d9e31c9e3be9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FAMILY ?= rp2040
PICO_SDK_PATH ?= lib/picosdk

all: cmake

clean:
	rm -rf .build

cmake: | $(PICO_SDK_PATH) .build
	cmake -B .build -DFAMILY=$(FAMILY) -DPICO_SDK_PATH=$(PICO_SDK_PATH)
	make -C .build

lib/picosdk:
	git submodule update --init lib/picosdk

.build:
	mkdir $@

upload:
	picotool load .build/sxkbd.uf2

.PHONY: all clean cmake upload