Changed to not use SDKTARGETSYSROOT.
[staging/basesystem.git] / service / native / backup_manager / server / 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 ######### programs to be installed       #############
18 INST_PROGS := NS_BackupMgr
19
20 ######### sources to be compiled         #############
21 NS_BackupMgr_SRCS := backupmanager_main.cpp \
22                      bkup_process.cpp \
23                      bkup_param.cpp \
24                      bkup_crc32.cpp \
25                      backupmanager_application.cpp
26
27 ######### search paths                   #############
28 VPATH += ./src ./include ../client/include/$(COMPONENT_NAME)
29
30 ######### include paths                  #############
31 CPPFLAGS += -I./include
32 CPPFLAGS += -I../client/include
33 CPPFLAGS += -I=/usr/include/libxml2
34
35 ######### frameworkunifiedlog options                 #############
36 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
37
38 LDFLAGS += -Wl,--no-as-needed
39 LDFLAGS += -Wl,--no-undefined
40
41 ######### libraries to be linked(dynamic)#############
42 LDLIBS += -Wl,-Bdynamic \
43           -lSS_SystemIfUnified \
44           -lNS_FrameworkUnified \
45           -lxml2 \
46           -lrt \
47           -lnv_hal \
48           -lvp
49
50 ######### other unit specific options    #############
51 LINK_CXX=Y
52
53 CPPFLAGS += -Werror=implicit-function-declaration
54 CPPFLAGS += -Werror=format-security
55
56 CPPFLAGS += -Wconversion
57 CPPFLAGS += -Wint-to-pointer-cast
58 CPPFLAGS += -Wpointer-arith
59 CPPFLAGS += -Wformat
60 CPPFLAGS += -DIMPL_AGL_APPLICATION_CALLBACKS_PRE_BACKGROUND
61
62 install-data: install_data
63
64 install_data:
65         install -d -m 755 $(DESTDIR)/var/local/lib/basesystem/nv/BS/ns/backup_manager/rwdata
66
67 include ../../native_service.mk