xref: /optee_os/Makefile (revision 92542a710463ded7e5d314183b4c5b3df92aa1b9)
1b0104773SPascal BrandSHELL = /bin/bash
2b0104773SPascal Brand
3b0104773SPascal Brand.PHONY: all
4b0104773SPascal Brandall:
5b0104773SPascal Brand
6b0104773SPascal Brand# Make these default for now
7b0104773SPascal BrandARCH            ?= arm32
8*92542a71SPascal BrandPLATFORM        ?= stm
9b0104773SPascal BrandO		?= out/$(ARCH)-plat-$(PLATFORM)
10b0104773SPascal Brand
11b0104773SPascal Brandarch_$(ARCH)	:= y
12b0104773SPascal Brand
13b0104773SPascal Brandifneq ($O,)
14b0104773SPascal Brandout-dir := $O/
15b0104773SPascal Brandendif
16b0104773SPascal Brand
17b0104773SPascal Brandifneq ($V,1)
18b0104773SPascal Brandq := @
19b0104773SPascal Brandcmd-echo := true
20b0104773SPascal Brandelse
21b0104773SPascal Brandq :=
22b0104773SPascal Brandcmd-echo := echo
23b0104773SPascal Brandendif
24b0104773SPascal Brand
25b0104773SPascal Brandinclude core/core.mk
26b0104773SPascal Brand
27b0104773SPascal Brandinclude ta/ta.mk
28b0104773SPascal Brand
29b0104773SPascal Brand.PHONY: clean
30b0104773SPascal Brandclean:
31b0104773SPascal Brand	@echo Cleaning
32b0104773SPascal Brand	${q}rm -f $(cleanfiles)
33b0104773SPascal Brand
34b0104773SPascal Brand.PHONY: cscope
35b0104773SPascal Brandcscope:
36b0104773SPascal Brand	@echo Creating cscope database
37b0104773SPascal Brand	${q}rm -f cscope.*
38b0104773SPascal Brand	${q}find $(PWD) -name "*.[chSs]" > cscope.files
39b0104773SPascal Brand	${q}cscope -b -q -k
40