blob: a02d3c2d6fc6f5bb2eed78e3e4800a4e2e1bef3c [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
Pascal Brand92542a72014-08-29 10:50:38 +02008PLATFORM ?= stm
Pascal Brandb0104772014-06-12 15:56:20 +02009O ?= out/$(ARCH)-plat-$(PLATFORM)
10
11arch_$(ARCH) := y
12
Pascal Brandb0104772014-06-12 15:56:20 +020013ifneq ($O,)
Jerome Forissier4334e8d2014-09-08 10:53:42 +020014out-dir := $O
Pascal Brandb0104772014-06-12 15:56:20 +020015endif
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:
Jerome Forissier0047cb62014-09-01 13:41:48 +020031 @echo ' CLEAN .'
Pascal Brandb0104772014-06-12 15:56:20 +020032 ${q}rm -f $(cleanfiles)
33
34.PHONY: cscope
35cscope:
Jerome Forissier0047cb62014-09-01 13:41:48 +020036 @echo ' CSCOPE .'
Pascal Brandb0104772014-06-12 15:56:20 +020037 ${q}rm -f cscope.*
38 ${q}find $(PWD) -name "*.[chSs]" > cscope.files
39 ${q}cscope -b -q -k