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.
17 ######### installed program #############
20 ######### installed library(*.a) #############
22 ######### installed shared library(*.so) #############
23 INST_SHLIBS = libNS_BuildVersionCheck
25 ######### install headers(*.h) #############
27 ######### compiled sources #############
28 libNS_BuildVersionCheck_SRCS = NS_BuildVersionCheck.cpp
30 ######### add source path #############
33 ######### add include path #############
34 CPPFLAGS += -I./../../../include/
36 ######### add compile option #############
37 CPPFLAGS += -DLINUX -fdata-sections -ffunction-sections -DFLG_LEGACY
39 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
40 CPPFLAGS += -DBUILD_VERSION=PastModel002_stable_c1_I20130701-0000
42 CPPFLAGS += -Wl,--no-undefined
43 CPPFLAGS += -Werror=implicit-function-declaration
44 CPPFLAGS += -Werror=format-security
46 CPPFLAGS += -Wconversion
47 CPPFLAGS += -Wint-to-pointer-cast
48 CPPFLAGS += -Wpointer-arith
51 LDFLAGS += -Wl,--no-as-needed
52 LDFLAGS += -g -Wl,--gc-sections -shared
54 LDLIBS += -Wl,-Bdynamic -lstdc++
56 ######### linked library #############
58 ######### linked library (dynamic) #############
60 ######### add library path #############
62 include ../../../../../native_service.mk