blob: 2a51d2fe557a9a39c60b5685841fafcf85707872 [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)
Andrew Geissler93c679b2017-04-02 10:06:43 -050013ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" $(PHOSPHOR_LOGGING_CFLAGS)
14ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) $(PHOSPHOR_LOGGING_LIBS) -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 = \
Andrew Geissler12866372017-03-21 22:58:28 -050046 systemintfcmds.cpp \
Andrew Geissler1b9d4e52017-03-21 15:04:05 -050047 host-interface.cpp \
Andrew Geissler83159702017-04-03 13:31:13 -050048 utils.cpp \
49 timer.cpp
Andrew Geissler12866372017-03-21 22:58:28 -050050libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050051 $(libmapper_LIBS) \
52 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -050053 $(PHOSPHOR_LOGGING_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050054 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -050055libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
56 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050057 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler12866372017-03-21 22:58:28 -050058 $(PHOSPHOR_LOGGING_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050059
Patrick Williams37af7332016-09-02 21:21:42 -050060nobase_include_HEADERS = \
61 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050062
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053063# Forcing the build of self and then subdir
64SUBDIRS = . test softoff