blob: 0379037887351ab8e956b5ddb6e7ed92781bbd2e [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
Marri Devender Raoa62bacc2017-06-04 23:40:16 -05009BUILT_SOURCES = \
10 ipmiwhitelist.cpp \
11 sensor-gen.cpp \
12 inventory-sensor-gen.cpp \
13 fru-read-gen.cpp
14
Ratan Gupta28c2e732017-03-04 08:53:52 +053015CLEANFILES = $(BUILT_SOURCES)
Patrick Williams686df742016-09-02 17:52:59 -050016
Matthew Barth3cff7ed2016-07-27 14:50:51 -050017#TODO - Make this path a configure option (bitbake parameter)
Andrew Geissler93c679b2017-04-02 10:06:43 -050018ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" $(PHOSPHOR_LOGGING_CFLAGS)
19ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) $(PHOSPHOR_LOGGING_LIBS) -export-dynamic
Patrick Williams686df742016-09-02 17:52:59 -050020# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
21# selective list of symbols.
22
Patrick Williams686df742016-09-02 17:52:59 -050023ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050024 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050025
Ratan Gupta28c2e732017-03-04 08:53:52 +053026sensor-gen.cpp:
27 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
28
Tom Josephd5899e72017-05-05 11:20:34 +053029inventory-sensor-gen.cpp:
30 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
31
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050032fru-read-gen.cpp:
33 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
34
Tom8485aa12016-11-22 16:46:50 +053035libapphandlerdir = ${libdir}/ipmid-providers
Matthew Barth3cff7ed2016-07-27 14:50:51 -050036libapphandler_LTLIBRARIES = libapphandler.la
37libapphandler_la_SOURCES = \
38 apphandler.cpp \
39 sensorhandler.cpp \
40 storagehandler.cpp \
41 chassishandler.cpp \
42 dcmihandler.cpp \
43 ipmisensor.cpp \
44 storageaddsel.cpp \
45 transporthandler.cpp \
46 globalhandler.cpp \
Ratan Gupta28c2e732017-03-04 08:53:52 +053047 groupext.cpp \
Tom Josephbe703f72017-03-09 12:34:35 +053048 sensor-gen.cpp \
Tom Josephd5899e72017-05-05 11:20:34 +053049 utils.cpp \
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050050 inventory-sensor-gen.cpp \
Tom Joseph6b7a1432017-05-19 10:43:36 +053051 fru-read-gen.cpp \
Marri Devender Rao7d9157e2017-07-01 16:11:40 -050052 selutility.cpp \
Marri Devender Rao0acf0572017-07-03 12:25:47 -050053 ipmi_fru_info_area.cpp \
54 read_fru_data.cpp
Ratan Gupta28c2e732017-03-04 08:53:52 +053055
Andrew Geisslera6e3a302017-05-31 19:34:00 -050056libapphandler_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 +053057libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050058
Tom8485aa12016-11-22 16:46:50 +053059libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053060libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
61libsysintfcmds_la_SOURCES = \
Andrew Geissler12866372017-03-21 22:58:28 -050062 systemintfcmds.cpp \
Andrew Geissler1b9d4e52017-03-21 15:04:05 -050063 host-interface.cpp \
Andrew Geissler83159702017-04-03 13:31:13 -050064 utils.cpp \
65 timer.cpp
Andrew Geissler12866372017-03-21 22:58:28 -050066libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050067 $(libmapper_LIBS) \
68 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -050069 $(PHOSPHOR_LOGGING_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050070 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -050071libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
72 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050073 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler12866372017-03-21 22:58:28 -050074 $(PHOSPHOR_LOGGING_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050075
Patrick Williams37af7332016-09-02 21:21:42 -050076nobase_include_HEADERS = \
77 host-ipmid/ipmid-api.h
Matthew Barth3cff7ed2016-07-27 14:50:51 -050078
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053079# Forcing the build of self and then subdir
80SUBDIRS = . test softoff