blob: 8a220c52a6d244209dd93b9e5d41496a2b56fd29 [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
Matthew Barth3cff7ed2016-07-27 14:50:51 -05008nodist_ipmid_SOURCES = ipmiwhitelist.cpp
9BUILT_SOURCES = ipmiwhitelist.cpp
10CLEANFILES = ipmiwhitelist.cpp
Patrick Williams686df742016-09-02 17:52:59 -050011
Matthew Barth3cff7ed2016-07-27 14:50:51 -050012#TODO - Make this path a configure option (bitbake parameter)
13ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\"
14ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) -export-dynamic
Patrick Williams686df742016-09-02 17:52:59 -050015# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
16# selective list of symbols.
17
18WHITELIST_CONF ?= ${srcdir}/host-ipmid-whitelist.conf
19ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050020 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050021
Matthew Barth3cff7ed2016-07-27 14:50:51 -050022
Patrick Williams37af7332016-09-02 21:21:42 -050023libapphandlerdir = ${libdir}/host-ipmid
Matthew Barth3cff7ed2016-07-27 14:50:51 -050024libapphandler_LTLIBRARIES = libapphandler.la
25libapphandler_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
36libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared
37libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
38
Tom9e5232e2016-11-07 12:14:51 +053039libsysintfcmdsdir = ${libdir}/host-ipmid
40libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
41libsysintfcmds_la_SOURCES = \
42 systemintfcmds.cpp
43libsysintfcmds_la_LDFLAGS = -version-info 0:0:0 -shared
44
Patrick Williams37af7332016-09-02 21:21:42 -050045libhostservicedir = ${libdir}/host-ipmid
Matthew Barth3cff7ed2016-07-27 14:50:51 -050046libhostservice_LTLIBRARIES = libhostservice.la
47libhostservice_la_SOURCES = \
48 host-services.c
49libhostservice_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared
50libhostservice_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
51
Patrick Williams37af7332016-09-02 21:21:42 -050052nobase_include_HEADERS = \
53 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050054
Matthew Barth00b1e5b2016-09-09 12:15:46 -050055SUBDIRS = test