blob: 99b8e0113cc957660f90e058a6442d6f849adad3 [file] [log] [blame]
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +05301AM_DEFAULT_SOURCE_EXT = .cpp
Patrick Ventureab3b2472019-03-28 11:35:44 -07002bin_PROGRAMS = phosphor-ledmanager
Vishwanatha Subbanna36b16b32020-10-08 07:45:34 -05003bin_SCRIPTS = scripts/led-set-all-groups-asserted.sh
Vishwanatha Subbannabb8fe0b2016-11-12 18:29:38 +05304
5phosphor_ledmanager_SOURCES = \
6 led-main.cpp \
Vishwanatha Subbanna4c8c72b2016-11-29 23:02:06 +05307 manager.cpp \
George Liu2098aa62020-05-09 11:26:35 +08008 group.cpp \
George Liu1c737af2020-10-16 09:07:02 +08009 serialize.cpp \
10 utils.cpp
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +053011
George Liu937a0bd2020-07-03 15:29:20 +080012if !WANTS_JSON
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +053013BUILT_SOURCES = led-gen.hpp
14CLEANFILES = led-gen.hpp
Vishwanatha Subbannabb8fe0b2016-11-12 18:29:38 +053015
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +053016led-gen.hpp: ${srcdir}/parse_led.py
Brad Bishopd782d8e2017-02-01 21:23:50 -050017 $(AM_V)@LEDGEN@ > $@
George Liudef5f5a2020-04-10 11:23:52 +080018endif
Vishwanatha Subbannab21fda72016-10-17 17:46:37 +053019
Vishwanatha Subbanna55ef5b02017-03-10 13:32:08 +053020phosphor_ledmanager_LDFLAGS = $(SDBUSPLUS_LIBS) \
21 $(PHOSPHOR_LOGGING_LIBS) \
22 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
23phosphor_ledmanager_CFLAGS = $(SDBUSPLUS_CFLAGS) \
24 $(PHOSPHOR_LOGGING_CFLAGS) \
25 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053026
Vishwanatha Subbannab00e56c2021-02-03 04:58:17 -060027led_default_configdir = ${datadir}/phosphor-led-manager
28led_ibm_rainier_2u_configdir = ${datadir}/phosphor-led-manager/ibm,rainier-2u
29led_ibm_rainier_4u_configdir = ${datadir}/phosphor-led-manager/ibm,rainier-4u
30
31led_ibm_rainier_2u_config_DATA = configs/ibm,rainier-2u/led-group-config.json
32led_ibm_rainier_4u_config_DATA = configs/ibm,rainier-4u/led-group-config.json
33
Dhruvaraj Subhashchandran59b86cd2017-04-13 00:19:44 -050034SUBDIRS = test fault-monitor