amiro-apps / middleware / middleware.mk @ 08abcefd
History | View | Annotate | Download (2.491 KB)
1 | b1f38b27 | Thomas Schöpping | ################################################################################ |
---|---|---|---|
2 | # AMiRo-Apps is a collection of applications for the Autonomous Mini Robot # |
||
3 | # (AMiRo) platform. # |
||
4 | 6d4ba740 | Thomas Schöpping | # Copyright (C) 2018..2020 Thomas Schöpping et al. # |
5 | b1f38b27 | Thomas Schöpping | # # |
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 | # absolute path to this directory |
||
27 | b74d5ee3 | Thomas Schöpping | MIDDLEWARE_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) |
28 | b1f38b27 | Thomas Schöpping | |
29 | 6d4ba740 | Thomas Schöpping | # middleware setup |
30 | ifeq ($(CONFIG_MIDDLEWARE),"µRtWare") |
||
31 | $(info >>> MIDDLEWARE: µRtWare) |
||
32 | b1f38b27 | Thomas Schöpping | |
33 | 6d4ba740 | Thomas Schöpping | include $(MIDDLEWARE_DIR)/uRtWare/Makefile |
34 | b1f38b27 | Thomas Schöpping | |
35 | 6d4ba740 | Thomas Schöpping | # include paths |
36 | MIDDLEWARE_INC = $(URTWARE_INC) \ |
||
37 | $(MIDDLEWARE_DIR) |
||
38 | b1f38b27 | Thomas Schöpping | |
39 | 6d4ba740 | Thomas Schöpping | # C source files |
40 | MIDDLEWARE_CSRC = $(URTWARE_CSRC) \ |
||
41 | $(MIDDLEWARE_DIR)/apps_urtosal.c |
||
42 | b1f38b27 | Thomas Schöpping | |
43 | 6d4ba740 | Thomas Schöpping | # C++ source files |
44 | MIDDLEWARE_CPPSRC = $(URTWARE_CPPSRC) |
||
45 | b1f38b27 | Thomas Schöpping | |
46 | 6d4ba740 | Thomas Schöpping | # URT-OSAL implementation header file |
47 | UDEFS += -DURT_CFG_OSAL_HEADER=\"apps_urtosal.h\" |
||
48 | |||
49 | else ifeq ($(CONFIG_MIDDLEWARE),) |
||
50 | $(info >>> MIDDLEWARE: none) |
||
51 | else |
||
52 | $(error >>> MIDDLEWARE: unknown/unsupported middleware selected: $(CONFIG_MIDDLEWARE)) |
||
53 | endif |