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.
16 ######### installed shared library(*.so) #############
17 INST_SHLIBS = libPOS_common_API
19 ######### compiled sources #############
20 libPOS_common_API_SRCS += Common_API.cpp
22 ######### add include path #############
23 CPPFLAGS += -I../../../server/include/common
24 CPPFLAGS += -I../../include
25 CPPFLAGS += -I../../../server/include/nsfw
27 ######### add compile option #############
28 CPPFLAGS += -DLINUX -fPIC
30 LDFLAGS += -Wl,--no-undefined
31 LDFLAGS += -Wl,--no-as-needed
32 CPPFLAGS += -Werror=implicit-function-declaration
33 CPPFLAGS += -Werror=format-security
34 CPPFLAGS += -Wconversion
35 CPPFLAGS += -Wint-to-pointer-cast
36 CPPFLAGS += -Wpointer-arith
39 ######### linked library (dynamic) #############
40 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
41 LDLIBS += -Wl,-Bdynamic -lPOS_base_API
42 LDLIBS += -Wl,-Bdynamic -lvp
44 ######### add library path #############
47 include ../../../../vehicle_service.mk