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 \ |
| 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 Venture | 05c02b2 | 2018-05-10 08:49:56 -0700 | [diff] [blame] | 61 | #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 Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 72 | |
| 73 | SUBDIRS = . |