Init basesystem source codes.
[staging/basesystem.git] / vehicleservice / positioning / client / src / POS_common_API / Makefile
1 #
2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3 #
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
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16 ######### installed shared library(*.so) #############
17 INST_SHLIBS = libPOS_common_API
18
19 ######### compiled sources  #############
20 libPOS_common_API_SRCS += Common_API.cpp
21
22 ######### add include path #############
23 CPPFLAGS += -I../../../server/include/common
24 CPPFLAGS += -I../../include
25 CPPFLAGS += -I../../../server/include/nsfw
26
27 ######### add compile option #############
28 CPPFLAGS += -DLINUX -fPIC
29
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
37 CPPFLAGS += -Wformat
38
39 ######### linked library (dynamic) #############
40 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
41 LDLIBS += -Wl,-Bdynamic -lPOS_base_API
42 LDLIBS += -Wl,-Bdynamic -lvp
43
44 ######### add library path #############
45 LDFLAGS += -shared
46
47 include ../../../../vehicle_service.mk