-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (32 loc) · 970 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SHELL = /bin/bash
include makefiles/variables.mk
include makefiles/flash.mk
include makefiles/idf-setup.mk
SRCS := \
$(SRC_DIR_NAME)/app_main.c
menuconfig:
source $(IDF_EXPORT_ENVS) && idf.py menuconfig
setup:
make setup-idf
setup-light:
make setup-idf-light
all:
source $(IDF_EXPORT_ENVS) && idf.py build
clean:
make clean-idf
distclean:
rm -rf $(BUILD_DIR)
monitor:
source $(IDF_EXPORT_ENVS) && idf.py monitor --port=${PORT}
doc:
source $(IDF_EXPORT_ENVS) && idf.py docs
help:
@echo "Build project targets are:"
@echo ""
@echo " - setup create build environment and install all required deps"
@echo " - setup-light create build environment"
@echo " - all compile source code"
@echo " - flash install firmware on the target"
@echo " - monitor open CPU debug console"
.PHONY: menuconfig setup flash clean distclean help
.DEFAULT_GOAL := help