blob: a20fe8addcf6781a96d1874f9160780a043b96ef [file] [log] [blame]
Matthew Barthae0e96c2017-01-20 13:54:59 -06001AM_DEFAULT_SOURCE_EXT = .cpp
Matthew Barth293477d2017-02-17 15:39:36 -06002
Brad Bishop9df0e162017-04-22 14:19:45 -04003noinst_LTLIBRARIES = libfan.la
4libfan_la_LDFLAGS = -static
5libfan_la_LIBADD = \
William A. Kennington IIIb8848212018-10-19 17:07:51 -07006 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
7 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -07008 $(SDBUSPLUS_LIBS) \
9 $(SDEVENTPLUS_LIBS)
Lei YUbd2e80a2018-09-19 11:17:09 +080010libfan_la_CXXFLAGS = \
William A. Kennington IIIb8848212018-10-19 17:07:51 -070011 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
12 $(PHOSPHOR_LOGGING_CFLAGS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070013 $(SDBUSPLUS_CFLAGS) \
14 $(SDEVENTPLUS_CFLAGS) -flto
Brad Bishop9df0e162017-04-22 14:19:45 -040015libfan_la_SOURCES = \
Matt Spinler2de67cf2017-04-27 11:07:53 -050016 utility.cpp \
17 timer.cpp
Matthew Barth293477d2017-02-17 15:39:36 -060018
Brad Bishop5d70c252017-06-15 22:42:22 -040019SUBDIRS = . test sdevent/test evdevpp/test
Brad Bishop93919bb2017-04-22 14:58:29 -040020
21if WANT_PRESENCE
22SUBDIRS += presence
23endif
24if WANT_CONTROL
25SUBDIRS += control
26endif
Brandon Wymanca60e102017-03-29 17:06:02 -050027if WANT_COOLING_TYPE
Brandon Wymanfef02952017-03-31 18:13:21 -050028SUBDIRS += cooling-type
Brandon Wymanca60e102017-03-29 17:06:02 -050029endif
Matt Spinlere567dd22017-04-27 12:27:17 -050030if WANT_MONITOR
31SUBDIRS += monitor
32endif