Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / peripheralservice / communication / client_can / 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 program #############
18 #INST_PROGS =
19
20 ######### installed library(*.a) #############
21 #INST_LIBS = 
22
23 ######### installed shared library(*.so) #############
24 INST_SHLIBS = libCAN_API
25
26 ######### install unit representative headers(*.h)  #############
27 VPATH += ../server/include/$(COMPONENT_NAME)
28 INST_HEADERS += communication_notifications.h communication.h ps_services.h
29
30 ######### install headers(*.h)  #############
31 VPATH += ./include/$(COMPONENT_NAME)
32 INST_HEADERS += Canif_API.h communication_can.h
33
34 ######### compiled sources  #############
35 libCAN_API_SRCS += Canif_API.cpp
36
37 ######### add source path #############
38 VPATH += ./src
39
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
49
50 ######### add compile option #############
51 CPPFLAGS += -DLINUX -fPIC -fdata-sections -ffunction-sections -DFLG_CORE
52
53 CPPFLAGS += -Werror=implicit-function-declaration
54 CPPFLAGS += -Werror=format-security 
55
56 CPPFLAGS += -Wconversion
57 CPPFLAGS += -Wint-to-pointer-cast
58 CPPFLAGS += -Wpointer-arith
59 CPPFLAGS += -Wformat
60
61 ######### add library path #############
62 LDFLAGS += -Wl,-M -Wl,--gc-sections
63 LDFLAGS += -Wl,--no-as-needed
64 LDFLAGS += -Wl,--no-undefined
65
66 ######### linked library (static) #############
67
68 ######### linked library (dynamic) #############
69 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
70 LDLIBS += -Wl,-Bdynamic -lrt 
71
72 include ../../peripheral_service.mk