blob: da67ee53e425543bdc8c044d1bcf498595e41575 [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
Patrick Venture71779ab2019-03-28 11:22:15 -07004bin_PROGRAMS = \
Matt Spinlere73446e2017-04-10 13:55:52 -05005 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 Barth014f07c2019-05-30 09:55:42 -050012 utility.cpp \
Matthew Barth03aff082018-12-12 15:20:22 -060013 preconditions.cpp \
Matthew Barthb280bfa2017-09-15 09:56:50 -050014 actions.cpp \
Matthew Barth1b4de262018-03-06 13:03:16 -060015 triggers.cpp \
Matt Spinler7f88fe62017-04-10 14:39:02 -050016 zone.cpp
Matt Spinlere73446e2017-04-10 13:55:52 -050017
Brad Bishop10484012017-04-24 22:59:18 -040018phosphor_fan_control_LDADD = \
Matthew Barth93af4192019-01-18 09:30:57 -060019 -lstdc++fs \
Brad Bishop10484012017-04-24 22:59:18 -040020 $(SDBUSPLUS_LIBS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070021 $(SDEVENTPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050022 $(PHOSPHOR_LOGGING_LIBS) \
Matthew Barth1826c732020-08-28 08:40:59 -050023 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
24 $(FMT_LIBS)
Brad Bishop10484012017-04-24 22:59:18 -040025
26phosphor_fan_control_CXXFLAGS = \
27 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070028 $(SDEVENTPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050029 $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070030 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
31 -flto
Matt Spinler77d32d12017-04-12 09:51:41 -050032
Matthew Barthd87f89f2020-07-30 10:41:32 -050033if WANT_JSON
Matthew Barth167d2dd2020-08-04 12:19:16 -050034SUBDIRS = json .
35phosphor_fan_control_LDADD += ${builddir}/json/libfan-control-json.la
Matthew Barthd87f89f2020-07-30 10:41:32 -050036phosphor_fan_control_SOURCES += json_parser.cpp
37else
Matt Spinler77d32d12017-04-12 09:51:41 -050038BUILT_SOURCES = fan_zone_defs.cpp
Matthew Barthd87f89f2020-07-30 10:41:32 -050039nodist_phosphor_fan_control_SOURCES = \
40 fan_zone_defs.cpp
Matt Spinler77d32d12017-04-12 09:51:41 -050041
42fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py
Matthew Barth8c8f53d2020-02-18 09:40:13 -060043 $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS) > ${builddir}/$@
Matthew Barthd87f89f2020-07-30 10:41:32 -050044endif