blob: e0412b6c5d9aacccc06266980331d56a5853c1cb [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
Tom Josephd5899e72017-05-05 11:20:34 +05309BUILT_SOURCES = ipmiwhitelist.cpp sensor-gen.cpp inventory-sensor-gen.cpp
Ratan Gupta28c2e732017-03-04 08:53:52 +053010CLEANFILES = $(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
Tom Josephd5899e72017-05-05 11:20:34 +053024inventory-sensor-gen.cpp:
25 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
26
Tom8485aa12016-11-22 16:46:50 +053027libapphandlerdir = ${libdir}/ipmid-providers
Matthew Barth3cff7ed2016-07-27 14:50:51 -050028libapphandler_LTLIBRARIES = libapphandler.la
29libapphandler_la_SOURCES = \
30 apphandler.cpp \
31 sensorhandler.cpp \
32 storagehandler.cpp \
33 chassishandler.cpp \
34 dcmihandler.cpp \
35 ipmisensor.cpp \
36 storageaddsel.cpp \
37 transporthandler.cpp \
38 globalhandler.cpp \
Ratan Gupta28c2e732017-03-04 08:53:52 +053039 groupext.cpp \
Tom Josephbe703f72017-03-09 12:34:35 +053040 sensor-gen.cpp \
Tom Josephd5899e72017-05-05 11:20:34 +053041 utils.cpp \
42 inventory-sensor-gen.cpp
Ratan Gupta28c2e732017-03-04 08:53:52 +053043
Ratan Gupta1ee292a2017-03-20 17:54:37 +053044libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -version-info 0:0:0 -shared
45libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050046
Tom8485aa12016-11-22 16:46:50 +053047libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053048libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
49libsysintfcmds_la_SOURCES = \
Andrew Geissler12866372017-03-21 22:58:28 -050050 systemintfcmds.cpp \
Andrew Geissler1b9d4e52017-03-21 15:04:05 -050051 host-interface.cpp \
Andrew Geissler83159702017-04-03 13:31:13 -050052 utils.cpp \
53 timer.cpp
Andrew Geissler12866372017-03-21 22:58:28 -050054libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050055 $(libmapper_LIBS) \
56 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -050057 $(PHOSPHOR_LOGGING_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050058 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -050059libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
60 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050061 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler12866372017-03-21 22:58:28 -050062 $(PHOSPHOR_LOGGING_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050063
Patrick Williams37af7332016-09-02 21:21:42 -050064nobase_include_HEADERS = \
65 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050066
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053067# Forcing the build of self and then subdir
68SUBDIRS = . test softoff