Revision b74d5ee3 os/os.mk

View differences:

os/os.mk
1 1
################################################################################
2 2
# AMiRo-Apps is a collection of applications for the Autonomous Mini Robot     #
3 3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2016..2018  Thomas Schöpping et al.                            #
4
# Copyright (C) 2018..2018  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         #
......
24 24

  
25 25

  
26 26
# absolute path to this directory
27
OS_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
27
OS_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
28 28

  
29 29
# define to signal that this is an application build
30 30
# (no standalone os-only build)
31 31
UDEFS += -DAMIRO_APPS=true
32 32

  
33
# setup all variables for the LightRing
34
include $(LIGHTRING_APPS)
35
INCDIR += $(CONFIG_DIR)
36
APPSINC_LIGHTRING := $(INCDIR)
37
APPSCSRC_LIGHTRING := $(CSRC)
38
APPSCPPSRC_LIGHTRING := $(CPPSRC)
39
INCDIR :=
40
CSRC :=
41
CPPSRC :=
42

  
43
# setup all variables for the PowerManagement
44
include $(POWERMANAGEMENT_APPS)
45
INCDIR += $(CONFIG_DIR)
46
APPSINC_POWERMANAGEMENT := $(INCDIR)
47
APPSCSRC_POWERMANAGEMENT := $(CSRC)
48
APPSCPPSRC_POWERMANAGEMENT := $(CPPSRC)
49
INCDIR :=
50
CSRC :=
51
CPPSRC :=
52

  
53
# setup all variables for the DiWheelDrive
54
include $(DIWHEELDRIVE_APPS)
55
INCDIR += $(CONFIG_DIR)
56
APPSINC_DIWHEELDRIVE := $(INCDIR)
57
APPSCSRC_DIWHEELDRIVE := $(CSRC)
58
APPSCPPSRC_DIWHEELDRIVE := $(CPPSRC)
59
INCDIR :=
60
CSRC :=
61
CPPSRC :=
62

  
63 33
# make all variables that have been set so far available to all other makefiles
64 34
export
65 35

  
66
include $(OS_DIR)AMiRo-OS/Makefile
36
OS_MODULES_DIR := $(realpath $(OS_DIR)/AMiRo-OS/modules)
37

  

Also available in: Unified diff