blob: 7b5fdae611dad4e08bddc00860f6c09cd254a4ba [file] [log] [blame]
Matt Spinlere567dd22017-04-27 12:27:17 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -iquote ${top_srcdir}
3
4sbin_PROGRAMS = \
5 phosphor-fan-monitor
6
7phosphor_fan_monitor_SOURCES = \
Matt Spinlerabf8da32017-04-27 14:08:45 -05008 fan.cpp \
Matt Spinlerabf8da32017-04-27 14:08:45 -05009 main.cpp \
10 tach_sensor.cpp
Matt Spinlere567dd22017-04-27 12:27:17 -050011
Matt Spinler14321842017-04-28 15:27:43 -050012nodist_phosphor_fan_monitor_SOURCES = \
13 fan_monitor_defs.cpp
14
15BUILT_SOURCES = fan_monitor_defs.cpp
16
Matt Spinlere567dd22017-04-27 12:27:17 -050017phosphor_fan_monitor_LDADD = \
Matt Spinlerebaae612017-04-27 14:21:48 -050018 $(top_builddir)/libfan.la \
Matt Spinlere567dd22017-04-27 12:27:17 -050019 $(SDBUSPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050020 $(PHOSPHOR_LOGGING_LIBS) \
21 ${PHOSPHOR_DBUS_INTERFACES_LIBS}
Matt Spinlere567dd22017-04-27 12:27:17 -050022
23phosphor_fan_monitor_CXXFLAGS = \
24 $(SDBUSPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050025 $(PHOSPHOR_LOGGING_CFLAGS) \
26 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS}
Matt Spinlere567dd22017-04-27 12:27:17 -050027
Matt Spinler14321842017-04-28 15:27:43 -050028fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
29 $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS)