blob: 3a1b52b78dd91457253ea2e0d4decf2b135ba9cb [file] [log] [blame]
Patrick Venturee6206562018-03-08 15:36:53 -08001AM_DEFAULT_SOURCE_EXT = .cpp
2
3sbin_PROGRAMS = swampd setsensor
4
Patrick Venturee6206562018-03-08 15:36:53 -08005setsensor_SOURCES = setsensor.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -08006setsensor_LDADD = \
7 $(SDBUSPLUS_LIBS) \
8 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
9 $(PHOSPHOR_LOGGING_LIBS)
10setsensor_CXXFLAGS = \
11 $(SDBUSPLUS_CFLAGS) \
12 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
13 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080014
15swampd_SOURCES = main.cpp util.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -080016swampd_LDADD = \
17 $(SDBUSPLUS_LIBS) \
18 $(PTHREAD_LIBS) \
19 libswampd.la
20swampd_CXXFLAGS = \
21 $(SDBUSPLUS_CFLAGS) \
22 $(PTHREAD_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080023
24noinst_LTLIBRARIES = libswampd.la
25libswampd_la_LDFLAGS = -static
26libswampd_la_LIBADD = \
27 -lstdc++fs \
Patrick Venturee6206562018-03-08 15:36:53 -080028 $(SDBUSPLUS_LIBS) \
29 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
30 $(PHOSPHOR_LOGGING_LIBS)
31libswampd_la_CXXFLAGS = \
32 $(SDBUSPLUS_CFLAGS) \
33 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Patrick Venturef0b7fa32018-11-09 08:40:32 -080034 $(PHOSPHOR_LOGGING_CFLAGS) \
35 -flto
Patrick Venturee6206562018-03-08 15:36:53 -080036
37libswampd_la_SOURCES = \
38 notimpl/readonly.cpp \
39 notimpl/writeonly.cpp \
40 dbus/util.cpp \
41 dbus/dbuspassive.cpp \
42 dbus/dbusactiveread.cpp \
James Feist7136a5a2018-07-19 09:52:05 -070043 dbus/dbuswrite.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080044 sysfs/sysfsread.cpp \
45 sysfs/sysfswrite.cpp \
46 sysfs/util.cpp \
47 sensors/pluggable.cpp \
48 sensors/host.cpp \
Patrick Venture5e929092018-06-08 10:55:23 -070049 sensors/builder.cpp \
Patrick Ventureeeeb8672019-02-08 11:47:42 -080050 sensors/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080051 sensors/manager.cpp \
52 pid/ec/pid.cpp \
James Feist22c257a2018-08-31 14:07:12 -070053 pid/ec/stepwise.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080054 pid/fancontroller.cpp \
55 pid/thermalcontroller.cpp \
James Feist22c257a2018-08-31 14:07:12 -070056 pid/pidcontroller.cpp \
57 pid/stepwisecontroller.cpp \
Patrick Venture5c7cc542018-06-11 14:29:38 -070058 pid/builder.cpp \
Patrick Ventured1491722019-02-08 14:37:45 -080059 pid/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080060 pid/zone.cpp \
61 pid/util.cpp \
62 pid/pidthread.cpp \
Patrick Venturec32e3fc2019-02-28 10:01:11 -080063 pid/tuning.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080064 threads/busthread.cpp \
Patrick Venture5426c342019-02-11 12:03:30 -080065 build/buildjson.cpp \
Patrick Venture18b13112019-02-14 11:43:59 -080066 experiments/drive.cpp
Patrick Venturee6206562018-03-08 15:36:53 -080067
Patrick Venture9f044412018-09-20 19:49:55 -070068if CONFIGURE_DBUS
69libswampd_la_SOURCES += dbus/dbusconfiguration.cpp
70endif
71
Patrick Ventureba003432018-07-27 06:59:05 -070072libmanualcmdsdir = ${libdir}/ipmid-providers
73libmanualcmds_LTLIBRARIES = libmanualcmds.la
74libmanualcmds_la_SOURCES = \
75 ipmi/manualcmds.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -080076libmanualcmds_la_LDFLAGS = \
77 $(SYSTEMD_LIBS) \
78 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
79 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III331143c2019-02-07 15:52:44 -080080 $(LIBIPMID_LIBS) \
Patrick Ventureba3c8c12018-11-09 08:43:00 -080081 -version-info 0:0:0 -shared
82libmanualcmds_la_CXXFLAGS = \
83 $(SYSTEMD_CFLAGS) \
84 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
85 $(PHOSPHOR_LOGGING_CFLAGS) \
William A. Kennington III331143c2019-02-07 15:52:44 -080086 $(LIBIPMID_CFLAGS) \
Patrick Ventureba3c8c12018-11-09 08:43:00 -080087 -flto
Patrick Venturee6206562018-03-08 15:36:53 -080088
Patrick Venture7a841b62018-06-13 09:39:46 -070089SUBDIRS = . test