xref: /optee_os/Makefile (revision b8976a602e75d1f1fbdff47f9de2c6cd774c7c12)
1SHELL = /bin/bash
2
3.PHONY: all
4all:
5
6# Make these default for now
7ARCH            ?= arm32
8PLATFORM        ?= stm
9O		?= out/$(ARCH)-plat-$(PLATFORM)
10
11arch_$(ARCH)	:= y
12
13ifneq ($O,)
14out-dir := $O
15endif
16
17ifneq ($V,1)
18q := @
19cmd-echo := true
20else
21q :=
22cmd-echo := echo
23endif
24
25include core/core.mk
26
27include ta/ta.mk
28
29.PHONY: clean
30clean:
31	@echo '  CLEAN   .'
32	${q}rm -f $(cleanfiles)
33
34.PHONY: cscope
35cscope:
36	@echo '  CSCOPE  .'
37	${q}rm -f cscope.*
38	${q}find $(PWD) -name "*.[chSs]" > cscope.files
39	${q}cscope -b -q -k
40