Re-organized sub-directory by category
[staging/basesystem.git] / service / system / power_service / server / 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 INST_PROGS = SS_PowerService
19
20
21 ######### compiled sources  #############
22 SS_PowerService_SRCS += ./src/powerservice_application.cpp
23 SS_PowerService_SRCS += ./src/powerservice_main.cpp
24 SS_PowerService_SRCS += ./src/ss_power.cpp
25 SS_PowerService_SRCS += ./src/ss_power_config.cpp
26 SS_PowerService_SRCS += ./src/ss_power_session.cpp
27 SS_PowerService_SRCS += ./src/ss_power_state_machine.cpp
28 SS_PowerService_SRCS += ./src/ss_pwr_test_client_handlers.cpp
29 SS_PowerService_SRCS += ./src/ss_supervisor_handlers.cpp
30 SS_PowerService_SRCS += ./src/ss_system_handlers.cpp
31
32
33 ######### add include path #############
34 CPPFLAGS += -I./include
35
36
37 ######### add compile option #############
38 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x09 -DFRAMEWORKUNIFIEDLOGAPPZONES=31,30,29,28,27,26,13,9,8,3  ## open log-tag
39 CPPFLAGS += -DTARGET_SOC_$(TARGET_SOC)
40 CPPFLAGS += -DIMPL_AGL_APPLICATION_CALLBACKS_PRE_BACKGROUND
41
42 ######### linked library (dynamic) #############
43 LDLIBS += -Wl,-Bdynamic -lSS_SystemIfUnified
44 LDLIBS += -Wl,-Bdynamic -lstdc++
45 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
46 LDLIBS += -Wl,-Bdynamic -lPosixBasedOS001legacy
47
48 ######### add library path #############
49 LDFLAGS += -g -Wl,--gc-sections
50
51 include ../../system_service.mk