From 770ffd1483c44f3abbec324e02d56325e095461a Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 22 Sep 2022 11:08:31 -0300 Subject: [PATCH] Add new example as per the tutorial --- examples/stm32/stm32-nucleo-f746zg/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/stm32/stm32-nucleo-f746zg/Makefile diff --git a/examples/stm32/stm32-nucleo-f746zg/Makefile b/examples/stm32/stm32-nucleo-f746zg/Makefile new file mode 100644 index 00000000..a6d5a013 --- /dev/null +++ b/examples/stm32/stm32-nucleo-f746zg/Makefile @@ -0,0 +1,18 @@ +NAME ?= $(notdir $(CURDIR)) + +$(NAME): + git clone --depth 1 https://github.com/mongoose-examples/$(NAME) + +build: | $(NAME) + cp ./../../../mongoose.c $(NAME)/Core/Src/ + cp ./../../../mongoose.h $(NAME)/Core/Inc/ + make -C $(NAME) build + +clean: + rm -rf $(NAME) + +flash: + make -C $(NAME) flash + +.PHONY: flash +