2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 # Standard Dependency Makefile Version 2.0
20 # Dependency file dictates not only what other modules the project is dependent on, but
21 # also where to get that dependent element which logically includes versioning or
22 # baselining information
25 # Begin User Build Location Definition
26 # This is the prefixing information which dictates the versioning of dependant projects
27 # Typically path statements will include some set of versioning information.
29 # The Repository Root is the base location of where a build is put in context
30 # By default this is up a directory from the project root. This is based on
31 # the default local build where a component where a project is started to build is
32 # on the same level as other components in the repository. Otherwise a value can
33 # be forced by setting the value before operating on the configuration file.
35 # Example would be to setting the Repository Root to a baseline label name
36 # where the contents of the baseline lable are exported to the filesystem.
37 ifndef REPOSITORY_ROOT
38 export REPOSITORY_ROOT = $(PRJ_ROOT)../
41 # The Team Root is akin to the Repository Root. It sets the location of
42 # the root for other components in the same stream. It is very rare to
43 # modify the value of the team root. However it is entirely possible that
44 # the repository root and the team root are pointed to the same location.
45 # By default the Team Root is set to the workspace location of your project
47 export TEAM_ROOT = $(PRJ_ROOT)../
50 # Setup the include paths for project functional dependencies by component.
51 # This is a list of include paths that should be done with relative locations
52 # that are relative to the repository root for all elements external to the
53 # component. All Dependency includes should be based on the $(REPOSITORY_ROOT)
54 # all local (team/local) dependencies should be handled in the main makefile.
55 # Note: Internal include locations should be simply in the makefile directly using
56 # the './' as the notation for referencing location.
57 # EXCEPTION: The first include is a TEAM_ROOT for the locally "globally" visible
58 # module(s) of the Domain. (When doing the product release this is overridden)
60 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc \
61 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/framework \
62 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/_CWORD77_ \
63 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/services \
64 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/utility \
65 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/native \
66 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/framework/statemachine \
67 $(CC_IFLAG)$(TEAM_ROOT)SystemServices/inc \
68 $(CC_IFLAG)$(TEAM_ROOT)NativeServices/inc/testautomationframework \
69 $(CC_IFLAG)$(REPOSITORY_ROOT)OpenSource/inc \
72 $(TEAM_ROOT)NativeServices/lib/$(TARGET)$(BUILD_CFG)/ \
73 $(TEAM_ROOT)NativeServices/dll/$(TARGET)$(BUILD_CFG)/
75 # BSP is required for PastModel002 because of mq (libmqS.a)
77 ifeq ($(PRODUCT_NAME),PastModel004)
84 ifneq ($(findstring all,$(MAKECMDGOALS)),)
87 $(\n)***************************************************************************************** \
88 $(\n)!!!ERROR!!! BSP not defined. Please, define TARGET_BSP variable in your make environment \
89 $(\n)***************************************************************************************** \
93 DEPENDS_LIB_PATHS += $(REPOSITORY_ROOT)/$(BSP)/prebuilt/armle-v7/usr/lib
99 # $(REPOSITORY_ROOT)SystemServices/lib/$(TARGET)$(BUILD_CFG)/ \
101 # Setup library definintions. Same rules
102 include $(TEAM_ROOT)NativeServices/cfg/nativeserviceslibraries.mk
104 # Setup the include location for the tools configuration. This sets the
105 # standard tool definition locations. By default these are local, but
106 # long term will be a standard component for a project to include. This
107 # definition is inherited in cases that this is a recursive call.
111 TOOLS_CFG = $(TEAM_ROOT)NativeServices/cfg/
114 # Include the configuration
115 include $(TOOLS_CFG)config.mk