Init basesystem source codes.
[staging/basesystem.git] / video_in_hal / nsframework / framework_unified / client / NS_Utility / buildversioncheck / 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 ######### installed program #############
18
19
20 ######### installed library(*.a) #############
21
22 ######### installed shared library(*.so) #############
23 INST_SHLIBS = libNS_BuildVersionCheck
24
25 ######### install headers(*.h)  #############
26
27 ######### compiled sources  #############
28 libNS_BuildVersionCheck_SRCS = NS_BuildVersionCheck.cpp
29
30 ######### add source path #############
31 VPATH += ./src
32
33 ######### add include path #############
34 CPPFLAGS += -I./../../../include/
35
36 ######### add compile option #############
37 CPPFLAGS += -DLINUX -fdata-sections -ffunction-sections -DFLG_LEGACY
38
39 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
40 CPPFLAGS += -DBUILD_VERSION=PastModel002_stable_c1_I20130701-0000
41
42 CPPFLAGS += -Wl,--no-undefined
43 CPPFLAGS += -Werror=implicit-function-declaration
44 CPPFLAGS += -Werror=format-security
45
46 CPPFLAGS += -Wconversion
47 CPPFLAGS += -Wint-to-pointer-cast
48 CPPFLAGS += -Wpointer-arith
49 CPPFLAGS += -Wformat
50
51 LDFLAGS += -Wl,--no-as-needed
52 LDFLAGS += -g -Wl,--gc-sections -shared
53
54 LDLIBS += -Wl,-Bdynamic -lstdc++
55
56 ######### linked library #############
57
58 ######### linked library (dynamic) #############
59
60 ######### add library path #############
61
62 include ../../../../../native_service.mk