blob: 04d7d96ef10d9d96b84e066d0de9bc7a0a77e4da [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 Spinlere2b25cb2017-04-10 14:33:35 -05008 fan.cpp \
Matt Spinlere10416e2017-04-10 14:15:53 -05009 main.cpp \
Matt Spinler7f88fe62017-04-10 14:39:02 -050010 manager.cpp \
11 zone.cpp
Matt Spinlere73446e2017-04-10 13:55:52 -050012
Matt Spinler77d32d12017-04-12 09:51:41 -050013nodist_phosphor_fan_control_SOURCES = \
14 fan_zone_defs.cpp
15
Brad Bishop10484012017-04-24 22:59:18 -040016phosphor_fan_control_LDADD = \
Matt Spinlere2b25cb2017-04-10 14:33:35 -050017 $(top_builddir)/libfan.la \
Brad Bishop10484012017-04-24 22:59:18 -040018 $(SDBUSPLUS_LIBS) \
19 $(PHOSPHOR_LOGGING_LIBS)
20
21phosphor_fan_control_CXXFLAGS = \
22 $(SDBUSPLUS_CFLAGS) \
23 $(PHOSPHOR_LOGGING_CFLAGS)
Matt Spinler77d32d12017-04-12 09:51:41 -050024
25BUILT_SOURCES = fan_zone_defs.cpp
26
27fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py
28 $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS)