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