Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 3 | providersdir = ${libdir}/ipmid-providers |
| 4 | providers_LTLIBRARIES = |
| 5 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 6 | sbin_PROGRAMS = \ |
| 7 | ipmid |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 8 | |
| 9 | ipmid_SOURCES = \ |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 10 | ipmid.cpp \ |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 11 | settings.cpp \ |
| 12 | host-cmd-manager.cpp \ |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 13 | utils.cpp \ |
| 14 | oemrouter.cpp |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 15 | nodist_ipmid_SOURCES = ipmiwhitelist.cpp |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 16 | |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 17 | libipmi20_BUILT_LIST = \ |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 18 | sensor-gen.cpp \ |
Tom Joseph | e19540e | 2019-02-04 14:06:58 +0530 | [diff] [blame] | 19 | inventory-sensor-gen.cpp \ |
Johnathan Mantey | 41ac505 | 2018-12-13 13:47:21 -0800 | [diff] [blame^] | 20 | fru-read-gen.cpp |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 21 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 22 | BUILT_SOURCES = \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 23 | ipmiwhitelist.cpp \ |
| 24 | $(libipmi20_BUILT_LIST) |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 25 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 26 | CLEANFILES = $(BUILT_SOURCES) |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 27 | |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 28 | COMMON_CXX = \ |
| 29 | -flto \ |
| 30 | -Wno-psabi \ |
| 31 | $(SYSTEMD_CFLAGS) \ |
| 32 | $(libmapper_CFLAGS) \ |
| 33 | $(SDBUSPLUS_CFLAGS) \ |
| 34 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 35 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 36 | -DBOOST_ERROR_CODE_HEADER_ONLY \ |
| 37 | -DBOOST_SYSTEM_NO_DEPRECATED \ |
| 38 | -DBOOST_ALL_NO_LIB |
| 39 | |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 40 | ipmid_CXXFLAGS = $(COMMON_CXX) |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 41 | ipmid_LDFLAGS = \ |
| 42 | $(SYSTEMD_LIBS) \ |
| 43 | $(libmapper_LIBS) \ |
| 44 | $(LIBADD_DLOPEN) \ |
| 45 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 46 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Richard Marian Thomaiyar | 4654d99 | 2018-04-19 05:38:37 +0530 | [diff] [blame] | 47 | $(CRYPTO_LIBS) \ |
Vernon Mauery | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 48 | -lstdc++fs \ |
| 49 | -pthread \ |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 50 | -export-dynamic |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 51 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 52 | # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a |
| 53 | # selective list of symbols. |
| 54 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 55 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 56 | $(SHELL) $^ > $@ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 57 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 58 | sensor-gen.cpp: |
| 59 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 60 | |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 61 | inventory-sensor-gen.cpp: |
| 62 | $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp |
| 63 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 64 | fru-read-gen.cpp: |
| 65 | $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp |
| 66 | |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 67 | providers_LTLIBRARIES += libipmi20.la |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 68 | libipmi20_la_SOURCES = \ |
Patrick Venture | 5794fcf | 2017-10-26 11:11:14 -0700 | [diff] [blame] | 69 | app/channel.cpp \ |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 70 | app/watchdog.cpp \ |
William A. Kennington III | 5257525 | 2018-02-09 15:54:56 -0800 | [diff] [blame] | 71 | app/watchdog_service.cpp \ |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 72 | apphandler.cpp \ |
Xo Wang | 069db2f | 2017-08-09 15:31:33 -0700 | [diff] [blame] | 73 | sys_info_param.cpp \ |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 74 | sensorhandler.cpp \ |
| 75 | storagehandler.cpp \ |
| 76 | chassishandler.cpp \ |
| 77 | dcmihandler.cpp \ |
| 78 | ipmisensor.cpp \ |
| 79 | storageaddsel.cpp \ |
| 80 | transporthandler.cpp \ |
| 81 | globalhandler.cpp \ |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 82 | groupext.cpp \ |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 83 | utils.cpp \ |
Marri Devender Rao | 7d9157e | 2017-07-01 16:11:40 -0500 | [diff] [blame] | 84 | selutility.cpp \ |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 85 | ipmi_fru_info_area.cpp \ |
Dhruvaraj Subhashchandran | e0af720 | 2017-07-12 06:35:20 -0500 | [diff] [blame] | 86 | read_fru_data.cpp \ |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 87 | sensordatahandler.cpp \ |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 88 | $(libipmi20_BUILT_LIST) |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 89 | |
Emily Shaffer | c07e72c | 2018-06-18 10:37:31 -0700 | [diff] [blame] | 90 | @CODE_COVERAGE_RULES@ |
| 91 | |
| 92 | check_PROGRAMS = |
| 93 | XFAIL_TESTS = |
| 94 | |
| 95 | TESTS = $(check_PROGRAMS) |
| 96 | |
Johnathan Mantey | 74a2102 | 2018-12-13 13:17:56 -0800 | [diff] [blame] | 97 | libipmi20_la_LIBADD = user_channel/libuserlayer.la |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 98 | libipmi20_la_LDFLAGS = \ |
| 99 | $(SYSTEMD_LIBS) \ |
| 100 | $(libmapper_LIBS) \ |
| 101 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 102 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 103 | -lstdc++fs \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 104 | -version-info 0:0:0 -shared |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 105 | libipmi20_la_CXXFLAGS = $(COMMON_CXX) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 106 | |
William A. Kennington III | 343d061 | 2018-12-10 15:56:24 -0800 | [diff] [blame] | 107 | providers_LTLIBRARIES += libusercmds.la |
| 108 | libusercmds_la_LIBADD = user_channel/libuserlayer.la |
| 109 | libusercmds_la_SOURCES = \ |
| 110 | user_channel/usercommands.cpp \ |
| 111 | user_channel/channelcommands.cpp |
| 112 | libusercmds_la_LDFLAGS = \ |
| 113 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 114 | $(LIBS) \ |
| 115 | -version-info 0:0:0 -shared |
| 116 | libusercmds_la_CXXFLAGS = \ |
| 117 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 118 | -flto |
| 119 | |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 120 | providers_LTLIBRARIES += libsysintfcmds.la |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame] | 121 | libsysintfcmds_la_SOURCES = \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 122 | systemintfcmds.cpp \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 123 | host-interface.cpp |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 124 | libsysintfcmds_la_LDFLAGS = \ |
| 125 | $(SYSTEMD_LIBS) \ |
| 126 | $(libmapper_LIBS) \ |
| 127 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 128 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 129 | $(SDBUSPLUS_LIBS) \ |
| 130 | -version-info 0:0:0 -shared |
Vernon Mauery | 1e3455a | 2018-11-30 13:10:54 -0800 | [diff] [blame] | 131 | libsysintfcmds_la_CXXFLAGS = $(COMMON_CXX) |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 132 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 133 | nobase_include_HEADERS = \ |
Patrick Venture | dd0459e | 2018-09-08 09:27:16 -0700 | [diff] [blame] | 134 | host-ipmid/iana.hpp \ |
Richard Marian Thomaiyar | 4654d99 | 2018-04-19 05:38:37 +0530 | [diff] [blame] | 135 | user_channel/user_layer.hpp \ |
AppaRao Puli | 071f3f2 | 2018-05-24 16:45:30 +0530 | [diff] [blame] | 136 | user_channel/channel_layer.hpp \ |
Vishwanatha Subbanna | 6e8979d | 2017-07-13 16:48:20 +0530 | [diff] [blame] | 137 | host-ipmid/ipmid-api.h \ |
| 138 | host-ipmid/ipmid-host-cmd.hpp \ |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 139 | host-ipmid/ipmid-host-cmd-utils.hpp \ |
| 140 | host-ipmid/oemopenbmc.hpp \ |
| 141 | host-ipmid/oemrouter.hpp |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 142 | |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 143 | # Forcing the build of self and then subdir |
William A. Kennington III | 785fb07 | 2018-12-10 15:27:20 -0800 | [diff] [blame] | 144 | SUBDIRS = user_channel . test softoff |