Revision 6d4ba740 middleware/middleware.mk

View differences:

middleware/middleware.mk
1 1
################################################################################
2 2
# AMiRo-Apps is a collection of applications for the Autonomous Mini Robot     #
3 3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2018..2019  Thomas Schöpping et al.                            #
4
# Copyright (C) 2018..2020  Thomas Schöpping et al.                            #
5 5
#                                                                              #
6 6
# This program is free software: you can redistribute it and/or modify         #
7 7
# it under the terms of the GNU General Public License as published by         #
......
26 26
# absolute path to this directory
27 27
MIDDLEWARE_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
28 28

  
29
include $(MIDDLEWARE_DIR)/uRtWare/Makefile
29
# middleware setup
30
ifeq ($(CONFIG_MIDDLEWARE),"µRtWare")
31
  $(info >>> MIDDLEWARE: µRtWare)
30 32

  
31
# include paths
32
MIDDLEWAREINC = $(URTWARE_INC) \
33
                $(MIDDLEWARE_DIR)
33
  include $(MIDDLEWARE_DIR)/uRtWare/Makefile
34 34

  
35
# C source files
36
MIDDLEWARECSRC = $(URTWARE_CSRC)
35
  # include paths
36
  MIDDLEWARE_INC = $(URTWARE_INC) \
37
                   $(MIDDLEWARE_DIR)
37 38

  
38
# C++ source files
39
MIDDLEWARECPPSRC = $(URTWARE_CPPSRC)
39
  # C source files
40
  MIDDLEWARE_CSRC = $(URTWARE_CSRC) \
41
                    $(MIDDLEWARE_DIR)/apps_urtosal.c
40 42

  
43
  # C++ source files
44
  MIDDLEWARE_CPPSRC = $(URTWARE_CPPSRC)
41 45

  
46
  # 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
42 54

  

Also available in: Unified diff