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 |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 9 | BUILT_SOURCES = ipmiwhitelist.cpp sensor-gen.cpp |
| 10 | CLEANFILES = $(BUILT_SOURCES) |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 11 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 12 | #TODO - Make this path a configure option (bitbake parameter) |
| 13 | ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" |
| 14 | ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) -export-dynamic |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 15 | # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a |
| 16 | # selective list of symbols. |
| 17 | |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 18 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 19 | $(SHELL) $^ > $@ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 20 | |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 21 | sensor-gen.cpp: |
| 22 | $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp |
| 23 | |
Tom | 8485aa1 | 2016-11-22 16:46:50 +0530 | [diff] [blame] | 24 | libapphandlerdir = ${libdir}/ipmid-providers |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 25 | libapphandler_LTLIBRARIES = libapphandler.la |
| 26 | libapphandler_la_SOURCES = \ |
| 27 | apphandler.cpp \ |
| 28 | sensorhandler.cpp \ |
| 29 | storagehandler.cpp \ |
| 30 | chassishandler.cpp \ |
| 31 | dcmihandler.cpp \ |
| 32 | ipmisensor.cpp \ |
| 33 | storageaddsel.cpp \ |
| 34 | transporthandler.cpp \ |
| 35 | globalhandler.cpp \ |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 36 | groupext.cpp \ |
Tom Joseph | be703f7 | 2017-03-09 12:34:35 +0530 | [diff] [blame] | 37 | sensor-gen.cpp \ |
| 38 | utils.cpp |
Ratan Gupta | 28c2e73 | 2017-03-04 08:53:52 +0530 | [diff] [blame] | 39 | |
Ratan Gupta | 1ee292a | 2017-03-20 17:54:37 +0530 | [diff] [blame] | 40 | libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -version-info 0:0:0 -shared |
| 41 | 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] | 42 | |
Tom | 8485aa1 | 2016-11-22 16:46:50 +0530 | [diff] [blame] | 43 | libsysintfcmdsdir = ${libdir}/ipmid-providers |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame] | 44 | libsysintfcmds_LTLIBRARIES = libsysintfcmds.la |
| 45 | libsysintfcmds_la_SOURCES = \ |
| 46 | systemintfcmds.cpp |
Tom | 8485aa1 | 2016-11-22 16:46:50 +0530 | [diff] [blame] | 47 | libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared |
| 48 | libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame] | 49 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 50 | nobase_include_HEADERS = \ |
| 51 | host-ipmid/ipmid-api.h |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 52 | |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 53 | # Forcing the build of self and then subdir |
| 54 | SUBDIRS = . test softoff |