2 # @copyright Copyright (c) 2017-2020 TOYOTA MOTOR CORPORATION.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 ######### programs to be installed #############
18 INST_PROGS := NS_BackupMgr
20 ######### sources to be compiled #############
21 NS_BackupMgr_SRCS := backupmanager_main.cpp \
25 backupmanager_application.cpp
27 ######### search paths #############
28 VPATH += ./src ./include ../client/include/$(COMPONENT_NAME)
30 ######### include paths #############
31 CPPFLAGS += -I./include
32 CPPFLAGS += -I../client/include
33 CPPFLAGS += -I=/usr/include/libxml2
35 ######### frameworkunifiedlog options #############
36 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,9,8,3
38 LDFLAGS += -Wl,--no-as-needed
39 LDFLAGS += -Wl,--no-undefined
41 ######### libraries to be linked(dynamic)#############
42 LDLIBS += -Wl,-Bdynamic \
43 -lSS_SystemIfUnified \
44 -lNS_FrameworkUnified \
50 ######### other unit specific options #############
53 CPPFLAGS += -Werror=implicit-function-declaration
54 CPPFLAGS += -Werror=format-security
56 CPPFLAGS += -Wconversion
57 CPPFLAGS += -Wint-to-pointer-cast
58 CPPFLAGS += -Wpointer-arith
60 CPPFLAGS += -DIMPL_AGL_APPLICATION_CALLBACKS_PRE_BACKGROUND
62 install-data: install_data
65 install -d -m 755 $(DESTDIR)/var/local/lib/basesystem/nv/BS/ns/backup_manager/rwdata
67 include ../../native_service.mk