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) #############
23 ######### installed shared library(*.so) #############
24 INST_SHLIBS = libCAN_API
26 ######### install unit representative headers(*.h) #############
27 VPATH += ../server/include/$(COMPONENT_NAME)
28 INST_HEADERS += communication_notifications.h communication.h ps_services.h
30 ######### install headers(*.h) #############
31 VPATH += ./include/$(COMPONENT_NAME)
32 INST_HEADERS += Canif_API.h communication_can.h
34 ######### compiled sources #############
35 libCAN_API_SRCS += Canif_API.cpp
37 ######### add source path #############
40 ######### add include path #############
41 CPPFLAGS += -I./include
42 CPPFLAGS += -I./../client_lan/include/
43 CPPFLAGS += -I./../server/include
44 CPPFLAGS += -I./../server/include/private
45 CPPFLAGS += -I./../server/include/CAN/TxMsg
46 CPPFLAGS += -I./../server/include/CAN/main
47 CPPFLAGS += -I./../server/include/main
48 CPPFLAGS += -I./../server/include/threads
50 ######### add compile option #############
51 CPPFLAGS += -DLINUX -fPIC -fdata-sections -ffunction-sections -DFLG_CORE
53 CPPFLAGS += -Werror=implicit-function-declaration
54 CPPFLAGS += -Werror=format-security
56 CPPFLAGS += -Wconversion
57 CPPFLAGS += -Wint-to-pointer-cast
58 CPPFLAGS += -Wpointer-arith
61 ######### add library path #############
62 LDFLAGS += -Wl,-M -Wl,--gc-sections
63 LDFLAGS += -Wl,--no-as-needed
64 LDFLAGS += -Wl,--no-undefined
66 ######### linked library (static) #############
68 ######### linked library (dynamic) #############
69 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
70 LDLIBS += -Wl,-Bdynamic -lrt
72 include ../../peripheral_service.mk