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 | d149172 | 2019-02-08 14:37:45 -0800 | [diff] [blame] | 76 | pid/buildjson.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 77 | pid/zone.cpp \ |
| 78 | pid/util.cpp \ |
| 79 | pid/pidthread.cpp \ |
| 80 | threads/busthread.cpp \ |
Patrick Venture | 5426c34 | 2019-02-11 12:03:30 -0800 | [diff] [blame^] | 81 | build/buildjson.cpp \ |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 82 | experiments/drive.cpp \ |
| 83 | $(BUILT_SOURCES) |
| 84 | |
Patrick Venture | 9f04441 | 2018-09-20 19:49:55 -0700 | [diff] [blame] | 85 | if CONFIGURE_DBUS |
| 86 | libswampd_la_SOURCES += dbus/dbusconfiguration.cpp |
| 87 | endif |
| 88 | |
Patrick Venture | ba00343 | 2018-07-27 06:59:05 -0700 | [diff] [blame] | 89 | libmanualcmdsdir = ${libdir}/ipmid-providers |
| 90 | libmanualcmds_LTLIBRARIES = libmanualcmds.la |
| 91 | libmanualcmds_la_SOURCES = \ |
| 92 | ipmi/manualcmds.cpp |
Patrick Venture | ba3c8c1 | 2018-11-09 08:43:00 -0800 | [diff] [blame] | 93 | libmanualcmds_la_LDFLAGS = \ |
| 94 | $(SYSTEMD_LIBS) \ |
| 95 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 96 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 97 | -version-info 0:0:0 -shared |
| 98 | libmanualcmds_la_CXXFLAGS = \ |
| 99 | $(SYSTEMD_CFLAGS) \ |
| 100 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 101 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 102 | -flto |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 103 | |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 104 | SUBDIRS = . test |