blob: 36eeb8061193f37cabb195f4f10ee8d5ee293680 [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
6 BUILT_SOURCES = sensorlist-gen.cpp pidlist-gen.cpp zoneinfo-gen.cpp
7endif
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
20setsensor_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS)
21setsensor_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
22
23swampd_SOURCES = main.cpp util.cpp
Patrick Venture20758632018-05-10 09:10:22 -070024swampd_LDADD = $(SDBUSPLUS_LIBS) $(PTHREAD_LIBS) libswampd.la
25swampd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PTHREAD_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080026
27noinst_LTLIBRARIES = libswampd.la
28libswampd_la_LDFLAGS = -static
29libswampd_la_LIBADD = \
30 -lstdc++fs \
31 -lconfig++ \
32 $(SDBUSPLUS_LIBS) \
33 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
34 $(PHOSPHOR_LOGGING_LIBS)
35libswampd_la_CXXFLAGS = \
36 $(SDBUSPLUS_CFLAGS) \
37 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
38 $(PHOSPHOR_LOGGING_CFLAGS)
39
40libswampd_la_SOURCES = \
41 notimpl/readonly.cpp \
42 notimpl/writeonly.cpp \
43 dbus/util.cpp \
44 dbus/dbuspassive.cpp \
45 dbus/dbusactiveread.cpp \
James Feist7136a5a2018-07-19 09:52:05 -070046 dbus/dbusconfiguration.cpp \
47 dbus/dbuswrite.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080048 sysfs/sysfsread.cpp \
49 sysfs/sysfswrite.cpp \
50 sysfs/util.cpp \
51 sensors/pluggable.cpp \
52 sensors/host.cpp \
Patrick Venture5e929092018-06-08 10:55:23 -070053 sensors/builder.cpp \
54 sensors/builderconfig.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080055 sensors/manager.cpp \
56 pid/ec/pid.cpp \
57 pid/controller.cpp \
58 pid/fancontroller.cpp \
59 pid/thermalcontroller.cpp \
Patrick Venture5c7cc542018-06-11 14:29:38 -070060 pid/builder.cpp \
61 pid/builderconfig.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080062 pid/zone.cpp \
63 pid/util.cpp \
64 pid/pidthread.cpp \
65 threads/busthread.cpp \
66 experiments/drive.cpp \
67 $(BUILT_SOURCES)
68
Patrick Venture05c02b22018-05-10 08:49:56 -070069#libmanualcmdsdir = ${libdir}/ipmid-providers
70#libmanualcmds_LTLIBRARIES = libmanualcmds.la
71#libmanualcmds_la_SOURCES = \
72# ipmi/manualcmds.cpp
73#libmanualcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
74# $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
75# $(PHOSPHOR_LOGGING_LIBS) \
76# -version-info 0:0:0 -shared
77#libmanualcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
78# $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
79# $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080080
Patrick Venture7a841b62018-06-13 09:39:46 -070081SUBDIRS = . test