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