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