blob: 5cc9059d55149ff314cedc92a30b135216e559f0 [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
Ratan Gupta28c2e732017-03-04 08:53:52 +05309BUILT_SOURCES = ipmiwhitelist.cpp sensor-gen.cpp
10CLEANFILES = $(BUILT_SOURCES)
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
Patrick Williams686df742016-09-02 17:52:59 -050018ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050019 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050020
Ratan Gupta28c2e732017-03-04 08:53:52 +053021sensor-gen.cpp:
22 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
23
Tom8485aa12016-11-22 16:46:50 +053024libapphandlerdir = ${libdir}/ipmid-providers
Matthew Barth3cff7ed2016-07-27 14:50:51 -050025libapphandler_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 \
Ratan Gupta28c2e732017-03-04 08:53:52 +053036 groupext.cpp \
Tom Josephbe703f72017-03-09 12:34:35 +053037 sensor-gen.cpp \
38 utils.cpp
Ratan Gupta28c2e732017-03-04 08:53:52 +053039
Ratan Gupta1ee292a2017-03-20 17:54:37 +053040libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -version-info 0:0:0 -shared
41libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050042
Tom8485aa12016-11-22 16:46:50 +053043libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053044libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
45libsysintfcmds_la_SOURCES = \
46 systemintfcmds.cpp
Tom8485aa12016-11-22 16:46:50 +053047libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) -version-info 0:0:0 -shared
48libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS)
Tom9e5232e2016-11-07 12:14:51 +053049
Patrick Williams37af7332016-09-02 21:21:42 -050050nobase_include_HEADERS = \
51 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050052
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053053# Forcing the build of self and then subdir
54SUBDIRS = . test softoff