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