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 | |
James Feist | 7136a5a | 2018-07-19 09:52:05 -0700 | [diff] [blame] | 5 | if !CONFIGURE_DBUS |
| 6 | BUILT_SOURCES = sensorlist-gen.cpp pidlist-gen.cpp zoneinfo-gen.cpp |
| 7 | endif |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 8 | CLEANFILES = $(BUILT_SOURCES) |
| 9 | |
| 10 | sensorlist-gen.cpp: |
| 11 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 12 | |
| 13 | pidlist-gen.cpp: |
| 14 | $(AM_V_GEN)@PIDGEN@ -o $(top_builddir) generate-cpp |
| 15 | |
| 16 | zoneinfo-gen.cpp: |
| 17 | $(AM_V_GEN)@ZONEGEN@ -o $(top_builddir) generate-cpp |
| 18 | |
| 19 | setsensor_SOURCES = setsensor.cpp |
| 20 | setsensor_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS) |
| 21 | setsensor_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) |
| 22 | |
| 23 | swampd_SOURCES = main.cpp util.cpp |
Patrick Venture | 2075863 | 2018-05-10 09:10:22 -0700 | [diff] [blame] | 24 | swampd_LDADD = $(SDBUSPLUS_LIBS) $(PTHREAD_LIBS) libswampd.la |
| 25 | swampd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PTHREAD_CFLAGS) |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 26 | |
| 27 | noinst_LTLIBRARIES = libswampd.la |
| 28 | libswampd_la_LDFLAGS = -static |
| 29 | libswampd_la_LIBADD = \ |
| 30 | -lstdc++fs \ |
| 31 | -lconfig++ \ |
| 32 | $(SDBUSPLUS_LIBS) \ |
| 33 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 34 | $(PHOSPHOR_LOGGING_LIBS) |
| 35 | libswampd_la_CXXFLAGS = \ |
| 36 | $(SDBUSPLUS_CFLAGS) \ |
| 37 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 38 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 39 | |
| 40 | libswampd_la_SOURCES = \ |
| 41 | notimpl/readonly.cpp \ |
| 42 | notimpl/writeonly.cpp \ |
| 43 | dbus/util.cpp \ |
| 44 | dbus/dbuspassive.cpp \ |
| 45 | dbus/dbusactiveread.cpp \ |
James Feist | 7136a5a | 2018-07-19 09:52:05 -0700 | [diff] [blame] | 46 | dbus/dbusconfiguration.cpp \ |
| 47 | dbus/dbuswrite.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 48 | sysfs/sysfsread.cpp \ |
| 49 | sysfs/sysfswrite.cpp \ |
| 50 | sysfs/util.cpp \ |
| 51 | sensors/pluggable.cpp \ |
| 52 | sensors/host.cpp \ |
Patrick Venture | 5e92909 | 2018-06-08 10:55:23 -0700 | [diff] [blame] | 53 | sensors/builder.cpp \ |
| 54 | sensors/builderconfig.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 55 | sensors/manager.cpp \ |
| 56 | pid/ec/pid.cpp \ |
| 57 | pid/controller.cpp \ |
| 58 | pid/fancontroller.cpp \ |
| 59 | pid/thermalcontroller.cpp \ |
Patrick Venture | 5c7cc54 | 2018-06-11 14:29:38 -0700 | [diff] [blame] | 60 | pid/builder.cpp \ |
| 61 | pid/builderconfig.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 62 | pid/zone.cpp \ |
| 63 | pid/util.cpp \ |
| 64 | pid/pidthread.cpp \ |
| 65 | threads/busthread.cpp \ |
| 66 | experiments/drive.cpp \ |
| 67 | $(BUILT_SOURCES) |
| 68 | |
Patrick Venture | ba00343 | 2018-07-27 06:59:05 -0700 | [diff] [blame] | 69 | libmanualcmdsdir = ${libdir}/ipmid-providers |
| 70 | libmanualcmds_LTLIBRARIES = libmanualcmds.la |
| 71 | libmanualcmds_la_SOURCES = \ |
| 72 | ipmi/manualcmds.cpp |
| 73 | libmanualcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \ |
| 74 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 75 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 76 | -version-info 0:0:0 -shared |
| 77 | libmanualcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \ |
| 78 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 79 | $(PHOSPHOR_LOGGING_CFLAGS) |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 80 | |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 81 | SUBDIRS = . test |