blob: b5d488f447214e0bb6e7c8cecd73cb94ac47b4d6 [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 \
49 sensors/manager.cpp \
50 pid/ec/pid.cpp \
51 pid/controller.cpp \
52 pid/fancontroller.cpp \
53 pid/thermalcontroller.cpp \
54 pid/zone.cpp \
55 pid/util.cpp \
56 pid/pidthread.cpp \
57 threads/busthread.cpp \
58 experiments/drive.cpp \
59 $(BUILT_SOURCES)
60
Patrick Venture05c02b22018-05-10 08:49:56 -070061#libmanualcmdsdir = ${libdir}/ipmid-providers
62#libmanualcmds_LTLIBRARIES = libmanualcmds.la
63#libmanualcmds_la_SOURCES = \
64# ipmi/manualcmds.cpp
65#libmanualcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
66# $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
67# $(PHOSPHOR_LOGGING_LIBS) \
68# -version-info 0:0:0 -shared
69#libmanualcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
70# $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
71# $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venturee6206562018-03-08 15:36:53 -080072
73SUBDIRS = .