blob: 31e86c024972a4b08ee03f955ea783fb6cfea513 [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 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 = \
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) \
23 ${PHOSPHOR_DBUS_INTERFACES_LIBS}
Brad Bishop10484012017-04-24 22:59:18 -040024
25phosphor_fan_control_CXXFLAGS = \
26 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070027 $(SDEVENTPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050028 $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070029 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
30 -flto
Matt Spinler77d32d12017-04-12 09:51:41 -050031
32BUILT_SOURCES = fan_zone_defs.cpp
33
34fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py
35 $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS)