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 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 39 | libhostservicedir = ${libdir}/host-ipmid |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 40 | libhostservice_LTLIBRARIES = libhostservice.la |
| 41 | libhostservice_la_SOURCES = \ |
| 42 | host-services.c |
| 43 | libhostservice_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared |
| 44 | libhostservice_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) |
| 45 | |
Patrick Williams | 37af733 | 2016-09-02 21:21:42 -0500 | [diff] [blame] | 46 | nobase_include_HEADERS = \ |
| 47 | host-ipmid/ipmid-api.h |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 48 | |
Matthew Barth | 00b1e5b | 2016-09-09 12:15:46 -0500 | [diff] [blame] | 49 | SUBDIRS = test |