blob: 6aba1073c8ccfa83338bac6cc85e38b39f6d5e53 [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) \
George Liu616a0712021-02-18 10:50:24 +080022 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
23 $(SDEVENTPLUS_LIBS)
Vishwanatha Subbanna55ef5b02017-03-10 13:32:08 +053024phosphor_ledmanager_CFLAGS = $(SDBUSPLUS_CFLAGS) \
25 $(PHOSPHOR_LOGGING_CFLAGS) \
George Liu616a0712021-02-18 10:50:24 +080026 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
27 $(SDEVENTPLUS_CFLAGS)
Vishwanatha Subbannaed490732016-12-20 15:59:29 +053028
George Liuc777bef2020-11-23 17:04:21 +080029if WANTS_LAMP_TEST
30phosphor_ledmanager_SOURCES += lamptest.cpp
31endif
32
Vishwanatha Subbannab00e56c2021-02-03 04:58:17 -060033led_default_configdir = ${datadir}/phosphor-led-manager
34led_ibm_rainier_2u_configdir = ${datadir}/phosphor-led-manager/ibm,rainier-2u
35led_ibm_rainier_4u_configdir = ${datadir}/phosphor-led-manager/ibm,rainier-4u
36
37led_ibm_rainier_2u_config_DATA = configs/ibm,rainier-2u/led-group-config.json
38led_ibm_rainier_4u_config_DATA = configs/ibm,rainier-4u/led-group-config.json
39
Dhruvaraj Subhashchandran59b86cd2017-04-13 00:19:44 -050040SUBDIRS = test fault-monitor