From 17cf21bcf8a2e29d2cbcf0a313474d2a4ee44f5d Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Fri, 20 Nov 2020 23:36:23 +0900 Subject: Re-organized sub-directory by category Since all the sub-directories were placed in the first level, created sub-directories, "hal", "module", and "service" for classification and relocated each component. Signed-off-by: Tadao Tanikawa Change-Id: Ifdf743ac0d1893bd8e445455cf0d2c199a011d5c --- .../client/NativeServices/cfg/config.mk | 115 +++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100755 service/native/framework_unified/client/NativeServices/cfg/config.mk (limited to 'service/native/framework_unified/client/NativeServices/cfg/config.mk') diff --git a/service/native/framework_unified/client/NativeServices/cfg/config.mk b/service/native/framework_unified/client/NativeServices/cfg/config.mk new file mode 100755 index 0000000..5eb23f4 --- /dev/null +++ b/service/native/framework_unified/client/NativeServices/cfg/config.mk @@ -0,0 +1,115 @@ +# +# @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# +# Standard Configuration Makefile version 2.0 +# + +.SUFFIXES: + +# Setup configuration exports to make sure other "subprojects" have the correct configuration settings. +# Export shared variables +export DEFS +export LIBS +export LIB_PATHS + +# Export setup +export MAKE_DEPS := $(PRJ_ROOT)cfg/depends.mk +export MAKE_CFG := $(TOOLS_CFG)config.mk + +# Set the location of build files. By default all build files become local to the initating location of the build so +# one doesn't impact a referenced project +# Alteratively a directed path can also be supported. +ifndef PRJ_OUTPUT_ROOT +PRJ_OUTPUT_ROOT = $(PRJ_ROOT) +endif + +# Select Compiler Tool by name and select the tool configuration file +# default behavior is to generate for arm +ifeq ($(TARGET),analysis) +export MAKE_TOOLS := $(TOOLS_CFG)analysis.mk +else +ifeq ($(TARGET),x86) +export MAKE_TOOLS := $(TOOLS_CFG)PosixBasedOS001_x86.mk +else +ifeq ($(TARGET),armle) +export MAKE_TOOLS := $(TOOLS_CFG)PosixBasedOS001_arm.mk +else +export MAKE_TOOLS := $(TOOLS_CFG)PosixBasedOS001_armv7.mk +TARGET = armle-v7 +endif +endif +endif + + +# Set specific flags as path suffixes to make sure the right build options are picked up +ifdef DEBUG +BUILD_CFG+=/debug +endif +ifdef PROFILING +BUILD_CFG+=/profile +endif +ifndef BUILD_CFG +BUILD_CFG=/release +endif + +# Set File Paths +export BIN_PATH := $(PRJ_OUTPUT_ROOT)bin/$(TARGET)$(BUILD_CFG)/ +export BLD_PATH := $(PRJ_OUTPUT_ROOT)bld/$(TARGET)$(BUILD_CFG)/$(COMPONENT_NAME)/ +export LIB_PATH := $(PRJ_OUTPUT_ROOT)lib/$(TARGET)$(BUILD_CFG)/ +export SLIB_PATH := $(PRJ_OUTPUT_ROOT)dll/$(TARGET)$(BUILD_CFG)/ +export BUILD_DIRS = $(BIN_PATH) $(LIB_PATH) $(SLIB_PATH) $(BLD_PATH) +export BUILD_ROOTS := $(addprefix $(PRJ_OUTPUT_ROOT), bin bld lib dll) + +# Set Staging Location - set to a default location to prevent accidents +ifndef STAGE_LOCATION +export STAGE_LOCATION = C:/temp/stage/ +endif + +# Now include the defintions that have been exported +include $(MAKE_TOOLS) + +# Add additional configuration includes reflective of project and decisions expressed in include makefiles. +# So local includes, base infrastructure, and target platform. +# This is also the variable to add local overriding header file locations for configuration in makefiles +# prior to spawning to subprojects. Which means if you want to utilize different header files than those +# the project you are going to build this will force an early search path to override with. +ifndef CFG_INCS + export CFG_INCS += +endif + +# Standard Targets (and defaults) +all: + +subdirs: + +# Building necessary directories +build_dirs: $(BUILD_DIRS) + +$(BUILD_DIRS): + -mkdir -p $(@) + +# Stage "public" directories +stage: + -rm -r $(STAGE_LOCATION)/$(COMPONENT_NAME) + mkdir -p $(STAGE_LOCATION)/$(COMPONENT_NAME) + cp -r ../bin ../dll ../lib ../inc ../cfg ../doc $(STAGE_LOCATION)/$(COMPONENT_NAME)/ + + +# Debug Headers +banner: + @echo Making $(COMPONENT_NAME) + @echo Bld Roots $(BLD_ROOTS) -- cgit 1.2.3-korg