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 Module Makefile version 2.0
21 COMPONENT_NAME = NS_FrameworkCore
23 include $(PRJ_ROOT)cfg/depends.mk
25 # Additive Compile Flags (Flags from initiating make process will still apply)
32 $(CC_IFLAG)../../inc \
33 $(CC_IFLAG)../../inc/statemachine \
43 # Convert the source files to object files with correct folder location.
46 C_LANG_OBJECTS = $(addprefix $(BLD_PATH),$(addsuffix .$(OBJ_EXT),$(basename $(filter %.c ,$(SOURCES) ) ) ) )
47 CPP_LANG_OBJECTS = $(addprefix $(BLD_PATH),$(addsuffix .$(OBJ_EXT),$(basename $(filter %.cpp %.cc %.cxx,$(SOURCES) ) ) ) )
50 # List of all sources to be generated. Can be assembled from the other defintitions.
56 # All headers that are dependencies. Wildcard is easy to pickup local headers.
57 # This is only to automate the rebuilding, all builds on the servers are cleans
58 # So this is not a huge deal when building on a component level.
61 $(wildcard ../../inc/*.h) \
62 $(wildcard ../../inc/NS_Statemachine/*.h) \
63 $(wildcard $(REPOSITORY_ROOT)NativeServices/inc/*.h) \
67 all: banner module_dirs local
69 base: banner module_dirs subdirs local
75 # Standard set of derived targets
78 @echo "***** `date` Done building library: $(COMPONENT_NAME) ******"
80 # Defines specific for each deliverable
83 # Default source file build rules
84 $(OBJECTS): $(HEADERS)
86 # Standard Building of Source Files (Default builds for all objects defined above)
87 $(C_LANG_OBJECTS): $(SOURCES) $(HEADERS)
90 $(CPP_LANG_OBJECTS): $(SOURCES) $(HEADERS)
99 module_dirs: build_dirs