mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
- Specify source files in variables instead of manually writing the make file rules, this removes a lot of duplication - Use separate folders for all tests allowing for tests and common source files to be built with different settings (defines)
22 lines
433 B
Makefile
22 lines
433 B
Makefile
|
|
|
|
## V : Set verbosity level based on the V= parameter
|
|
## V=0 Low
|
|
## V=1 High
|
|
export AT := @
|
|
|
|
ifndef V
|
|
export V0 :=
|
|
export V1 := $(AT)
|
|
export STDOUT :=
|
|
else ifeq ($(V), 0)
|
|
export V0 := $(AT)
|
|
export V1 := $(AT)
|
|
export STDOUT:= "> /dev/null"
|
|
export MAKE := $(MAKE) --no-print-directory
|
|
else ifeq ($(V), 1)
|
|
export V0 :=
|
|
export V1 :=
|
|
export STDOUT :=
|
|
endif
|
|
|