xref: /optee_os/Makefile (revision 29f1a45d7e068f74c162a64b212956e57885f535)
1b0104773SPascal BrandSHELL = /bin/bash
2b0104773SPascal Brand
3b0104773SPascal Brand.PHONY: all
4b0104773SPascal Brandall:
5b0104773SPascal Brand
6*29f1a45dSJens Wiklander.PHONY: mem_usage
7*29f1a45dSJens Wiklandermem_usage:
8*29f1a45dSJens Wiklander
9b0104773SPascal Brand# Make these default for now
10b0104773SPascal BrandARCH            ?= arm32
1192542a71SPascal BrandPLATFORM        ?= stm
12b0104773SPascal BrandO		?= out/$(ARCH)-plat-$(PLATFORM)
13b0104773SPascal Brand
14b0104773SPascal Brandarch_$(ARCH)	:= y
15b0104773SPascal Brand
16b0104773SPascal Brandifneq ($O,)
174334e8d7SJerome Forissierout-dir := $O
18b0104773SPascal Brandendif
19b0104773SPascal Brand
20b0104773SPascal Brandifneq ($V,1)
21b0104773SPascal Brandq := @
22b0104773SPascal Brandcmd-echo := true
23b0104773SPascal Brandelse
24b0104773SPascal Brandq :=
25b0104773SPascal Brandcmd-echo := echo
26b0104773SPascal Brandendif
27b0104773SPascal Brand
28b0104773SPascal Brandinclude core/core.mk
29b0104773SPascal Brand
30b0104773SPascal Brandinclude ta/ta.mk
31b0104773SPascal Brand
32b0104773SPascal Brand.PHONY: clean
33b0104773SPascal Brandclean:
340047cb63SJerome Forissier	@echo '  CLEAN   .'
35b0104773SPascal Brand	${q}rm -f $(cleanfiles)
36b0104773SPascal Brand
37b0104773SPascal Brand.PHONY: cscope
38b0104773SPascal Brandcscope:
390047cb63SJerome Forissier	@echo '  CSCOPE  .'
40b0104773SPascal Brand	${q}rm -f cscope.*
41b0104773SPascal Brand	${q}find $(PWD) -name "*.[chSs]" > cscope.files
42b0104773SPascal Brand	${q}cscope -b -q -k
43