-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakefile
39 lines (27 loc) · 914 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
# KERNEL_BUILD below selects a specific kernel to build. By default,
# '*' is selected so all kernels are built.
#
# KERNEL_BUILD options supported match directory names contained within the
# builds/ (choose only one for KERNEL_BUILD):
#
KERNEL_BUILD ?= *
# Find subdirectories
RELEASE-TICLANG-SUBDIRS = $(wildcard builds/$(KERNEL_BUILD)/release/ticlang/.)
include ../../imports.mak
RELEASE-SUBDIRS =
ifneq ($(TICLANG_ARMCOMPILER),)
RELEASE-SUBDIRS += $(RELEASE-TICLANG-SUBDIRS)
endif
.PHONY: release debug $(RELEASE-SUBDIRS) $(DEBUG-SUBDIRS)
# rules for building
all: release
release: $(RELEASE-SUBDIRS)
$(RELEASE-SUBDIRS):
@ $(MAKE) -C $@
CLEAN-RELEASE-SUBDIRS = $(addprefix clean-,$(RELEASE-SUBDIRS))
.PHONY: clean-release $(CLEAN-RELEASE-SUBDIRS)
# rules for cleaning
clean: clean-release
clean-release: $(CLEAN-RELEASE-SUBDIRS)
$(CLEAN-RELEASE-SUBDIRS):
@ $(MAKE) -C $(subst clean-,,$@) clean