blob: c558c2153969b82c65718f74e692b6e21f6253de [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,)
14out-dir := $O/
15endif
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