-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (43 loc) · 2.03 KB
/
Makefile
File metadata and controls
47 lines (43 loc) · 2.03 KB
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
46
47
ARCH ?= linux
DEBUG_MODE ?= n
ifeq ($(DEBUG_MODE),y)
CPPFLAGS += -g -O0 -pg
CFLAGS += -g -O0
ENABLE_FD_LOGS ?= y
LOG_LEVEL ?= 2
ENABLE_FILE_LOGS ?= y
ENABLE_LOGS ?= y
ENABLE_HDLC_LOGS ?= n
else
CPPFLAGS += -DNDEBUG -Os
CFLAGS += -DNDEBUG -Os
endif
include Makefile.$(ARCH)
.PHONY: help
help:
@echo "Usage make [options] targets"
@echo " options:"
@echo " DESTDIR=path Specify install destination"
@echo " ARCH=<platform> Specify platform: linux, mingw32, avr, esp32"
@echo " CONFIG_ENABLE_CPP_HAL Enable C++ support for synchronization objects "
@echo " CONFIG_ENABLE_FCS32=<y/n> Enable or disable FCS32 support"
@echo " CONFIG_ENABLE_FCS16=<y/n> Enable or disable FCS16 support"
@echo " CONFIG_ENABLE_CHECKSUM=<y/n> Enable or disable checksum support"
@echo " EXAMPLES=<y/n> Build examples"
@echo " CUSTOM=<y/n> Do not build built-in HAL, use custom HAL implementation"
@echo " debug options:"
@echo " LOG_LEVEL=<1-5> Set log level, 5 - max logs"
@echo " ENABLE_LOGS=<y/n> Enable or disable logging"
@echo " ENABLE_HDLC_LOGS=<y/n> Enable or disable hdlc low/high level logs"
@echo " ENABLE_FD_LOGS=<y/n> Enable or disable full duplex protocol logs"
@echo " targets:"
@echo " library Build library"
@echo " cppcheck Run cppcheck tool for code static verification"
@echo " check Build and run unit tests"
@echo " unittest Only build unit tests"
@echo " all Build tinyproto library and tiny_loopback tool"
@echo " tiny_loopback Build tiny_loopback tool"
@echo " docs Build library documentation (requires doxygen)"
@echo " install Install library"
@echo " clean Remove all temporary generated files and binaries"
@echo " coverage Dry run / generate unit tests coverage data"