Add gitlab issue/merge request templates
[staging/basesystem.git] / service / system / resource_manager / 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 = resm
19
20 ######### compiled sources  #############
21 resm_SRCS += resm.cpp
22 resm_SRCS += proc_watch.cpp
23 resm_SRCS += resourcemanager_application.cpp
24 resm_SRCS += cpuload_custom.cpp
25 resm_SRCS += resmgr_srvr_stub.cpp
26
27 ######### add source path #############
28 VPATH += ./src
29 VPATH += ./include/$(COMPONENT_NAME)
30 VPATH += ../client
31
32 ######### add include path #############
33 CPPFLAGS += -I./include
34 CPPFLAGS += -I../client
35
36 ######## add compile option ########
37 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGOPTIONS=0x08
38 CPPFLAGS += -DFRAMEWORKUNIFIEDLOGAPPZONES=104,64,31,30,29,28
39 CPPFLAGS += -DTARGET_SOC_$(TARGET_SOC)
40 CPPFLAGS += -DIMPL_AGL_APPLICATION_CALLBACKS_PRE_BACKGROUND
41 CPPFLAGS += -fno-exceptions
42
43 ######### linked library (dynamic) #############
44 LDFLAGS += -Wl,--no-as-needed
45 LDLIBS += -Wl,--no-as-needed
46 LDLIBS += -Wl,-Bdynamic -lstdc++
47 LDLIBS += -Wl,-Bdynamic -lSS_SystemIfUnified
48 LDLIBS += -Wl,-Bdynamic -lNS_FrameworkUnified
49 LDLIBS += -Wl,-Bdynamic -lsoc_temperature_hal
50 LDLIBS += -Wl,-Bdynamic -lcommon
51 LDLIBS += -Wl,-Bdynamic -lrpc
52
53 LDLIBS += -Wl,-Bdynamic -lbs_ev
54
55 include ../../system_service.mk