Init basesystem source codes.
[staging/basesystem.git] / nsframework / backup_manager / client / 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 ######### libraries to be installed(*.so)#############
18 INST_SHLIBS := libns_backup
19
20 ######### headers to be installed(*.h)   #############
21 INST_HEADERS := backup_manager.h ns_backup.h
22
23 ######### sources to be compiled         #############
24 libns_backup_SRCS := bkup_api.cpp
25
26 ######### search paths                   #############
27 VPATH += ./src ./include/$(COMPONENT_NAME) ../server/include
28
29 ######### include paths                  #############
30 CPPFLAGS += -I./include
31 CPPFLAGS += -I../server/include
32
33 ######### frameworkunifiedlog options                 #############
34 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
35
36 LDFLAGS += -Wl,--no-as-needed
37 LDFLAGS += -Wl,--no-undefined
38
39 ######### libraries to be linked(dynamic)#############
40 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
41
42 ######### other unit specific options    #############
43 LINK_CXX=Y
44
45 CPPFLAGS += -Werror=implicit-function-declaration
46 CPPFLAGS += -Werror=format-security
47
48 CPPFLAGS += -Wconversion
49 CPPFLAGS += -Wint-to-pointer-cast
50 CPPFLAGS += -Wpointer-arith
51 CPPFLAGS += -Wformat
52
53 include ../../native_service.mk