common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / otherservice / posix_based_os001_legacy_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 INST_SHLIBS = libPosixBasedOS001legacy
18
19 VPATH = ./src ./include/$(COMPONENT_NAME)/
20 INST_HEADERS = strlcat.h strlcpy.h \
21 itoa.h \
22 PosixBasedOS001TimeApi.h \
23 PosixBasedOS001ClockCycleApi.h \
24 ultoa.h \
25 posix_based_os001_legacy_library.h
26
27 libPosixBasedOS001legacy_SRCS += strlcat.c strlcpy.c \
28 itoa.c \
29 PosixBasedOS001TimeApi.c \
30 PosixBasedOS001ClockCycleApi.c \
31 ultoa.c
32
33 CPPFLAGS = -I./include
34
35 LDFLAGS += -Wl,--no-undefined
36 LDFLAGS += -Wl,--no-as-needed
37 CPPFLAGS += -Werror=implicit-function-declaration
38 CPPFLAGS += -Werror=format-security
39
40 CPPFLAGS += -Wconversion
41 CPPFLAGS += -Wpointer-to-int-cast
42 CPPFLAGS += -Wint-to-pointer-cast
43 CPPFLAGS += -Wpointer-arith
44 CPPFLAGS += -Wformat
45
46
47
48 include ../../other_service.mk