Add gitlab issue/merge request templates
[staging/basesystem.git] / service / other / vehicle_parameter_library / library / Makefile
1 #
2 # @copyright Copyright (c) 2017-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 INST_SHLIBS = libvp
18
19 VPATH = ./src ./include/$(COMPONENT_NAME)
20
21 INST_HEADERS = VP_GetEnv.h env_vehicle.h \
22                env_vehicleparameterlibrary.h env_vehicleparameterlibrary_serial.h env_ext.h \
23                VP_FuncCheck_CanRcv.h vehicle_parameter_library.h
24
25 libvp_SRCS = VP_FuncCheck_CanRcv.c VP_GetEnv.c
26
27 LDLIBS += -Wl,--no-as-needed
28 LDLIBS += -Wl,-Bdynamic -lns_backup
29
30 CPPFLAGS += -I./include
31 CPPFLAGS += -Werror=implicit-function-declaration
32 CPPFLAGS += -Werror=format-security
33 CPPFLAGS += -Wconversion
34 CPPFLAGS += -Wpointer-to-int-cast
35 CPPFLAGS += -Wint-to-pointer-cast
36 CPPFLAGS += -Wpointer-arith
37 CPPFLAGS += -Wformat
38 CPPFLAGS += -DVP_FUNCCHECK_CANRCV_CANRCV_ACTIVATE
39
40 include ../../other_service.mk