common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / systemservice / rom_access_library / library / rom / 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 ######### search paths #############
18 VPATH += src
19 VPATH += ../include/$(COMPONENT_NAME)
20
21
22 ######### installed shared library(*.so) #############
23 INST_SHLIBS = libSS_RomAccessIf
24
25 ######### headers to be installed(*.h) #############
26 INST_HEADERS = rom_access_library.h ss_sm_boot_access.h ss_sm_ram_access.h ss_sm_rom_access.h
27
28 ######### compiled sources #############
29 libSS_RomAccessIf_SRCS += ss_sm_rom_access.cpp ss_sm_boot_access.cpp ss_sm_ram_access.cpp ss_sm_checksum.cpp
30
31 ######### add include path #############
32 CPPFLAGS += -I./../include
33
34 ######### frameworkunifiedlog options #############
35 CPPFLAGS += -DLINUX
36 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
37 LDFLAGS += -Wl,--no-as-needed
38 LDFLAGS += -Wl,--no-undefined
39
40 ######### add compile option #############
41 LDFLAGS += -L./../nor/
42 LINK_SHLIB_CXX := y
43 LDFLAGS += -g -Wl,--gc-sections -shared
44 CPPFLAGS += -Werror=implicit-function-declaration
45 CPPFLAGS += -Werror=format-security
46 CPPFLAGS += -Wconversion
47 CPPFLAGS += -Wint-to-pointer-cast
48 CPPFLAGS += -Wpointer-arith
49 CPPFLAGS += -Wformat
50
51 ######### linked library (dynamic) #############
52 LDLIBS +=  -Wl,-Bdynamic -lNS_FrameworkUnified
53 LDLIBS +=  -Wl,-Bdynamic -lcommon
54 LDLIBS +=  -Wl,-Bdynamic -lssaccess
55 LDLIBS +=  -Wl,-Bdynamic -lextension
56
57 CPPFLAGS_ss_sm_checksum.o += -fno-exceptions
58 CPPFLAGS_ss_sm_checksum.os += -fno-exceptions
59 CPPFLAGS_ss_sm_ram_access.o += -fno-exceptions
60 CPPFLAGS_ss_sm_ram_access.os += -fno-exceptions
61
62 include ../../../system_service.mk