blob: 10cefda879a93fac14147d6b20f4e2e1f69d33c9 [file] [log] [blame]
Patrick Venturee6206562018-03-08 15:36:53 -08001AM_DEFAULT_SOURCE_EXT = .cpp
2
3sbin_PROGRAMS = swampd setsensor
4
5BUILT_SOURCES = sensorlist-gen.cpp pidlist-gen.cpp zoneinfo-gen.cpp
6CLEANFILES = $(BUILT_SOURCES)
7
8sensorlist-gen.cpp:
9 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
10
11pidlist-gen.cpp:
12 $(AM_V_GEN)@PIDGEN@ -o $(top_builddir) generate-cpp
13
14zoneinfo-gen.cpp:
15 $(AM_V_GEN)@ZONEGEN@ -o $(top_builddir) generate-cpp
16
17setsensor_SOURCES = setsensor.cpp
18setsensor_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS)
19setsensor_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
20
21swampd_SOURCES = main.cpp util.cpp
Patrick Venture20758632018-05-10 09:10:22 -070022swampd_LDADD = $(SDBUSPLUS_LIBS) $(PTHREAD_LIBS) libswampd.la
23swampd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PTHREAD_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080024
25noinst_LTLIBRARIES = libswampd.la
26libswampd_la_LDFLAGS = -static
27libswampd_la_LIBADD = \
28 -lstdc++fs \
29 -lconfig++ \
30 $(SDBUSPLUS_LIBS) \
31 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
32 $(PHOSPHOR_LOGGING_LIBS)
33libswampd_la_CXXFLAGS = \
34 $(SDBUSPLUS_CFLAGS) \
35 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
36 $(PHOSPHOR_LOGGING_CFLAGS)
37
38libswampd_la_SOURCES = \
39 notimpl/readonly.cpp \
40 notimpl/writeonly.cpp \
41 dbus/util.cpp \
42 dbus/dbuspassive.cpp \
43 dbus/dbusactiveread.cpp \
44 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 \
50 sensors/builderconfig.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080051 sensors/manager.cpp \
52 pid/ec/pid.cpp \
53 pid/controller.cpp \
54 pid/fancontroller.cpp \
55 pid/thermalcontroller.cpp \
Patrick Venture5c7cc542018-06-11 14:29:38 -070056 pid/builder.cpp \
57 pid/builderconfig.cpp \
Patrick Venturee6206562018-03-08 15:36:53 -080058 pid/zone.cpp \
59 pid/util.cpp \
60 pid/pidthread.cpp \
61 threads/busthread.cpp \
62 experiments/drive.cpp \
63 $(BUILT_SOURCES)
64
Patrick Venture05c02b22018-05-10 08:49:56 -070065#libmanualcmdsdir = ${libdir}/ipmid-providers
66#libmanualcmds_LTLIBRARIES = libmanualcmds.la
67#libmanualcmds_la_SOURCES = \
68# ipmi/manualcmds.cpp
69#libmanualcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
70# $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
71# $(PHOSPHOR_LOGGING_LIBS) \
72# -version-info 0:0:0 -shared
73#libmanualcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
74# $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
75# $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080076
Patrick Venture7a841b62018-06-13 09:39:46 -070077SUBDIRS = . test