blob: 18b198c6ddb56742b8a1bb567961839f9099375a [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 = \
Deepak Kodihalli18aa0442017-07-21 07:07:09 -05007 ipmid.cpp \
8 settings.cpp
9
Matthew Barth3cff7ed2016-07-27 14:50:51 -050010nodist_ipmid_SOURCES = ipmiwhitelist.cpp
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050011
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050012BUILT_SOURCES = \
13 ipmiwhitelist.cpp \
14 sensor-gen.cpp \
15 inventory-sensor-gen.cpp \
16 fru-read-gen.cpp
17
Ratan Gupta28c2e732017-03-04 08:53:52 +053018CLEANFILES = $(BUILT_SOURCES)
Patrick Williams686df742016-09-02 17:52:59 -050019
Matthew Barth3cff7ed2016-07-27 14:50:51 -050020#TODO - Make this path a configure option (bitbake parameter)
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050021ipmid_CPPFLAGS = \
22 -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \
23 $(PHOSPHOR_LOGGING_CFLAGS) \
24 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
25
26ipmid_LDFLAGS = \
27 $(SYSTEMD_LIBS) \
28 $(libmapper_LIBS) \
29 $(LIBADD_DLOPEN) \
30 $(PHOSPHOR_LOGGING_LIBS) \
31 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
32 -export-dynamic
Patrick Williams686df742016-09-02 17:52:59 -050033# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
34# selective list of symbols.
35
Patrick Williams686df742016-09-02 17:52:59 -050036ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050037 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050038
Ratan Gupta28c2e732017-03-04 08:53:52 +053039sensor-gen.cpp:
40 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
41
Tom Josephd5899e72017-05-05 11:20:34 +053042inventory-sensor-gen.cpp:
43 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
44
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050045fru-read-gen.cpp:
46 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
47
Tom8485aa12016-11-22 16:46:50 +053048libapphandlerdir = ${libdir}/ipmid-providers
Matthew Barth3cff7ed2016-07-27 14:50:51 -050049libapphandler_LTLIBRARIES = libapphandler.la
50libapphandler_la_SOURCES = \
51 apphandler.cpp \
52 sensorhandler.cpp \
53 storagehandler.cpp \
54 chassishandler.cpp \
55 dcmihandler.cpp \
56 ipmisensor.cpp \
57 storageaddsel.cpp \
58 transporthandler.cpp \
59 globalhandler.cpp \
Ratan Gupta28c2e732017-03-04 08:53:52 +053060 groupext.cpp \
Tom Josephbe703f72017-03-09 12:34:35 +053061 sensor-gen.cpp \
Tom Josephd5899e72017-05-05 11:20:34 +053062 utils.cpp \
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050063 inventory-sensor-gen.cpp \
Tom Joseph6b7a1432017-05-19 10:43:36 +053064 fru-read-gen.cpp \
Marri Devender Rao7d9157e2017-07-01 16:11:40 -050065 selutility.cpp \
Marri Devender Rao0acf0572017-07-03 12:25:47 -050066 ipmi_fru_info_area.cpp \
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050067 read_fru_data.cpp \
68 sensordatahandler.cpp
Ratan Gupta28c2e732017-03-04 08:53:52 +053069
Andrew Geisslera6e3a302017-05-31 19:34:00 -050070libapphandler_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -lstdc++fs -version-info 0:0:0 -shared
Ratan Gupta1ee292a2017-03-20 17:54:37 +053071libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050072
Tom8485aa12016-11-22 16:46:50 +053073libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053074libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
75libsysintfcmds_la_SOURCES = \
Andrew Geissler12866372017-03-21 22:58:28 -050076 systemintfcmds.cpp \
Andrew Geissler1b9d4e52017-03-21 15:04:05 -050077 host-interface.cpp \
Andrew Geissler83159702017-04-03 13:31:13 -050078 utils.cpp \
79 timer.cpp
Andrew Geissler12866372017-03-21 22:58:28 -050080libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050081 $(libmapper_LIBS) \
82 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -050083 $(PHOSPHOR_LOGGING_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050084 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -050085libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
86 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050087 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler12866372017-03-21 22:58:28 -050088 $(PHOSPHOR_LOGGING_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050089
Patrick Williams37af7332016-09-02 21:21:42 -050090nobase_include_HEADERS = \
91 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050092
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053093# Forcing the build of self and then subdir
94SUBDIRS = . test softoff