blob: 759997795170daa2c34c6544c7e78c9d3f324cc8 [file] [log] [blame]
Matt Spinlere73446e2017-04-10 13:55:52 -05001AM_DEFAULT_SOURCE_EXT = .cpp
Brad Bishop9df0e162017-04-22 14:19:45 -04002AM_CPPFLAGS = -iquote ${top_srcdir}
Matt Spinlere73446e2017-04-10 13:55:52 -05003
4sbin_PROGRAMS = \
5 phosphor-fan-control
6
7phosphor_fan_control_SOURCES = \
Matt Spinleree7f6422017-05-09 11:03:14 -05008 argument.cpp \
Matt Spinlere2b25cb2017-04-10 14:33:35 -05009 fan.cpp \
Matt Spinlere10416e2017-04-10 14:15:53 -050010 main.cpp \
Matt Spinler7f88fe62017-04-10 14:39:02 -050011 manager.cpp \
12 zone.cpp
Matt Spinlere73446e2017-04-10 13:55:52 -050013
Matt Spinler77d32d12017-04-12 09:51:41 -050014nodist_phosphor_fan_control_SOURCES = \
15 fan_zone_defs.cpp
16
Brad Bishop10484012017-04-24 22:59:18 -040017phosphor_fan_control_LDADD = \
Matt Spinlere2b25cb2017-04-10 14:33:35 -050018 $(top_builddir)/libfan.la \
Brad Bishop10484012017-04-24 22:59:18 -040019 $(SDBUSPLUS_LIBS) \
20 $(PHOSPHOR_LOGGING_LIBS)
21
22phosphor_fan_control_CXXFLAGS = \
23 $(SDBUSPLUS_CFLAGS) \
24 $(PHOSPHOR_LOGGING_CFLAGS)
Matt Spinler77d32d12017-04-12 09:51:41 -050025
26BUILT_SOURCES = fan_zone_defs.cpp
27
28fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py
29 $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS)