blob: 78b0b579da2dea059e222ea0e95c7a3694587e9f [file] [log] [blame]
AM_DEFAULT_SOURCE_EXT = .cpp
AM_CPPFLAGS = -iquote ${top_srcdir}
bin_PROGRAMS = \
phosphor-fan-monitor
phosphor_fan_monitor_SOURCES = \
argument.cpp \
fan.cpp \
fan_error.cpp \
power_interface.cpp \
logging.cpp \
main.cpp \
tach_sensor.cpp \
conditions.cpp \
system.cpp
phosphor_fan_monitor_LDADD = \
$(SDBUSPLUS_LIBS) \
$(SDEVENTPLUS_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
${PHOSPHOR_DBUS_INTERFACES_LIBS} \
-lstdc++fs \
$(STDPLUS_LIBS) \
$(FMT_LIBS)
phosphor_fan_monitor_CXXFLAGS = \
$(SDBUSPLUS_CFLAGS) \
$(SDEVENTPLUS_CFLAGS) \
$(PHOSPHOR_LOGGING_CFLAGS) \
${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
-flto \
$(STDPLUS_CFLAGS)
if WANT_JSON
phosphor_fan_monitor_SOURCES += json_parser.cpp
else
BUILT_SOURCES = fan_monitor_defs.cpp
nodist_phosphor_fan_monitor_SOURCES = \
fan_monitor_defs.cpp
fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
$(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS) > ${builddir}/$@
endif
SUBDIRS = test