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 |
| 8 | ipmiwhitelist.cpp |
| 9 | nodist_ipmid_SOURCES = ipmiwhitelist.cpp |
| 10 | BUILT_SOURCES = ipmiwhitelist.cpp |
| 11 | CLEANFILES = ipmiwhitelist.cpp |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame^] | 12 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 13 | #TODO - Make this path a configure option (bitbake parameter) |
| 14 | ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" |
| 15 | ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) -export-dynamic |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame^] | 16 | # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a |
| 17 | # selective list of symbols. |
| 18 | |
| 19 | WHITELIST_CONF ?= ${srcdir}/host-ipmid-whitelist.conf |
| 20 | ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) |
| 21 | ${srcdir}/$^ > $@ |
| 22 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 23 | |
| 24 | libapphandlerdir = /usr/lib/host-ipmid |
| 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 \ |
| 36 | groupext.cpp |
| 37 | libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared |
| 38 | libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) |
| 39 | |
| 40 | libhostservicedir = /usr/lib/host-ipmid |
| 41 | libhostservice_LTLIBRARIES = libhostservice.la |
| 42 | libhostservice_la_SOURCES = \ |
| 43 | host-services.c |
| 44 | libhostservice_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared |
| 45 | libhostservice_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) |
| 46 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 47 | includedir = /usr/include/host-ipmid |
| 48 | |
| 49 | include_HEADERS = \ |
| 50 | ipmid-api.h |
| 51 | |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 52 | check_PROGRAMS = \ |
| 53 | testit |
| 54 | # testaddsel |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame^] | 55 | |
| 56 | testit_SOURCES = \ |
| 57 | ipmisensor.cpp \ |
| 58 | testit.cpp |
| 59 | testit_LDFLAGS = $(SYSTEMD_LIBS) $(LIBADD_DLOPEN) |
| 60 | |
| 61 | #testaddsel_SOURCES = \ |
| 62 | # testaddsel.cpp \ |
| 63 | # storageaddsel.cpp |
| 64 | #testaddsel_LDFLAGS = $(SYSTEMD_CFLAGS) $(SYSTEMD_LIBS) $(LIBADD_DLOPEN) |
| 65 | |