mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-17 12:58:19 +08:00
21 lines
427 B
Makefile
21 lines
427 B
Makefile
SDK_VERSION ?= 1.4.0
|
|
SDK_REPO ?= https://github.com/raspberrypi/pico-sdk
|
|
|
|
FILES_TO_EMBED ?= $(wildcard web_root/*)
|
|
|
|
example:
|
|
true
|
|
|
|
all build: pico-sdk
|
|
$(CC) ../../../test/pack.c -o pack
|
|
./pack $(FILES_TO_EMBED) > packed_fs.c
|
|
test -d build || mkdir build
|
|
cd build && cmake .. && make
|
|
|
|
pico-sdk:
|
|
git clone --depth 1 -b $(SDK_VERSION) $(SDK_REPO) $@
|
|
cd $@ && git submodule update --init
|
|
|
|
clean:
|
|
rm -rf pico-sdk build pack
|