2023-03-01 05:18:26 +08:00
|
|
|
RM = rm -rf
|
|
|
|
MKBUILD = test -d build || mkdir build
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
RM = cmd /C del /Q /F /S
|
|
|
|
MKBUILD = if not exist build mkdir build
|
|
|
|
endif
|
2023-01-03 03:49:15 +08:00
|
|
|
|
2023-02-08 23:00:48 +08:00
|
|
|
all example:
|
2023-01-03 03:49:15 +08:00
|
|
|
true
|
|
|
|
|
2023-02-08 23:00:48 +08:00
|
|
|
build: pico-sdk
|
2023-03-01 05:18:26 +08:00
|
|
|
$(MKBUILD)
|
|
|
|
cd build && cmake -G "Unix Makefiles" .. && make
|
2023-01-03 03:49:15 +08:00
|
|
|
|
|
|
|
pico-sdk:
|
2023-03-01 05:18:26 +08:00
|
|
|
git clone --depth 1 -b 1.4.0 https://github.com/raspberrypi/pico-sdk $@
|
2023-01-03 03:49:15 +08:00
|
|
|
cd $@ && git submodule update --init
|
|
|
|
|
|
|
|
clean:
|
2023-03-01 05:18:26 +08:00
|
|
|
$(RM) pico-sdk build
|