Statistics
| Branch: | Revision:

amiro-apps / configurations / HelloWorld / Makefile @ b74d5ee3

History | View | Annotate | Download (2.471 KB)

1
################################################################################
2
# AMiRo-Apps is a collection of applications for the Autonomous Mini Robot     #
3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2018..2018  Thomas Schöpping et al.                            #
5
#                                                                              #
6
# This program is free software: you can redistribute it and/or modify         #
7
# it under the terms of the GNU General Public License as published by         #
8
# the Free Software Foundation, either version 3 of the License, or            #
9
# (at your option) any later version.                                          #
10
#                                                                              #
11
# This program is distributed in the hope that it will be useful,              #
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of               #
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                #
14
# GNU General Public License for more details.                                 #
15
#                                                                              #
16
# You should have received a copy of the GNU General Public License            #
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.        #
18
#                                                                              #
19
# This research/work was supported by the Cluster of Excellence Cognitive      #
20
# Interaction Technology 'CITEC' (EXC 277) at Bielefeld University, which is   #
21
# funded by the German Research Foundation (DFG).                              #
22
################################################################################
23

    
24

    
25

    
26
# absolue path to this directory
27
HelloWorldCONF_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
28

    
29
ifneq ($(BUILDDIR),)
30
  export BUILDDIR
31
endif
32

    
33
# list of available modules
34
HelloWorldCONF_MODULES = $(patsubst $(HelloWorldCONF_DIR)/modules/%/,%,$(sort $(dir $(wildcard $(HelloWorldCONF_DIR)/modules/*/*))))
35

    
36
CLEANTRGS = $(HelloWorldCONF_MODULES:%=clean_%)
37
FLASHTRGS = $(HelloWorldCONF_MODULES:%=flash_%)
38

    
39
.PHONY: all $(MODULES) $(FLASHTRGS) clean $(CLEANTRGS)
40

    
41
all: $(HelloWorldCONF_MODULES)
42
$(HelloWorldCONF_MODULES):
43
	$(MAKE) -C $(HelloWorldCONF_DIR)/modules/$@
44

    
45
$(FLASHTRGS):
46
	$(MAKE) -C $(HelloWorldCONF_DIR)/modules/$(@:flash_%=%) flash
47

    
48
clean: $(CLEANTRGS)
49
$(CLEANTRGS):
50
	$(MAKE) -C $(HelloWorldCONF_DIR)/modules/$(@:clean_%=%) clean