-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
50 lines (46 loc) · 870 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
46
47
48
49
50
# SPDX-License-Identifier: Apache-2.0
PROJECT := $(BOARD)
BASEDIR := $(shell pwd)
BUILDIR := build
VERBOSE ?= 0
V ?= $(VERBOSE)
ifeq ($(V), 0)
Q = @
else
Q =
endif
export PROJECT
export BASEDIR
export BUILDIR
export Q
include projects/version.mk
ifneq ($(BOARD),)
include projects/defines.mk
include projects/boards/$(BOARD).mk
include projects/sources.mk
include projects/app.mk
ifneq ($(PLATFORM_SPECIFIC_MAKE),)
include $(PLATFORM_SPECIFIC_MAKE)
endif
include projects/toolchain.mk
include projects/rules.mk
else
all:
$(info Specify BOARD or target)
endif
.PHONY: test
test:
$(Q)$(MAKE) -C tests
.PHONY: coverage
coverage:
$(Q)$(MAKE) -C tests $@
.PHONY: clean
clean:
$(Q)rm -fr $(BUILDIR)
$(Q)$(MAKE) -C tests $@
.PHONY: docs
docs:
@LD_LIBRARY_PATH=$$(llvm-config --libdir) $(MAKE) -C $@ html
.PHONY: version
version:
$(info $(VERSION_TAG), $(VERSION))