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 |
Patrick Venture | 02c9e04 | 2018-09-20 18:29:27 -0700 | [diff] [blame] | 6 | BUILT_SOURCES = sensorlist-gen.cpp pidlist-gen.cpp zoneinfo-gen.cpp |
James Feist | 7136a5a | 2018-07-19 09:52:05 -0700 | [diff] [blame] | 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 |
Patrick Venture | ba3c8c1 | 2018-11-09 08:43:00 -0800 | [diff] [blame] | 20 | setsensor_LDADD = \ |
| 21 | $(SDBUSPLUS_LIBS) \ |
| 22 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 23 | $(PHOSPHOR_LOGGING_LIBS) |
| 24 | setsensor_CXXFLAGS = \ |
| 25 | $(SDBUSPLUS_CFLAGS) \ |
| 26 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 27 | $(PHOSPHOR_LOGGING_CFLAGS) |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 28 | |
| 29 | swampd_SOURCES = main.cpp util.cpp |
Patrick Venture | ba3c8c1 | 2018-11-09 08:43:00 -0800 | [diff] [blame] | 30 | swampd_LDADD = \ |
| 31 | $(SDBUSPLUS_LIBS) \ |
| 32 | $(PTHREAD_LIBS) \ |
| 33 | libswampd.la |
| 34 | swampd_CXXFLAGS = \ |
| 35 | $(SDBUSPLUS_CFLAGS) \ |
| 36 | $(PTHREAD_CFLAGS) |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 37 | |
| 38 | noinst_LTLIBRARIES = libswampd.la |
| 39 | libswampd_la_LDFLAGS = -static |
| 40 | libswampd_la_LIBADD = \ |
| 41 | -lstdc++fs \ |
| 42 | -lconfig++ \ |
| 43 | $(SDBUSPLUS_LIBS) \ |
| 44 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 45 | $(PHOSPHOR_LOGGING_LIBS) |
| 46 | libswampd_la_CXXFLAGS = \ |
| 47 | $(SDBUSPLUS_CFLAGS) \ |
| 48 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Patrick Venture | f0b7fa3 | 2018-11-09 08:40:32 -0800 | [diff] [blame] | 49 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 50 | -flto |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 51 | |
| 52 | libswampd_la_SOURCES = \ |
| 53 | notimpl/readonly.cpp \ |
| 54 | notimpl/writeonly.cpp \ |
| 55 | dbus/util.cpp \ |
| 56 | dbus/dbuspassive.cpp \ |
| 57 | dbus/dbusactiveread.cpp \ |
James Feist | 7136a5a | 2018-07-19 09:52:05 -0700 | [diff] [blame] | 58 | dbus/dbuswrite.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 59 | sysfs/sysfsread.cpp \ |
| 60 | sysfs/sysfswrite.cpp \ |
| 61 | sysfs/util.cpp \ |
| 62 | sensors/pluggable.cpp \ |
| 63 | sensors/host.cpp \ |
Patrick Venture | 5e92909 | 2018-06-08 10:55:23 -0700 | [diff] [blame] | 64 | sensors/builder.cpp \ |
| 65 | sensors/builderconfig.cpp \ |
Patrick Venture | eeeb867 | 2019-02-08 11:47:42 -0800 | [diff] [blame^] | 66 | sensors/buildjson.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 67 | sensors/manager.cpp \ |
| 68 | pid/ec/pid.cpp \ |
James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 69 | pid/ec/stepwise.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 70 | pid/fancontroller.cpp \ |
| 71 | pid/thermalcontroller.cpp \ |
James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 72 | pid/pidcontroller.cpp \ |
| 73 | pid/stepwisecontroller.cpp \ |
Patrick Venture | 5c7cc54 | 2018-06-11 14:29:38 -0700 | [diff] [blame] | 74 | pid/builder.cpp \ |
| 75 | pid/builderconfig.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 76 | pid/zone.cpp \ |
| 77 | pid/util.cpp \ |
| 78 | pid/pidthread.cpp \ |
| 79 | threads/busthread.cpp \ |
| 80 | experiments/drive.cpp \ |
| 81 | $(BUILT_SOURCES) |
| 82 | |
Patrick Venture | 9f04441 | 2018-09-20 19:49:55 -0700 | [diff] [blame] | 83 | if CONFIGURE_DBUS |
| 84 | libswampd_la_SOURCES += dbus/dbusconfiguration.cpp |
| 85 | endif |
| 86 | |
Patrick Venture | ba00343 | 2018-07-27 06:59:05 -0700 | [diff] [blame] | 87 | libmanualcmdsdir = ${libdir}/ipmid-providers |
| 88 | libmanualcmds_LTLIBRARIES = libmanualcmds.la |
| 89 | libmanualcmds_la_SOURCES = \ |
| 90 | ipmi/manualcmds.cpp |
Patrick Venture | ba3c8c1 | 2018-11-09 08:43:00 -0800 | [diff] [blame] | 91 | libmanualcmds_la_LDFLAGS = \ |
| 92 | $(SYSTEMD_LIBS) \ |
| 93 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 94 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 95 | -version-info 0:0:0 -shared |
| 96 | libmanualcmds_la_CXXFLAGS = \ |
| 97 | $(SYSTEMD_CFLAGS) \ |
| 98 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 99 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 100 | -flto |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 101 | |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 102 | SUBDIRS = . test |