blob: 28469897706767c0d8cad5693b412da31e2ba9a8 [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 \
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +05308 settings.cpp \
9 host-cmd-manager.cpp \
10 timer.cpp \
Peter Hanson4a589852017-06-07 17:40:45 -070011 utils.cpp \
12 oemrouter.cpp
Matthew Barth3cff7ed2016-07-27 14:50:51 -050013nodist_ipmid_SOURCES = ipmiwhitelist.cpp
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050014
Vernon Mauery02484842018-07-24 09:15:38 -070015libipmi20_BUILT_LIST = \
Tom Josepha9fbff42018-01-22 14:59:09 +053016 sensor-gen.cpp \
17 inventory-sensor-gen.cpp \
18 fru-read-gen.cpp \
19 channel-gen.cpp
20
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050021BUILT_SOURCES = \
22 ipmiwhitelist.cpp \
Vernon Mauery02484842018-07-24 09:15:38 -070023 $(libipmi20_BUILT_LIST)
Tom Josepha9fbff42018-01-22 14:59:09 +053024
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050025
Ratan Gupta28c2e732017-03-04 08:53:52 +053026CLEANFILES = $(BUILT_SOURCES)
Patrick Williams686df742016-09-02 17:52:59 -050027
Matthew Barth3cff7ed2016-07-27 14:50:51 -050028#TODO - Make this path a configure option (bitbake parameter)
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +053029ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \
30 $(PHOSPHOR_LOGGING_CFLAGS) \
31 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050032ipmid_LDFLAGS = \
33 $(SYSTEMD_LIBS) \
34 $(libmapper_LIBS) \
35 $(LIBADD_DLOPEN) \
36 $(PHOSPHOR_LOGGING_LIBS) \
37 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
38 -export-dynamic
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +053039
Patrick Williams686df742016-09-02 17:52:59 -050040# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
41# selective list of symbols.
42
Patrick Williams686df742016-09-02 17:52:59 -050043ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050044 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050045
Ratan Gupta28c2e732017-03-04 08:53:52 +053046sensor-gen.cpp:
47 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
48
Tom Josephd5899e72017-05-05 11:20:34 +053049inventory-sensor-gen.cpp:
50 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
51
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050052fru-read-gen.cpp:
53 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
54
Patrick Venturec01edf22017-12-22 14:03:06 -080055channel-gen.cpp:
56 $(AM_V_GEN)@CHANNELGEN@ -o $(top_builddir) generate-cpp
57
Vernon Mauery02484842018-07-24 09:15:38 -070058libipmi20dir = ${libdir}/ipmid-providers
59libipmi20_LTLIBRARIES = libipmi20.la
60libipmi20_la_SOURCES = \
Patrick Venturec7c1c3c2017-11-15 14:29:18 -080061 net.cpp \
Patrick Venture5794fcf2017-10-26 11:11:14 -070062 app/channel.cpp \
Patrick Venture5e6ac712017-10-25 12:16:19 -070063 app/watchdog.cpp \
William A. Kennington III52575252018-02-09 15:54:56 -080064 app/watchdog_service.cpp \
Matthew Barth3cff7ed2016-07-27 14:50:51 -050065 apphandler.cpp \
66 sensorhandler.cpp \
67 storagehandler.cpp \
68 chassishandler.cpp \
69 dcmihandler.cpp \
70 ipmisensor.cpp \
71 storageaddsel.cpp \
72 transporthandler.cpp \
73 globalhandler.cpp \
Ratan Gupta28c2e732017-03-04 08:53:52 +053074 groupext.cpp \
Tom Josephd5899e72017-05-05 11:20:34 +053075 utils.cpp \
Marri Devender Rao7d9157e2017-07-01 16:11:40 -050076 selutility.cpp \
Marri Devender Rao0acf0572017-07-03 12:25:47 -050077 ipmi_fru_info_area.cpp \
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050078 read_fru_data.cpp \
Tom Josepha9fbff42018-01-22 14:59:09 +053079 sensordatahandler.cpp \
Vernon Mauery02484842018-07-24 09:15:38 -070080 $(libipmi20_BUILT_LIST)
Ratan Gupta28c2e732017-03-04 08:53:52 +053081
Emily Shafferc07e72c2018-06-18 10:37:31 -070082@CODE_COVERAGE_RULES@
83
84check_PROGRAMS =
85XFAIL_TESTS =
86
87TESTS = $(check_PROGRAMS)
88
Vernon Mauery02484842018-07-24 09:15:38 -070089libipmi20_la_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) \
90 $(PHOSPHOR_LOGGING_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) -lstdc++fs \
91 -version-info 0:0:0 -shared
92libipmi20_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) \
93 $(PHOSPHOR_LOGGING_CFLAGS) \
94 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050095
Tom8485aa12016-11-22 16:46:50 +053096libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053097libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
98libsysintfcmds_la_SOURCES = \
Andrew Geissler12866372017-03-21 22:58:28 -050099 systemintfcmds.cpp \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +0530100 host-interface.cpp
Andrew Geissler12866372017-03-21 22:58:28 -0500101libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500102 $(libmapper_LIBS) \
103 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -0500104 $(PHOSPHOR_LOGGING_LIBS) \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +0530105 $(SDBUSPLUS_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500106 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -0500107libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
108 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500109 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +0530110 $(PHOSPHOR_LOGGING_CFLAGS) \
111 $(SDBUSPLUS_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500112
Patrick Williams37af7332016-09-02 21:21:42 -0500113nobase_include_HEADERS = \
Vishwanatha Subbanna6e8979d2017-07-13 16:48:20 +0530114 host-ipmid/ipmid-api.h \
115 host-ipmid/ipmid-host-cmd.hpp \
Peter Hanson4a589852017-06-07 17:40:45 -0700116 host-ipmid/ipmid-host-cmd-utils.hpp \
117 host-ipmid/oemopenbmc.hpp \
118 host-ipmid/oemrouter.hpp
Matthew Barth3cff7ed2016-07-27 14:50:51 -0500119
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +0530120# Forcing the build of self and then subdir
121SUBDIRS = . test softoff