Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Makefile @ 0352f25e

History | View | Annotate | Download (2.304 KB)

1 18671409 Thomas Schöpping
################################################################################
2
# AMiRo-BLT is the bootloader and flashing toolchain for the base version of   #
3
# the Autonomous Mini Robot (AMiRo). It is based on OpenBLT developed by       #
4
# Feaser (see <http://feaser.com/en/openblt.php>).                             #
5 4f07e80a Thomas Schöpping
# Copyright (C) 2016..2018  Thomas Schöpping et al.                            #
6 18671409 Thomas Schöpping
#                                                                              #
7
# This program is free software: you can redistribute it and/or modify         #
8
# it under the terms of the GNU General Public License as published by         #
9
# the Free Software Foundation, either version 3 of the License, or            #
10
# (at your option) any later version.                                          #
11
#                                                                              #
12
# This program is distributed in the hope that it will be useful,              #
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of               #
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                 #
15
# GNU General Public License for more details.                                 #
16
#                                                                              #
17
# You should have received a copy of the GNU General Public License            #
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.        #
19
#                                                                              #
20
# This research/work was supported by the Cluster of Excellence Cognitive      #
21
# Interaction Technology 'CITEC' (EXC 277) at Bielefeld University, which is   #
22
# funded by the German Research Foundation (DFG).                              #
23
################################################################################
24
25
26
27 6ac03b0f Thomas Schöpping
TARGET_PATH = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
28
MODULES = $(patsubst $(TARGET_PATH)Modules/%/,%,$(sort $(dir $(wildcard $(TARGET_PATH)Modules/*/*))))
29 18671409 Thomas Schöpping
30 6ac03b0f Thomas Schöpping
CLEANTRGS = $(MODULES:%=clean_%)
31
FLASHTRGS = $(MODULES:%=flash_%)
32 18671409 Thomas Schöpping
33 6ac03b0f Thomas Schöpping
all: $(MODULES)
34 18671409 Thomas Schöpping
35 6ac03b0f Thomas Schöpping
$(MODULES):
36
	$(MAKE) -C $(TARGET_PATH)Modules/$@/Boot/
37 18671409 Thomas Schöpping
38 6ac03b0f Thomas Schöpping
clean: $(CLEANTRGS)
39 18671409 Thomas Schöpping
40 6ac03b0f Thomas Schöpping
$(CLEANTRGS):
41
	$(MAKE) -C $(TARGET_PATH)Modules/$(@:clean_%=%)/Boot/ clean
42 18671409 Thomas Schöpping
43 6ac03b0f Thomas Schöpping
$(FLASHTRGS): $(@:flash_%=%)
44
	$(MAKE) -C $(TARGET_PATH)Modules/$(@:flash_%=%)/Boot/ flash