blob: 8740fb439eb8da17482ef3433fa3a5f3e677958f [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 \
56 pid/zone.cpp \
57 pid/util.cpp \
58 pid/pidthread.cpp \
59 threads/busthread.cpp \
60 experiments/drive.cpp \
61 $(BUILT_SOURCES)
62
Patrick Venture05c02b22018-05-10 08:49:56 -070063#libmanualcmdsdir = ${libdir}/ipmid-providers
64#libmanualcmds_LTLIBRARIES = libmanualcmds.la
65#libmanualcmds_la_SOURCES = \
66# ipmi/manualcmds.cpp
67#libmanualcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
68# $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
69# $(PHOSPHOR_LOGGING_LIBS) \
70# -version-info 0:0:0 -shared
71#libmanualcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
72# $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
73# $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080074
Patrick Venture7a841b62018-06-13 09:39:46 -070075SUBDIRS = . test