Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 1 | SHELL = /bin/bash |
2 | |||||
3 | .PHONY: all | ||||
4 | all: | ||||
5 | |||||
Jens Wiklander | 29f1a45 | 2014-08-29 08:26:57 +0200 | [diff] [blame^] | 6 | .PHONY: mem_usage |
7 | mem_usage: | ||||
8 | |||||
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 9 | # Make these default for now |
10 | ARCH ?= arm32 | ||||
Pascal Brand | 92542a7 | 2014-08-29 10:50:38 +0200 | [diff] [blame] | 11 | PLATFORM ?= stm |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 12 | O ?= out/$(ARCH)-plat-$(PLATFORM) |
13 | |||||
14 | arch_$(ARCH) := y | ||||
15 | |||||
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 16 | ifneq ($O,) |
Jerome Forissier | 4334e8d | 2014-09-08 10:53:42 +0200 | [diff] [blame] | 17 | out-dir := $O |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 18 | endif |
19 | |||||
20 | ifneq ($V,1) | ||||
21 | q := @ | ||||
22 | cmd-echo := true | ||||
23 | else | ||||
24 | q := | ||||
25 | cmd-echo := echo | ||||
26 | endif | ||||
27 | |||||
28 | include core/core.mk | ||||
29 | |||||
30 | include ta/ta.mk | ||||
31 | |||||
32 | .PHONY: clean | ||||
33 | clean: | ||||
Jerome Forissier | 0047cb6 | 2014-09-01 13:41:48 +0200 | [diff] [blame] | 34 | @echo ' CLEAN .' |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 35 | ${q}rm -f $(cleanfiles) |
36 | |||||
37 | .PHONY: cscope | ||||
38 | cscope: | ||||
Jerome Forissier | 0047cb6 | 2014-09-01 13:41:48 +0200 | [diff] [blame] | 39 | @echo ' CSCOPE .' |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 40 | ${q}rm -f cscope.* |
41 | ${q}find $(PWD) -name "*.[chSs]" > cscope.files | ||||
42 | ${q}cscope -b -q -k |