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 \ |
| 11 | utils.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 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 14 | BUILT_SOURCES = \ |
| 15 | ipmiwhitelist.cpp \ |
| 16 | sensor-gen.cpp \ |
| 17 | inventory-sensor-gen.cpp \ |
Patrick Venture | c01edf2 | 2017-12-22 14:03:06 -0800 | [diff] [blame] | 18 | fru-read-gen.cpp \ |
| 19 | channel-gen.cpp |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 20 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 21 | CLEANFILES = $(BUILT_SOURCES) |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 22 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 23 | #TODO - Make this path a configure option (bitbake parameter) |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 24 | ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \ |
| 25 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 26 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Deepak Kodihalli | 18aa044 | 2017-07-21 07:07:09 -0500 | [diff] [blame] | 27 | ipmid_LDFLAGS = \ |
| 28 | $(SYSTEMD_LIBS) \ |
| 29 | $(libmapper_LIBS) \ |
| 30 | $(LIBADD_DLOPEN) \ |
| 31 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 32 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 33 | -export-dynamic |
Vishwanatha Subbanna | ac149a9 | 2017-07-11 18:16:50 +0530 | [diff] [blame] | 34 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 35 | # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a |
| 36 | # selective list of symbols. |
| 37 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 38 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 39 | $(SHELL) $^ > $@ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 40 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 41 | sensor-gen.cpp: |
| 42 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 43 | |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 44 | inventory-sensor-gen.cpp: |
| 45 | $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp |
| 46 | |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 47 | fru-read-gen.cpp: |
| 48 | $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp |
| 49 | |
Patrick Venture | c01edf2 | 2017-12-22 14:03:06 -0800 | [diff] [blame] | 50 | channel-gen.cpp: |
| 51 | $(AM_V_GEN)@CHANNELGEN@ -o $(top_builddir) generate-cpp |
| 52 | |
Tom | 8485aa1 | 2016-11-22 16:46:50 +0530 | [diff] [blame] | 53 | libapphandlerdir = ${libdir}/ipmid-providers |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 54 | libapphandler_LTLIBRARIES = libapphandler.la |
| 55 | libapphandler_la_SOURCES = \ |
Patrick Venture | c7c1c3c | 2017-11-15 14:29:18 -0800 | [diff] [blame] | 56 | net.cpp \ |
Patrick Venture | 5794fcf | 2017-10-26 11:11:14 -0700 | [diff] [blame] | 57 | app/channel.cpp \ |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 58 | app/watchdog.cpp \ |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 59 | apphandler.cpp \ |
| 60 | sensorhandler.cpp \ |
| 61 | storagehandler.cpp \ |
| 62 | chassishandler.cpp \ |
| 63 | dcmihandler.cpp \ |
| 64 | ipmisensor.cpp \ |
| 65 | storageaddsel.cpp \ |
| 66 | transporthandler.cpp \ |
| 67 | globalhandler.cpp \ |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 68 | groupext.cpp \ |
Tom Joseph | be703f7 | 2017-03-09 12:34:35 +0530 | [diff] [blame] | 69 | sensor-gen.cpp \ |
Tom Joseph | d5899e7 | 2017-05-05 11:20:34 +0530 | [diff] [blame] | 70 | utils.cpp \ |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 71 | inventory-sensor-gen.cpp \ |
Tom Joseph | 6b7a143 | 2017-05-19 10:43:36 +0530 | [diff] [blame] | 72 | fru-read-gen.cpp \ |
Marri Devender Rao | 7d9157e | 2017-07-01 16:11:40 -0500 | [diff] [blame] | 73 | selutility.cpp \ |
Marri Devender Rao | 0acf057 | 2017-07-03 12:25:47 -0500 | [diff] [blame] | 74 | ipmi_fru_info_area.cpp \ |
Dhruvaraj Subhashchandran | e0af720 | 2017-07-12 06:35:20 -0500 | [diff] [blame] | 75 | read_fru_data.cpp \ |
| 76 | sensordatahandler.cpp |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 77 | |
Andrew Geissler | a6e3a30 | 2017-05-31 19:34:00 -0500 | [diff] [blame] | 78 | libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -lstdc++fs -version-info 0:0:0 -shared |
Ratan Gupta | 1ee292a | 2017-03-20 17:54:37 +0530 | [diff] [blame] | 79 | libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 80 | |
Tom | 8485aa1 | 2016-11-22 16:46:50 +0530 | [diff] [blame] | 81 | libsysintfcmdsdir = ${libdir}/ipmid-providers |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame] | 82 | libsysintfcmds_LTLIBRARIES = libsysintfcmds.la |
| 83 | libsysintfcmds_la_SOURCES = \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 84 | systemintfcmds.cpp \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 85 | host-interface.cpp |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 86 | libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \ |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 87 | $(libmapper_LIBS) \ |
| 88 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 89 | $(PHOSPHOR_LOGGING_LIBS) \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 90 | $(SDBUSPLUS_LIBS) \ |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 91 | -version-info 0:0:0 -shared |
Andrew Geissler | 1286637 | 2017-03-21 22:58:28 -0500 | [diff] [blame] | 92 | libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \ |
| 93 | $(libmapper_CFLAGS) \ |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 94 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Vishwanatha Subbanna | 3eb117a | 2017-07-12 16:13:49 +0530 | [diff] [blame] | 95 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 96 | $(SDBUSPLUS_CFLAGS) |
Andrew Geissler | dd2c6fd | 2017-03-16 15:53:20 -0500 | [diff] [blame] | 97 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 98 | nobase_include_HEADERS = \ |
Vishwanatha Subbanna | 6e8979d | 2017-07-13 16:48:20 +0530 | [diff] [blame] | 99 | host-ipmid/ipmid-api.h \ |
| 100 | host-ipmid/ipmid-host-cmd.hpp \ |
| 101 | host-ipmid/ipmid-host-cmd-utils.hpp |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 102 | |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 103 | # Forcing the build of self and then subdir |
| 104 | SUBDIRS = . test softoff |