blob: b6d335f1ad111eaee59ebfb2c2cfa6491d3a7e19 [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 \
Matthew Barthb280bfa2017-09-15 09:56:50 -050012 actions.cpp \
Matt Spinler7f88fe62017-04-10 14:39:02 -050013 zone.cpp
Matt Spinlere73446e2017-04-10 13:55:52 -050014
Matt Spinler77d32d12017-04-12 09:51:41 -050015nodist_phosphor_fan_control_SOURCES = \
16 fan_zone_defs.cpp
17
Brad Bishop10484012017-04-24 22:59:18 -040018phosphor_fan_control_LDADD = \
19 $(SDBUSPLUS_LIBS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070020 $(SDEVENTPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050021 $(PHOSPHOR_LOGGING_LIBS) \
22 ${PHOSPHOR_DBUS_INTERFACES_LIBS}
Brad Bishop10484012017-04-24 22:59:18 -040023
24phosphor_fan_control_CXXFLAGS = \
25 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070026 $(SDEVENTPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050027 $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070028 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
29 -flto
Matt Spinler77d32d12017-04-12 09:51:41 -050030
31BUILT_SOURCES = fan_zone_defs.cpp
32
33fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py
34 $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS)