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