blob: 264ae1ce083ef2a0c5320e11c98e176105d86e67 [file] [log] [blame]
Patrick Venturee6206562018-03-08 15:36:53 -08001AM_DEFAULT_SOURCE_EXT = .cpp
2
3sbin_PROGRAMS = swampd setsensor
4
James Feist7136a5a2018-07-19 09:52:05 -07005if !CONFIGURE_DBUS
Patrick Venture02c9e042018-09-20 18:29:27 -07006BUILT_SOURCES = sensorlist-gen.cpp pidlist-gen.cpp zoneinfo-gen.cpp
James Feist7136a5a2018-07-19 09:52:05 -07007endif
Patrick Venturee6206562018-03-08 15:36:53 -08008CLEANFILES = $(BUILT_SOURCES)
9
10sensorlist-gen.cpp:
11 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
12
13pidlist-gen.cpp:
14 $(AM_V_GEN)@PIDGEN@ -o $(top_builddir) generate-cpp
15
16zoneinfo-gen.cpp:
17 $(AM_V_GEN)@ZONEGEN@ -o $(top_builddir) generate-cpp
18
19setsensor_SOURCES = setsensor.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -080020setsensor_LDADD = \
21 $(SDBUSPLUS_LIBS) \
22 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
23 $(PHOSPHOR_LOGGING_LIBS)
24setsensor_CXXFLAGS = \
25 $(SDBUSPLUS_CFLAGS) \
26 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
27 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080028
29swampd_SOURCES = main.cpp util.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -080030swampd_LDADD = \
31 $(SDBUSPLUS_LIBS) \
32 $(PTHREAD_LIBS) \
33 libswampd.la
34swampd_CXXFLAGS = \
35 $(SDBUSPLUS_CFLAGS) \
36 $(PTHREAD_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080037
38noinst_LTLIBRARIES = libswampd.la
39libswampd_la_LDFLAGS = -static
40libswampd_la_LIBADD = \
41 -lstdc++fs \
Patrick Venturee6206562018-03-08 15:36:53 -080042 $(SDBUSPLUS_LIBS) \
43 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
44 $(PHOSPHOR_LOGGING_LIBS)
45libswampd_la_CXXFLAGS = \
46 $(SDBUSPLUS_CFLAGS) \
47 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Patrick Venturef0b7fa32018-11-09 08:40:32 -080048 $(PHOSPHOR_LOGGING_CFLAGS) \
49 -flto
Patrick Venturee6206562018-03-08 15:36:53 -080050
51libswampd_la_SOURCES = \
52 notimpl/readonly.cpp \
53 notimpl/writeonly.cpp \
54 dbus/util.cpp \
55 dbus/dbuspassive.cpp \
56 dbus/dbusactiveread.cpp \
James Feist7136a5a2018-07-19 09:52:05 -070057 dbus/dbuswrite.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080058 sysfs/sysfsread.cpp \
59 sysfs/sysfswrite.cpp \
60 sysfs/util.cpp \
61 sensors/pluggable.cpp \
62 sensors/host.cpp \
Patrick Venture5e929092018-06-08 10:55:23 -070063 sensors/builder.cpp \
Patrick Ventureeeeb8672019-02-08 11:47:42 -080064 sensors/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080065 sensors/manager.cpp \
66 pid/ec/pid.cpp \
James Feist22c257a2018-08-31 14:07:12 -070067 pid/ec/stepwise.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080068 pid/fancontroller.cpp \
69 pid/thermalcontroller.cpp \
James Feist22c257a2018-08-31 14:07:12 -070070 pid/pidcontroller.cpp \
71 pid/stepwisecontroller.cpp \
Patrick Venture5c7cc542018-06-11 14:29:38 -070072 pid/builder.cpp \
Patrick Ventured1491722019-02-08 14:37:45 -080073 pid/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080074 pid/zone.cpp \
75 pid/util.cpp \
76 pid/pidthread.cpp \
77 threads/busthread.cpp \
Patrick Venture5426c342019-02-11 12:03:30 -080078 build/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080079 experiments/drive.cpp \
80 $(BUILT_SOURCES)
81
Patrick Venture9f044412018-09-20 19:49:55 -070082if CONFIGURE_DBUS
83libswampd_la_SOURCES += dbus/dbusconfiguration.cpp
84endif
85
Patrick Ventureba003432018-07-27 06:59:05 -070086libmanualcmdsdir = ${libdir}/ipmid-providers
87libmanualcmds_LTLIBRARIES = libmanualcmds.la
88libmanualcmds_la_SOURCES = \
89 ipmi/manualcmds.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -080090libmanualcmds_la_LDFLAGS = \
91 $(SYSTEMD_LIBS) \
92 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
93 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III331143c2019-02-07 15:52:44 -080094 $(LIBIPMID_LIBS) \
Patrick Ventureba3c8c12018-11-09 08:43:00 -080095 -version-info 0:0:0 -shared
96libmanualcmds_la_CXXFLAGS = \
97 $(SYSTEMD_CFLAGS) \
98 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
99 $(PHOSPHOR_LOGGING_CFLAGS) \
William A. Kennington III331143c2019-02-07 15:52:44 -0800100 $(LIBIPMID_CFLAGS) \
Patrick Ventureba3c8c12018-11-09 08:43:00 -0800101 -flto
Patrick Venturee6206562018-03-08 15:36:53 -0800102
Patrick Venture7a841b62018-06-13 09:39:46 -0700103SUBDIRS = . test