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 |
| 9 | BUILT_SOURCES = ipmiwhitelist.cpp |
| 10 | CLEANFILES = ipmiwhitelist.cpp |
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 | |
| 18 | WHITELIST_CONF ?= ${srcdir}/host-ipmid-whitelist.conf |
| 19 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 20 | $(SHELL) $^ > $@ |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 21 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 22 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 23 | libapphandlerdir = ${libdir}/host-ipmid |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 24 | libapphandler_LTLIBRARIES = libapphandler.la |
| 25 | libapphandler_la_SOURCES = \ |
| 26 | apphandler.cpp \ |
| 27 | sensorhandler.cpp \ |
| 28 | storagehandler.cpp \ |
| 29 | chassishandler.cpp \ |
| 30 | dcmihandler.cpp \ |
| 31 | ipmisensor.cpp \ |
| 32 | storageaddsel.cpp \ |
| 33 | transporthandler.cpp \ |
| 34 | globalhandler.cpp \ |
| 35 | groupext.cpp |
| 36 | libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared |
| 37 | libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) |
| 38 | |
Tom | 9e5232e | 2016-11-07 12:14:51 +0530 | [diff] [blame^] | 39 | libsysintfcmdsdir = ${libdir}/host-ipmid |
| 40 | libsysintfcmds_LTLIBRARIES = libsysintfcmds.la |
| 41 | libsysintfcmds_la_SOURCES = \ |
| 42 | systemintfcmds.cpp |
| 43 | libsysintfcmds_la_LDFLAGS = -version-info 0:0:0 -shared |
| 44 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 45 | libhostservicedir = ${libdir}/host-ipmid |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 46 | libhostservice_LTLIBRARIES = libhostservice.la |
| 47 | libhostservice_la_SOURCES = \ |
| 48 | host-services.c |
| 49 | libhostservice_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared |
| 50 | libhostservice_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) |
| 51 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 52 | nobase_include_HEADERS = \ |
| 53 | host-ipmid/ipmid-api.h |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 54 | |
Matthew Barth | 00b1e5b | 2016-09-09 12:15:46 -0500 | [diff] [blame] | 55 | SUBDIRS = test |