blob: f54248ed07ac54b875a90c665a262dfcc727d087 [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) \
20 $(PHOSPHOR_LOGGING_LIBS)
21
22phosphor_fan_monitor_CXXFLAGS = \
23 $(SDBUSPLUS_CFLAGS) \
24 $(PHOSPHOR_LOGGING_CFLAGS)
25
Matt Spinler14321842017-04-28 15:27:43 -050026fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
27 $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS)