blob: 4053e1bed4fbcf529890b6e8252b5bf75133bdb3 [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
Patrick Williams37af7332016-09-02 21:21:42 -050039libhostservicedir = ${libdir}/host-ipmid
Matthew Barth3cff7ed2016-07-27 14:50:51 -050040libhostservice_LTLIBRARIES = libhostservice.la
41libhostservice_la_SOURCES = \
42 host-services.c
43libhostservice_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared
44libhostservice_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
45
Patrick Williams37af7332016-09-02 21:21:42 -050046nobase_include_HEADERS = \
47 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050048
Matthew Barth00b1e5b2016-09-09 12:15:46 -050049SUBDIRS = test