blob: 67f49e9640629e8371f6f571ca8d57de0e94b1c7 [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) \
Brad Bishop9df0e162017-04-22 14:19:45 -04008 $(SDBUSPLUS_LIBS)
Lei YUbd2e80a2018-09-19 11:17:09 +08009libfan_la_CXXFLAGS = \
William A. Kennington IIIb8848212018-10-19 17:07:51 -070010 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
11 $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070012 $(SDBUSPLUS_CFLAGS) -flto
Brad Bishop9df0e162017-04-22 14:19:45 -040013libfan_la_SOURCES = \
Matt Spinler2de67cf2017-04-27 11:07:53 -050014 utility.cpp \
15 timer.cpp
Matthew Barth293477d2017-02-17 15:39:36 -060016
Brad Bishop5d70c252017-06-15 22:42:22 -040017SUBDIRS = . test sdevent/test evdevpp/test
Brad Bishop93919bb2017-04-22 14:58:29 -040018
19if WANT_PRESENCE
20SUBDIRS += presence
21endif
22if WANT_CONTROL
23SUBDIRS += control
24endif
Brandon Wymanca60e102017-03-29 17:06:02 -050025if WANT_COOLING_TYPE
Brandon Wymanfef02952017-03-31 18:13:21 -050026SUBDIRS += cooling-type
Brandon Wymanca60e102017-03-29 17:06:02 -050027endif
Matt Spinlere567dd22017-04-27 12:27:17 -050028if WANT_MONITOR
29SUBDIRS += monitor
30endif