Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 3 | AM_CPPFLAGS = -I$(abs_srcdir) -I$(abs_srcdir)/include |
| 4 | export AM_CPPFLAGS |
| 5 | |
William A. Kennington III | 5023aa9 | 2019-04-04 18:00:09 -0700 | [diff] [blame] | 6 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 7 | include $(top_srcdir)/aminclude_static.am |
| 8 | clean-local: code-coverage-clean |
| 9 | distclean-local: code-coverage-dist-clean |
| 10 | else |
| 11 | @CODE_COVERAGE_RULES@ |
| 12 | endif |
| 13 | |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 14 | providersdir = ${libdir}/ipmid-providers |
| 15 | providers_LTLIBRARIES = |
| 16 | |
Vernon Mauery | e9f8857 | 2020-01-30 16:11:34 -0800 | [diff] [blame] | 17 | if FEATURE_IPMI_WHITELIST |
| 18 | IPMI_WHITELIST_SOURCE = ipmiwhitelist.cpp |
| 19 | else |
| 20 | IPMI_WHITELIST_SOURCE = |
| 21 | endif |
| 22 | |
Patrick Venture | 1c8ee49 | 2019-03-28 11:43:45 -0700 | [diff] [blame] | 23 | bin_PROGRAMS = \ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 24 | ipmid |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 25 | |
| 26 | ipmid_SOURCES = \ |
Vernon Mauery | 240b186 | 2018-10-08 12:05:16 -0700 | [diff] [blame] | 27 | ipmid-new.cpp \ |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 28 | settings.cpp \ |
Vernon Mauery | 6a98fe7 | 2019-03-11 15:57:48 -0700 | [diff] [blame] | 29 | host-cmd-manager.cpp |
Vernon Mauery | 240b186 | 2018-10-08 12:05:16 -0700 | [diff] [blame] | 30 | |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 31 | libipmi20_BUILT_LIST = \ |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 32 | sensor-gen.cpp \ |
Tom Joseph | e19540e | 2019-02-04 14:06:58 +0530 | [diff] [blame] | 33 | inventory-sensor-gen.cpp \ |
Patrick Venture | 1ad9da8 | 2019-08-19 12:25:54 -0700 | [diff] [blame] | 34 | fru-read-gen.cpp |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 35 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 36 | BUILT_SOURCES = \ |
Vernon Mauery | e9f8857 | 2020-01-30 16:11:34 -0800 | [diff] [blame] | 37 | $(IPMI_WHITELIST_SOURCE) \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 38 | $(libipmi20_BUILT_LIST) |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 39 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 40 | CLEANFILES = $(BUILT_SOURCES) |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 41 | |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 42 | COMMON_CXX = \ |
| 43 | -flto \ |
| 44 | -Wno-psabi \ |
| 45 | $(SYSTEMD_CFLAGS) \ |
| 46 | $(libmapper_CFLAGS) \ |
| 47 | $(SDBUSPLUS_CFLAGS) \ |
| 48 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 49 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 50 | -DBOOST_ERROR_CODE_HEADER_ONLY \ |
| 51 | -DBOOST_SYSTEM_NO_DEPRECATED \ |
Vernon Mauery | e7329c7 | 2018-10-08 12:05:16 -0700 | [diff] [blame] | 52 | -DBOOST_COROUTINES_NO_DEPRECATION_WARNING \ |
| 53 | -DBOOST_ASIO_DISABLE_THREADS \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 54 | -DBOOST_ALL_NO_LIB |
| 55 | |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 56 | ipmid_CXXFLAGS = $(COMMON_CXX) |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 57 | ipmid_LDADD = \ |
| 58 | libipmid/libipmid.la \ |
Vernon Mauery | 240b186 | 2018-10-08 12:05:16 -0700 | [diff] [blame] | 59 | user_channel/libchannellayer.la \ |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 60 | libipmid-host/libipmid-host.la |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 61 | ipmid_LDFLAGS = \ |
| 62 | $(SYSTEMD_LIBS) \ |
| 63 | $(libmapper_LIBS) \ |
| 64 | $(LIBADD_DLOPEN) \ |
| 65 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 66 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Richard Marian Thomaiyar | 4654d99 | 2018-04-19 05:38:37 +0530 | [diff] [blame] | 67 | $(CRYPTO_LIBS) \ |
Vernon Mauery | 240b186 | 2018-10-08 12:05:16 -0700 | [diff] [blame] | 68 | -lboost_coroutine \ |
Vernon Mauery | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 69 | -lstdc++fs \ |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 70 | -export-dynamic |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 71 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 72 | # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a |
| 73 | # selective list of symbols. |
| 74 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 75 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 76 | $(SHELL) $^ > $@ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 77 | |
Vernon Mauery | 5f7ac71 | 2019-04-30 11:19:08 -0700 | [diff] [blame] | 78 | sensor-gen.cpp: scripts/writesensor.mako.cpp scripts/sensor_gen.py @SENSOR_YAML_GEN@ |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 79 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 80 | |
Vernon Mauery | 5f7ac71 | 2019-04-30 11:19:08 -0700 | [diff] [blame] | 81 | inventory-sensor-gen.cpp: scripts/inventorysensor.mako.cpp scripts/inventory-sensor.py @INVSENSOR_YAML_GEN@ |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 82 | $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp |
| 83 | |
Vernon Mauery | 5f7ac71 | 2019-04-30 11:19:08 -0700 | [diff] [blame] | 84 | fru-read-gen.cpp: scripts/readfru.mako.cpp scripts/fru_gen.py @FRU_YAML_GEN@ |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 85 | $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp |
| 86 | |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 87 | providers_LTLIBRARIES += libipmi20.la |
Johnathan Mantey | b87034e | 2019-09-16 10:50:50 -0700 | [diff] [blame] | 88 | if FEATURE_TRANSPORT_OEM |
| 89 | libipmi20_la_TRANSPORTOEM = transporthandler_oem.cpp |
| 90 | else |
| 91 | libipmi20_la_TRANSPORTOEM = |
| 92 | endif |
| 93 | |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 94 | libipmi20_la_SOURCES = \ |
Patrick Venture | 5794fcf | 2017-10-26 11:11:14 -0700 | [diff] [blame] | 95 | app/channel.cpp \ |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 96 | app/watchdog.cpp \ |
William A. Kennington III | 5257525 | 2018-02-09 15:54:56 -0800 | [diff] [blame] | 97 | app/watchdog_service.cpp \ |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 98 | apphandler.cpp \ |
Xo Wang | 069db2f | 2017-08-09 15:31:33 -0700 | [diff] [blame] | 99 | sys_info_param.cpp \ |
Willy Tu | 3660b19 | 2021-08-10 02:36:19 +0000 | [diff] [blame] | 100 | sensorhandler.cpp \ |
Patrick Venture | 02e3237 | 2019-08-16 10:50:18 -0700 | [diff] [blame] | 101 | entity_map_json.cpp \ |
Willy Tu | 3660b19 | 2021-08-10 02:36:19 +0000 | [diff] [blame] | 102 | storagehandler.cpp \ |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 103 | chassishandler.cpp \ |
| 104 | dcmihandler.cpp \ |
| 105 | ipmisensor.cpp \ |
| 106 | storageaddsel.cpp \ |
| 107 | transporthandler.cpp \ |
| 108 | globalhandler.cpp \ |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 109 | groupext.cpp \ |
Marri Devender Rao | 7d9157e | 2017-07-01 16:11:40 -0500 | [diff] [blame] | 110 | selutility.cpp \ |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 111 | ipmi_fru_info_area.cpp \ |
Dhruvaraj Subhashchandran | e0af720 | 2017-07-12 06:35:20 -0500 | [diff] [blame] | 112 | read_fru_data.cpp \ |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 113 | sensordatahandler.cpp \ |
Vernon Mauery | 1bb0c7f | 2018-12-21 10:59:19 -0800 | [diff] [blame] | 114 | user_channel/channelcommands.cpp \ |
Johnathan Mantey | b87034e | 2019-09-16 10:50:50 -0700 | [diff] [blame] | 115 | $(libipmi20_la_TRANSPORTOEM) \ |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 116 | $(libipmi20_BUILT_LIST) |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 117 | |
Emily Shaffer | c07e72c | 2018-06-18 10:37:31 -0700 | [diff] [blame] | 118 | check_PROGRAMS = |
| 119 | XFAIL_TESTS = |
| 120 | |
| 121 | TESTS = $(check_PROGRAMS) |
| 122 | |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 123 | libipmi20_la_LIBADD = \ |
| 124 | libipmid/libipmid.la \ |
Vernon Mauery | 1bb0c7f | 2018-12-21 10:59:19 -0800 | [diff] [blame] | 125 | user_channel/libchannellayer.la |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 126 | libipmi20_la_LDFLAGS = \ |
| 127 | $(SYSTEMD_LIBS) \ |
| 128 | $(libmapper_LIBS) \ |
| 129 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 130 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 131 | -lstdc++fs \ |
Vernon Mauery | 240b186 | 2018-10-08 12:05:16 -0700 | [diff] [blame] | 132 | -lboost_coroutine \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 133 | -version-info 0:0:0 -shared |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 134 | libipmi20_la_CXXFLAGS = $(COMMON_CXX) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 135 | |
ofery | 61d8dcc | 2019-06-10 16:02:37 -0700 | [diff] [blame] | 136 | if FEATURE_LIBUSERLAYER |
William A. Kennington III | 343d061 | 2018-12-10 15:56:24 -0800 | [diff] [blame] | 137 | providers_LTLIBRARIES += libusercmds.la |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 138 | libusercmds_la_LIBADD = \ |
| 139 | libipmid/libipmid.la \ |
Richard Marian Thomaiyar | a4e09e4 | 2019-03-02 20:08:32 +0530 | [diff] [blame] | 140 | user_channel/libuserlayer.la \ |
| 141 | user_channel/libchannellayer.la |
William A. Kennington III | 343d061 | 2018-12-10 15:56:24 -0800 | [diff] [blame] | 142 | libusercmds_la_SOURCES = \ |
Vernon Mauery | 1bb0c7f | 2018-12-21 10:59:19 -0800 | [diff] [blame] | 143 | user_channel/usercommands.cpp |
William A. Kennington III | 343d061 | 2018-12-10 15:56:24 -0800 | [diff] [blame] | 144 | libusercmds_la_LDFLAGS = \ |
| 145 | $(PHOSPHOR_LOGGING_LIBS) \ |
Suryakanth Sekar | 90b00c7 | 2019-01-16 10:37:57 +0530 | [diff] [blame] | 146 | $(libmapper_LIBS) \ |
William A. Kennington III | 343d061 | 2018-12-10 15:56:24 -0800 | [diff] [blame] | 147 | -version-info 0:0:0 -shared |
Vernon Mauery | 1bb0c7f | 2018-12-21 10:59:19 -0800 | [diff] [blame] | 148 | libusercmds_la_CXXFLAGS = $(COMMON_CXX) |
ofery | 61d8dcc | 2019-06-10 16:02:37 -0700 | [diff] [blame] | 149 | endif |
William A. Kennington III | 343d061 | 2018-12-10 15:56:24 -0800 | [diff] [blame] | 150 | |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 151 | providers_LTLIBRARIES += libsysintfcmds.la |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 152 | libsysintfcmds_la_LIBADD = \ |
| 153 | libipmid/libipmid.la \ |
| 154 | libipmid-host/libipmid-host.la |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame] | 155 | libsysintfcmds_la_SOURCES = \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 156 | systemintfcmds.cpp \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 157 | host-interface.cpp |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 158 | libsysintfcmds_la_LDFLAGS = \ |
| 159 | $(SYSTEMD_LIBS) \ |
| 160 | $(libmapper_LIBS) \ |
| 161 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 162 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 163 | $(SDBUSPLUS_LIBS) \ |
| 164 | -version-info 0:0:0 -shared |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 165 | libsysintfcmds_la_CXXFLAGS = $(COMMON_CXX) |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 166 | |
Willy Tu | de54f48 | 2021-01-26 15:59:09 -0800 | [diff] [blame] | 167 | if FEATURE_DYNAMIC_SENSORS |
| 168 | providers_LTLIBRARIES += libdynamiccmds.la |
| 169 | libdynamiccmds_la_LIBADD = \ |
| 170 | libipmid/libipmid.la |
Scron Chang | 2703b02 | 2021-07-06 15:47:45 +0800 | [diff] [blame] | 171 | if FEATURE_HYBRID_SENSORS |
| 172 | libdynamiccmds_la_LIBADD += libipmi20.la |
| 173 | endif |
Willy Tu | de54f48 | 2021-01-26 15:59:09 -0800 | [diff] [blame] | 174 | libdynamiccmds_la_SOURCES = \ |
| 175 | dbus-sdr/sensorcommands.cpp \ |
| 176 | dbus-sdr/storagecommands.cpp \ |
| 177 | dbus-sdr/sdrutils.cpp \ |
| 178 | dbus-sdr/sensorutils.cpp |
| 179 | libdynamiccmds_la_LDFLAGS = \ |
| 180 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 181 | $(libmapper_LIBS) \ |
| 182 | -version-info 0:0:0 -shared |
| 183 | libdynamiccmds_la_CXXFLAGS = $(COMMON_CXX) |
| 184 | endif |
| 185 | |
Vernon Mauery | e9f8857 | 2020-01-30 16:11:34 -0800 | [diff] [blame] | 186 | if FEATURE_IPMI_WHITELIST |
Vernon Mauery | 783dc07 | 2018-10-08 12:05:20 -0700 | [diff] [blame] | 187 | libwhitelistdir = ${libdir}/ipmid-providers |
| 188 | libwhitelist_LTLIBRARIES = libwhitelist.la |
| 189 | libwhitelist_la_SOURCES = \ |
| 190 | whitelist-filter.cpp |
| 191 | libwhitelist_la_LDFLAGS = \ |
| 192 | $(SYSTEMD_LIBS) \ |
| 193 | $(libmapper_LIBS) \ |
| 194 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 195 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 196 | -version-info 0:0:0 -shared |
| 197 | libwhitelist_la_CXXFLAGS = $(COMMON_CXX) |
| 198 | nodist_libwhitelist_la_SOURCES = ipmiwhitelist.cpp |
Vernon Mauery | e9f8857 | 2020-01-30 16:11:34 -0800 | [diff] [blame] | 199 | endif |
Vernon Mauery | 783dc07 | 2018-10-08 12:05:20 -0700 | [diff] [blame] | 200 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 201 | nobase_include_HEADERS = \ |
AppaRao Puli | 071f3f2 | 2018-05-24 16:45:30 +0530 | [diff] [blame] | 202 | user_channel/channel_layer.hpp \ |
shamim ali | d2bae68 | 2022-01-24 16:48:43 +0530 | [diff] [blame] | 203 | user_channel/user_layer.hpp \ |
| 204 | user_channel/cipher_mgmt.hpp |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 205 | |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 206 | # Forcing the build of self and then subdir |
William A. Kennington III | 194375f | 2018-12-14 02:14:33 -0800 | [diff] [blame] | 207 | SUBDIRS = include libipmid libipmid-host user_channel . test softoff |