xref: /optee_os/Makefile (revision f1c74b4b18c17241c1559c0b0c91e3a1139ff2f4)
1SHELL = /bin/bash
2
3.PHONY: all
4all:
5
6# Make these default for now
7ARCH            ?= arm32
8PLATFORM        ?= orly2
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 Cleaning
32	${q}rm -f $(cleanfiles)
33
34.PHONY: cscope
35cscope:
36	@echo Creating cscope database
37	${q}rm -f cscope.*
38	${q}find $(PWD) -name "*.[chSs]" > cscope.files
39	${q}cscope -b -q -k
40