blob: 6b3358a9aa0fd5f68c1642fdeebcf4753510f2ec [file] [log] [blame]
Pascal Brandb0104772014-06-12 15:56:20 +02001SHELL = /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
13cmd-fixdep := ./scripts/fixdep
14
15ifneq ($O,)
16out-dir := $O/
17endif
18
19ifneq ($V,1)
20q := @
21cmd-echo := true
22else
23q :=
24cmd-echo := echo
25endif
26
27include core/core.mk
28
29include ta/ta.mk
30
31.PHONY: clean
32clean:
33 @echo Cleaning
34 ${q}rm -f $(cleanfiles)
35
36.PHONY: cscope
37cscope:
38 @echo Creating cscope database
39 ${q}rm -f cscope.*
40 ${q}find $(PWD) -name "*.[chSs]" > cscope.files
41 ${q}cscope -b -q -k