| 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 | 
|  | 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) \ | 
| Patrick Venture | f0b7fa3 | 2018-11-09 08:40:32 -0800 | [diff] [blame^] | 38 | $(PHOSPHOR_LOGGING_CFLAGS) \ | 
|  | 39 | -flto | 
| Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 40 |  | 
|  | 41 | libswampd_la_SOURCES = \ | 
|  | 42 | notimpl/readonly.cpp \ | 
|  | 43 | notimpl/writeonly.cpp \ | 
|  | 44 | dbus/util.cpp \ | 
|  | 45 | dbus/dbuspassive.cpp \ | 
|  | 46 | dbus/dbusactiveread.cpp \ | 
| James Feist | 7136a5a | 2018-07-19 09:52:05 -0700 | [diff] [blame] | 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 \ | 
| James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 57 | pid/ec/stepwise.cpp \ | 
| Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 58 | pid/fancontroller.cpp \ | 
|  | 59 | pid/thermalcontroller.cpp \ | 
| James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 60 | pid/pidcontroller.cpp \ | 
|  | 61 | pid/stepwisecontroller.cpp \ | 
| Patrick Venture | 5c7cc54 | 2018-06-11 14:29:38 -0700 | [diff] [blame] | 62 | pid/builder.cpp \ | 
|  | 63 | pid/builderconfig.cpp \ | 
| Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 64 | pid/zone.cpp \ | 
|  | 65 | pid/util.cpp \ | 
|  | 66 | pid/pidthread.cpp \ | 
|  | 67 | threads/busthread.cpp \ | 
|  | 68 | experiments/drive.cpp \ | 
|  | 69 | $(BUILT_SOURCES) | 
|  | 70 |  | 
| Patrick Venture | 9f04441 | 2018-09-20 19:49:55 -0700 | [diff] [blame] | 71 | if CONFIGURE_DBUS | 
|  | 72 | libswampd_la_SOURCES += dbus/dbusconfiguration.cpp | 
|  | 73 | endif | 
|  | 74 |  | 
| Patrick Venture | ba00343 | 2018-07-27 06:59:05 -0700 | [diff] [blame] | 75 | libmanualcmdsdir = ${libdir}/ipmid-providers | 
|  | 76 | libmanualcmds_LTLIBRARIES = libmanualcmds.la | 
|  | 77 | libmanualcmds_la_SOURCES = \ | 
|  | 78 | ipmi/manualcmds.cpp | 
|  | 79 | libmanualcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \ | 
|  | 80 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ | 
|  | 81 | $(PHOSPHOR_LOGGING_LIBS) \ | 
|  | 82 | -version-info 0:0:0 -shared | 
|  | 83 | libmanualcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \ | 
|  | 84 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ | 
| Patrick Venture | f0b7fa3 | 2018-11-09 08:40:32 -0800 | [diff] [blame^] | 85 | $(PHOSPHOR_LOGGING_CFLAGS) \ | 
|  | 86 | -flto | 
| Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 87 |  | 
| Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 88 | SUBDIRS = . test |