Init basesystem source codes.
[staging/basesystem.git] / vehicleservice / positioning_base_library / library / 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
17 ######### installed shared library(*.so) #############
18 INST_SHLIBS = libPOS_base_API
19
20 ######### install headers(*.h)  #############
21 VPATH += ./include/$(COMPONENT_NAME)
22 INST_HEADERS  += std_types.h
23 INST_HEADERS  += sys_timerapi.h
24 INST_HEADERS  += WPF_STD.h
25 INST_HEADERS  += pos_message_header.h
26 INST_HEADERS  += positioning_base_library.h
27 INST_HEADERS  += positioning_positioningbaselibrarylog.h
28
29 ######### compiled sources  #############
30 VPATH += src
31 libPOS_base_API_SRCS += _pbTimer.cpp
32 libPOS_base_API_SRCS += _pbCSection.cpp
33 libPOS_base_API_SRCS += _pbMutex.cpp
34 libPOS_base_API_SRCS += _pbSem.cpp
35 libPOS_base_API_SRCS += _pbDram.cpp
36 libPOS_base_API_SRCS += _pbFsys.cpp
37 libPOS_base_API_SRCS += _pbMem.cpp
38 libPOS_base_API_SRCS += _pbSram.cpp
39 libPOS_base_API_SRCS += _pbOSCtrl.cpp
40 libPOS_base_API_SRCS += _pbSerial.cpp
41 libPOS_base_API_SRCS += _pbWaitforsingleobject.cpp
42 libPOS_base_API_SRCS += _pbOther.cpp
43 libPOS_base_API_SRCS += _pbProcMng.cpp
44 libPOS_base_API_SRCS += _pbCommon.cpp
45 libPOS_base_API_SRCS += _CWORD64_api.cpp
46 libPOS_base_API_SRCS += _pbMisc.cpp
47 libPOS_base_API_SRCS += _pbEvent.cpp
48 libPOS_base_API_SRCS += _pbMsg.cpp
49 libPOS_base_API_SRCS += _pbSum.cpp
50 libPOS_base_API_SRCS += MsgBapi.cpp
51 libPOS_base_API_SRCS += memcpy_64p_sync.cpp
52 libPOS_base_API_SRCS += memset_64p_sync.cpp
53
54 ######### add include path #############
55 CPPFLAGS += -I./include
56 CPPFLAGS += -I./
57
58 ######### add compile option #############
59 CPPFLAGS += -DLINUX -fPIC
60 CPPFLAGS += -D_CWORD64_API_DOES_NOT_USE_UNICODE
61
62 LDFLAGS += -Wl,--no-undefined
63 LDFLAGS += -Wl,--no-as-needed
64 CPPFLAGS += -Werror=implicit-function-declaration
65 CPPFLAGS += -Werror=format-security
66 CPPFLAGS += -Wconversion
67 CPPFLAGS += -Wint-to-pointer-cast
68 CPPFLAGS += -Wpointer-arith
69 CPPFLAGS += -Wformat
70
71 ######### linked library (dynamic) #############
72 LDLIBS += -Wl,-Bdynamic -lvp
73 LDLIBS += -Wl,-Bdynamic -lrt
74 LDLIBS += -Wl,-Bdynamic -lcommon
75 LDLIBS += -Wl,-Bdynamic -lstdc++
76 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
77 LDLIBS += -Wl,-Bdynamic -lev
78
79 ######### add library path #############
80 LDFLAGS += -shared
81
82 INSTALL = install
83 CREATE_DIR = $(DESTDIR)/nv/BS/vs/positioning_base_library/rwdata
84 install-data:
85         $(INSTALL) -d -m 775 $(CREATE_DIR)
86
87 include  ../../vehicle_service.mk