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 \ |
| 10 | timer.cpp \ |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 11 | utils.cpp \ |
| 12 | oemrouter.cpp |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 13 | nodist_ipmid_SOURCES = ipmiwhitelist.cpp |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 14 | |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 15 | libipmi20_BUILT_LIST = \ |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 16 | sensor-gen.cpp \ |
| 17 | inventory-sensor-gen.cpp \ |
| 18 | fru-read-gen.cpp \ |
| 19 | channel-gen.cpp |
| 20 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 21 | BUILT_SOURCES = \ |
| 22 | ipmiwhitelist.cpp \ |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 23 | $(libipmi20_BUILT_LIST) |
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 | |
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 | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 28 | BOOST_CXX = -DBOOST_ERROR_CODE_HEADER_ONLY \ |
| 29 | -DBOOST_SYSTEM_NO_DEPRECATED \ |
| 30 | -DBOOST_ALL_NO_LIB |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 31 | #TODO - Make this path a configure option (bitbake parameter) |
Vernon Mauery | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 32 | ipmid_CXXFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \ |
| 33 | $(BOOST_CXX) \ |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 34 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 35 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
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) \ |
Vernon Mauery | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 42 | -lstdc++fs \ |
| 43 | -pthread \ |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 44 | -export-dynamic |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 45 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 46 | # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a |
| 47 | # selective list of symbols. |
| 48 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 49 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 50 | $(SHELL) $^ > $@ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 51 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 52 | sensor-gen.cpp: |
| 53 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 54 | |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 55 | inventory-sensor-gen.cpp: |
| 56 | $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp |
| 57 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 58 | fru-read-gen.cpp: |
| 59 | $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp |
| 60 | |
Patrick Venture | c01edf2 | 2017-12-22 14:03:06 -0800 | [diff] [blame] | 61 | channel-gen.cpp: |
| 62 | $(AM_V_GEN)@CHANNELGEN@ -o $(top_builddir) generate-cpp |
| 63 | |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 64 | libipmi20dir = ${libdir}/ipmid-providers |
| 65 | libipmi20_LTLIBRARIES = libipmi20.la |
| 66 | libipmi20_la_SOURCES = \ |
Patrick Venture | c7c1c3c | 2017-11-15 14:29:18 -0800 | [diff] [blame] | 67 | net.cpp \ |
Patrick Venture | 5794fcf | 2017-10-26 11:11:14 -0700 | [diff] [blame] | 68 | app/channel.cpp \ |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 69 | app/watchdog.cpp \ |
William A. Kennington III | 5257525 | 2018-02-09 15:54:56 -0800 | [diff] [blame] | 70 | app/watchdog_service.cpp \ |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 71 | apphandler.cpp \ |
| 72 | sensorhandler.cpp \ |
| 73 | storagehandler.cpp \ |
| 74 | chassishandler.cpp \ |
| 75 | dcmihandler.cpp \ |
| 76 | ipmisensor.cpp \ |
| 77 | storageaddsel.cpp \ |
| 78 | transporthandler.cpp \ |
| 79 | globalhandler.cpp \ |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 80 | groupext.cpp \ |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 81 | utils.cpp \ |
Marri Devender Rao | 7d9157e | 2017-07-01 16:11:40 -0500 | [diff] [blame] | 82 | selutility.cpp \ |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 83 | ipmi_fru_info_area.cpp \ |
Dhruvaraj Subhashchandran | e0af720 | 2017-07-12 06:35:20 -0500 | [diff] [blame] | 84 | read_fru_data.cpp \ |
Tom Joseph | a9fbff4 | 2018-01-22 14:59:09 +0530 | [diff] [blame] | 85 | sensordatahandler.cpp \ |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 86 | $(libipmi20_BUILT_LIST) |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 87 | |
Emily Shaffer | c07e72c | 2018-06-18 10:37:31 -0700 | [diff] [blame] | 88 | @CODE_COVERAGE_RULES@ |
| 89 | |
| 90 | check_PROGRAMS = |
| 91 | XFAIL_TESTS = |
| 92 | |
| 93 | TESTS = $(check_PROGRAMS) |
| 94 | |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 95 | libipmi20_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) \ |
| 96 | $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -lstdc++fs \ |
| 97 | -version-info 0:0:0 -shared |
| 98 | libipmi20_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) \ |
Vernon Mauery | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 99 | $(BOOST_CXX) $(PHOSPHOR_LOGGING_CFLAGS) \ |
Vernon Mauery | 0248484 | 2018-07-24 09:15:38 -0700 | [diff] [blame] | 100 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 101 | |
Tom | 8485aa1 | 2016-11-22 16:46:50 +0530 | [diff] [blame] | 102 | libsysintfcmdsdir = ${libdir}/ipmid-providers |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame] | 103 | libsysintfcmds_LTLIBRARIES = libsysintfcmds.la |
| 104 | libsysintfcmds_la_SOURCES = \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 105 | systemintfcmds.cpp \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 106 | host-interface.cpp |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 107 | libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \ |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 108 | $(libmapper_LIBS) \ |
| 109 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 110 | $(PHOSPHOR_LOGGING_LIBS) \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 111 | $(SDBUSPLUS_LIBS) \ |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 112 | -version-info 0:0:0 -shared |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 113 | libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \ |
Vernon Mauery | 28565ac | 2018-08-01 09:16:56 -0700 | [diff] [blame] | 114 | $(BOOST_CXX) \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 115 | $(libmapper_CFLAGS) \ |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 116 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 117 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 118 | $(SDBUSPLUS_CFLAGS) |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 119 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 120 | nobase_include_HEADERS = \ |
Vishwanatha Subbanna | 6e8979d | 2017-07-13 16:48:20 +0530 | [diff] [blame] | 121 | host-ipmid/ipmid-api.h \ |
| 122 | host-ipmid/ipmid-host-cmd.hpp \ |
Peter Hanson | 4a58985 | 2017-06-07 17:40:45 -0700 | [diff] [blame] | 123 | host-ipmid/ipmid-host-cmd-utils.hpp \ |
| 124 | host-ipmid/oemopenbmc.hpp \ |
| 125 | host-ipmid/oemrouter.hpp |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 126 | |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 127 | # Forcing the build of self and then subdir |
| 128 | SUBDIRS = . test softoff |