blob: 904735f33eba94b1f65317783d24bd9a66170ebf [file] [log] [blame]
Pascal Brandb0104772014-06-12 15:56:20 +02001SHELL = /bin/bash
2
3.PHONY: all
4all:
5
Jens Wiklander29f1a452014-08-29 08:26:57 +02006.PHONY: mem_usage
7mem_usage:
8
Pascal Brandb0104772014-06-12 15:56:20 +02009# Make these default for now
10ARCH ?= arm32
Pascal Brand92542a72014-08-29 10:50:38 +020011PLATFORM ?= stm
Pascal Brandb0104772014-06-12 15:56:20 +020012O ?= out/$(ARCH)-plat-$(PLATFORM)
13
14arch_$(ARCH) := y
15
Pascal Brandb0104772014-06-12 15:56:20 +020016ifneq ($O,)
Jerome Forissier4334e8d2014-09-08 10:53:42 +020017out-dir := $O
Pascal Brandb0104772014-06-12 15:56:20 +020018endif
19
20ifneq ($V,1)
21q := @
22cmd-echo := true
23else
24q :=
25cmd-echo := echo
26endif
27
28include core/core.mk
29
30include ta/ta.mk
31
32.PHONY: clean
33clean:
Jerome Forissier0047cb62014-09-01 13:41:48 +020034 @echo ' CLEAN .'
Pascal Brandb0104772014-06-12 15:56:20 +020035 ${q}rm -f $(cleanfiles)
36
37.PHONY: cscope
38cscope:
Jerome Forissier0047cb62014-09-01 13:41:48 +020039 @echo ' CSCOPE .'
Pascal Brandb0104772014-06-12 15:56:20 +020040 ${q}rm -f cscope.*
41 ${q}find $(PWD) -name "*.[chSs]" > cscope.files
42 ${q}cscope -b -q -k