blob: ef1bf1464445ba3c9091b7d5f0319b5542018210 [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 \
11 utils.cpp
Matthew Barth3cff7ed2016-07-27 14:50:51 -050012nodist_ipmid_SOURCES = ipmiwhitelist.cpp
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050013
Tom Josepha9fbff42018-01-22 14:59:09 +053014libapphandler_BUILT_LIST = \
15 sensor-gen.cpp \
16 inventory-sensor-gen.cpp \
17 fru-read-gen.cpp \
18 channel-gen.cpp
19
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050020BUILT_SOURCES = \
21 ipmiwhitelist.cpp \
Tom Josepha9fbff42018-01-22 14:59:09 +053022 $(libapphandler_BUILT_LIST)
23
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050024
Ratan Gupta28c2e732017-03-04 08:53:52 +053025CLEANFILES = $(BUILT_SOURCES)
Patrick Williams686df742016-09-02 17:52:59 -050026
Matthew Barth3cff7ed2016-07-27 14:50:51 -050027#TODO - Make this path a configure option (bitbake parameter)
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +053028ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \
29 $(PHOSPHOR_LOGGING_CFLAGS) \
30 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050031ipmid_LDFLAGS = \
32 $(SYSTEMD_LIBS) \
33 $(libmapper_LIBS) \
34 $(LIBADD_DLOPEN) \
35 $(PHOSPHOR_LOGGING_LIBS) \
36 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
37 -export-dynamic
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +053038
Patrick Williams686df742016-09-02 17:52:59 -050039# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
40# selective list of symbols.
41
Patrick Williams686df742016-09-02 17:52:59 -050042ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050043 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050044
Ratan Gupta28c2e732017-03-04 08:53:52 +053045sensor-gen.cpp:
46 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
47
Tom Josephd5899e72017-05-05 11:20:34 +053048inventory-sensor-gen.cpp:
49 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
50
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050051fru-read-gen.cpp:
52 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
53
Patrick Venturec01edf22017-12-22 14:03:06 -080054channel-gen.cpp:
55 $(AM_V_GEN)@CHANNELGEN@ -o $(top_builddir) generate-cpp
56
Tom8485aa12016-11-22 16:46:50 +053057libapphandlerdir = ${libdir}/ipmid-providers
Matthew Barth3cff7ed2016-07-27 14:50:51 -050058libapphandler_LTLIBRARIES = libapphandler.la
59libapphandler_la_SOURCES = \
Patrick Venturec7c1c3c2017-11-15 14:29:18 -080060 net.cpp \
Patrick Venture5794fcf2017-10-26 11:11:14 -070061 app/channel.cpp \
Patrick Venture5e6ac712017-10-25 12:16:19 -070062 app/watchdog.cpp \
William A. Kennington III52575252018-02-09 15:54:56 -080063 app/watchdog_service.cpp \
Matthew Barth3cff7ed2016-07-27 14:50:51 -050064 apphandler.cpp \
65 sensorhandler.cpp \
66 storagehandler.cpp \
67 chassishandler.cpp \
68 dcmihandler.cpp \
69 ipmisensor.cpp \
70 storageaddsel.cpp \
71 transporthandler.cpp \
72 globalhandler.cpp \
Ratan Gupta28c2e732017-03-04 08:53:52 +053073 groupext.cpp \
Tom Josephd5899e72017-05-05 11:20:34 +053074 utils.cpp \
Marri Devender Rao7d9157e2017-07-01 16:11:40 -050075 selutility.cpp \
Marri Devender Rao0acf0572017-07-03 12:25:47 -050076 ipmi_fru_info_area.cpp \
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050077 read_fru_data.cpp \
Tom Josepha9fbff42018-01-22 14:59:09 +053078 sensordatahandler.cpp \
79 $(libapphandler_BUILT_LIST)
Ratan Gupta28c2e732017-03-04 08:53:52 +053080
Emily Shafferc07e72c2018-06-18 10:37:31 -070081@CODE_COVERAGE_RULES@
82
83check_PROGRAMS =
84XFAIL_TESTS =
85
86TESTS = $(check_PROGRAMS)
87
Andrew Geisslera6e3a302017-05-31 19:34:00 -050088libapphandler_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 +053089libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050090
Tom8485aa12016-11-22 16:46:50 +053091libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053092libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
93libsysintfcmds_la_SOURCES = \
Andrew Geissler12866372017-03-21 22:58:28 -050094 systemintfcmds.cpp \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +053095 host-interface.cpp
Andrew Geissler12866372017-03-21 22:58:28 -050096libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050097 $(libmapper_LIBS) \
98 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -050099 $(PHOSPHOR_LOGGING_LIBS) \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +0530100 $(SDBUSPLUS_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500101 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -0500102libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
103 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500104 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +0530105 $(PHOSPHOR_LOGGING_CFLAGS) \
106 $(SDBUSPLUS_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -0500107
Patrick Williams37af7332016-09-02 21:21:42 -0500108nobase_include_HEADERS = \
Vishwanatha Subbanna6e8979d2017-07-13 16:48:20 +0530109 host-ipmid/ipmid-api.h \
110 host-ipmid/ipmid-host-cmd.hpp \
111 host-ipmid/ipmid-host-cmd-utils.hpp
Matthew Barth3cff7ed2016-07-27 14:50:51 -0500112
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +0530113# Forcing the build of self and then subdir
114SUBDIRS = . test softoff