-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile.am
66 lines (52 loc) · 3.92 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Copyright (c) 2018 Dell Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
# LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS
# FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
#
# See the Apache Version 2.0 License for specific language governing
# permissions and limitations under the License.
#
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = inc
COMMON_HARDEN_FLAGS=-fexceptions -fstack-protector-strong -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wall -Wformat -Wformat-security -Werror
C_HARDEN_FLAGS=-Wimplicit-function-declaration
LD_HARDEN_FLAGS=-Wl,-z,defs -Wl,-z,now -Wl,-z,relo
lib_LTLIBRARIES = libopx_pas.la
libopx_pas_la_SOURCES= src/platform-utils/dn_platform_utils_imp.c
libopx_pas_la_CPPFLAGS= -D_FILE_OFFSET_BITS=64 -I$(top_srcdir)/inc/opx -I$(top_srcdir)/inc/opx/private -I$(includedir)/opx $(COMMON_HARDEN_FLAGS) -fpic
libopx_pas_la_CXXFLAGS=-std=c++11 $(COMMON_HARDEN_FLAGS)
libopx_pas_la_LDFLAGS= $(LD_HARDEN_FLAGS) -shared -version-info 1:1:0
libopx_pas_la_LIBADD= -lopx_common -lopx_cps_api_common -lopx_cps_class_map -lopx_logging
#copy opx-pas systemd service file to target
systemdconfdir=/lib/systemd/system
systemdconf_DATA= config/init/opx-pas.service
#The CLI used to change levels at runtime
bin_PROGRAMS = opx_pas_service
nobase_include_HEADERS = inc/opx/private/dn_pas.h inc/opx/dn_platform_utils.h
opx_pas_service_SOURCES = src/pas_lib.c src/pald.c src/pas_monitor/pas_monitor.c src/pas/pas_main.c src/fuse/pas_fuse_main.c \
src/pas/pas_chassis_handler.c src/pas/pas_entity_handler.c src/pas/pas_psu_handler.c src/pas/pas_fan_tray_handler.c \
src/pas/pas_card_handler.c src/pas/pas_fan_handler.c src/pas/pas_led_handler.c src/pas/pas_display_handler.c \
src/pas/pas_temp_threshold_handler.c src/pas/pas_pld_handler.c src/pas/pas_port_module_handler.c src/pas/pas_status_handler.c \
src/pas/pas_media_handler.c src/pas/pas_media_channel_handler.c src/pas/pas_phy_handler.c src/pas/pas_nvram_handler.c\
src/pas/pas_temperature_handler.c src/pas/pas_media_config_handler.c src/pas/pas_power_monitor_handler.c src/pas_data_store.cpp \
src/pas_event.c src/pas_entity.c src/pas_psu.c src/pas_fan_tray.c src/pas_card.c src/pas_fan.c src/pas_media.c src/pas_media_utils.c \
src/pas_utils.c src/pas_config.c src/pas_temp_sensor.c src/pas_led.c src/pas_display.c src/pas_power_monitor.c src/pas_nvram.c
opx_pas_service_SOURCES+= src/fuse/pas_fuse_fan.c src/fuse/pas_fuse_common.c src/fuse/pas_fuse_led.c src/fuse/pas_fuse_thermal_sensor.c \
src/fuse/pas_fuse_display_led.c src/fuse/pas_fuse_entity_info.c src/fuse/pas_fuse_media.c \
src/fuse/pas_fuse_parser.c src/fuse/pas_fuse_diag_mode.c src/remote_poller/pas_remote_poller.c \
src/fuse/pas_fuse_nvram.c src/pas_job_queue.cpp
opx_pas_service_SOURCES += src/pas_comm_dev.c src/pas_host_system.c src/pas/pas_comm_dev_handler.c src/pas/pas_host_system_handler.c \
src/pas_log.c src/pas_media_properties_discovery.c src/pas_media_info_map.cpp src/pas_media_properties_utils.c src/pas_ext_ctrl.c
opx_pas_service_CPPFLAGS= -D_FILE_OFFSET_BITS=64 -I$(top_srcdir)/inc/opx -I$(top_srcdir)/inc/opx/private -I$(includedir)/opx $(COMMON_HARDEN_FLAGS) $(C_HARDEN_FLAGS)
opx_pas_service_CXXFLAGS= -std=c++11 $(COMMON_HARDEN_FLAGS)
opx_pas_service_LDFLAGS= $(LD_HARDEN_FLAGS)
opx_pas_service_LDADD= libopx_pas.la -lfuse -lopx_common -lopx_sdi_sys -lopx_cps_api_common -lopx_cps_class_map -lrt -lopx_logging -lpthread -lsystemd -ldl -lz
sosdir=/usr/share/sosreport/sos/plugins
sos_DATA=sos/*