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