Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
| 3 | sbin_PROGRAMS = swampd setsensor |
| 4 | |
| 5 | BUILT_SOURCES = sensorlist-gen.cpp pidlist-gen.cpp zoneinfo-gen.cpp |
| 6 | CLEANFILES = $(BUILT_SOURCES) |
| 7 | |
| 8 | sensorlist-gen.cpp: |
| 9 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 10 | |
| 11 | pidlist-gen.cpp: |
| 12 | $(AM_V_GEN)@PIDGEN@ -o $(top_builddir) generate-cpp |
| 13 | |
| 14 | zoneinfo-gen.cpp: |
| 15 | $(AM_V_GEN)@ZONEGEN@ -o $(top_builddir) generate-cpp |
| 16 | |
| 17 | setsensor_SOURCES = setsensor.cpp |
| 18 | setsensor_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS) |
| 19 | setsensor_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) |
| 20 | |
| 21 | swampd_SOURCES = main.cpp util.cpp |
Patrick Venture | 2075863 | 2018-05-10 09:10:22 -0700 | [diff] [blame] | 22 | swampd_LDADD = $(SDBUSPLUS_LIBS) $(PTHREAD_LIBS) libswampd.la |
| 23 | swampd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PTHREAD_CFLAGS) |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 24 | |
| 25 | noinst_LTLIBRARIES = libswampd.la |
| 26 | libswampd_la_LDFLAGS = -static |
| 27 | libswampd_la_LIBADD = \ |
| 28 | -lstdc++fs \ |
| 29 | -lconfig++ \ |
| 30 | $(SDBUSPLUS_LIBS) \ |
| 31 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 32 | $(PHOSPHOR_LOGGING_LIBS) |
| 33 | libswampd_la_CXXFLAGS = \ |
| 34 | $(SDBUSPLUS_CFLAGS) \ |
| 35 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 36 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 37 | |
| 38 | libswampd_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 Venture | 5e92909 | 2018-06-08 10:55:23 -0700 | [diff] [blame^] | 49 | sensors/builder.cpp \ |
| 50 | sensors/builderconfig.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 51 | 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 Venture | 05c02b2 | 2018-05-10 08:49:56 -0700 | [diff] [blame] | 63 | #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 Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 74 | |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 75 | SUBDIRS = . test |