blob: c2272817c3e1294b1f8380434f42da1cd935fd31 [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 \
42 -lconfig++ \
43 $(SDBUSPLUS_LIBS) \
44 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
45 $(PHOSPHOR_LOGGING_LIBS)
46libswampd_la_CXXFLAGS = \
47 $(SDBUSPLUS_CFLAGS) \
48 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Patrick Venturef0b7fa32018-11-09 08:40:32 -080049 $(PHOSPHOR_LOGGING_CFLAGS) \
50 -flto
Patrick Venturee6206562018-03-08 15:36:53 -080051
52libswampd_la_SOURCES = \
53 notimpl/readonly.cpp \
54 notimpl/writeonly.cpp \
55 dbus/util.cpp \
56 dbus/dbuspassive.cpp \
57 dbus/dbusactiveread.cpp \
James Feist7136a5a2018-07-19 09:52:05 -070058 dbus/dbuswrite.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080059 sysfs/sysfsread.cpp \
60 sysfs/sysfswrite.cpp \
61 sysfs/util.cpp \
62 sensors/pluggable.cpp \
63 sensors/host.cpp \
Patrick Venture5e929092018-06-08 10:55:23 -070064 sensors/builder.cpp \
65 sensors/builderconfig.cpp \
Patrick Ventureeeeb8672019-02-08 11:47:42 -080066 sensors/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080067 sensors/manager.cpp \
68 pid/ec/pid.cpp \
James Feist22c257a2018-08-31 14:07:12 -070069 pid/ec/stepwise.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080070 pid/fancontroller.cpp \
71 pid/thermalcontroller.cpp \
James Feist22c257a2018-08-31 14:07:12 -070072 pid/pidcontroller.cpp \
73 pid/stepwisecontroller.cpp \
Patrick Venture5c7cc542018-06-11 14:29:38 -070074 pid/builder.cpp \
75 pid/builderconfig.cpp \
Patrick Ventured1491722019-02-08 14:37:45 -080076 pid/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080077 pid/zone.cpp \
78 pid/util.cpp \
79 pid/pidthread.cpp \
80 threads/busthread.cpp \
Patrick Venture5426c342019-02-11 12:03:30 -080081 build/buildjson.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080082 experiments/drive.cpp \
83 $(BUILT_SOURCES)
84
Patrick Venture9f044412018-09-20 19:49:55 -070085if CONFIGURE_DBUS
86libswampd_la_SOURCES += dbus/dbusconfiguration.cpp
87endif
88
Patrick Ventureba003432018-07-27 06:59:05 -070089libmanualcmdsdir = ${libdir}/ipmid-providers
90libmanualcmds_LTLIBRARIES = libmanualcmds.la
91libmanualcmds_la_SOURCES = \
92 ipmi/manualcmds.cpp
Patrick Ventureba3c8c12018-11-09 08:43:00 -080093libmanualcmds_la_LDFLAGS = \
94 $(SYSTEMD_LIBS) \
95 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
96 $(PHOSPHOR_LOGGING_LIBS) \
97 -version-info 0:0:0 -shared
98libmanualcmds_la_CXXFLAGS = \
99 $(SYSTEMD_CFLAGS) \
100 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
101 $(PHOSPHOR_LOGGING_CFLAGS) \
102 -flto
Patrick Venturee6206562018-03-08 15:36:53 -0800103
Patrick Venture7a841b62018-06-13 09:39:46 -0700104SUBDIRS = . test