blob: d90cd38321ea014c01f2eeb953695c22fa357ede [file] [log] [blame]
Matthew Barth3cff7ed2016-07-27 14:50:51 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2
Patrick Williams686df742016-09-02 17:52:59 -05003sbin_PROGRAMS = \
4 ipmid
Matthew Barth3cff7ed2016-07-27 14:50:51 -05005
6ipmid_SOURCES = \
7 ipmid.cpp
8 ipmiwhitelist.cpp
9nodist_ipmid_SOURCES = ipmiwhitelist.cpp
10BUILT_SOURCES = ipmiwhitelist.cpp
11CLEANFILES = ipmiwhitelist.cpp
Patrick Williams686df742016-09-02 17:52:59 -050012
Matthew Barth3cff7ed2016-07-27 14:50:51 -050013#TODO - Make this path a configure option (bitbake parameter)
14ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\"
15ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) -export-dynamic
Patrick Williams686df742016-09-02 17:52:59 -050016# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
17# selective list of symbols.
18
19WHITELIST_CONF ?= ${srcdir}/host-ipmid-whitelist.conf
20ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
21 ${srcdir}/$^ > $@
22
Matthew Barth3cff7ed2016-07-27 14:50:51 -050023
24libapphandlerdir = /usr/lib/host-ipmid
25libapphandler_LTLIBRARIES = libapphandler.la
26libapphandler_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
37libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared
38libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
39
40libhostservicedir = /usr/lib/host-ipmid
41libhostservice_LTLIBRARIES = libhostservice.la
42libhostservice_la_SOURCES = \
43 host-services.c
44libhostservice_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared
45libhostservice_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
46
Matthew Barth3cff7ed2016-07-27 14:50:51 -050047includedir = /usr/include/host-ipmid
48
49include_HEADERS = \
50 ipmid-api.h
51
Matthew Barth3cff7ed2016-07-27 14:50:51 -050052check_PROGRAMS = \
53 testit
54# testaddsel
Patrick Williams686df742016-09-02 17:52:59 -050055
56testit_SOURCES = \
57 ipmisensor.cpp \
58 testit.cpp
59testit_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