blob: 81903207c84265f23c27701b2850435391add730 [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
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050014BUILT_SOURCES = \
15 ipmiwhitelist.cpp \
16 sensor-gen.cpp \
17 inventory-sensor-gen.cpp \
Patrick Venturec01edf22017-12-22 14:03:06 -080018 fru-read-gen.cpp \
19 channel-gen.cpp
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050020
Ratan Gupta28c2e732017-03-04 08:53:52 +053021CLEANFILES = $(BUILT_SOURCES)
Patrick Williams686df742016-09-02 17:52:59 -050022
Matthew Barth3cff7ed2016-07-27 14:50:51 -050023#TODO - Make this path a configure option (bitbake parameter)
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +053024ipmid_CPPFLAGS = -DHOST_IPMI_LIB_PATH=\"/usr/lib/host-ipmid/\" \
25 $(PHOSPHOR_LOGGING_CFLAGS) \
26 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Deepak Kodihalli18aa0442017-07-21 07:07:09 -050027ipmid_LDFLAGS = \
28 $(SYSTEMD_LIBS) \
29 $(libmapper_LIBS) \
30 $(LIBADD_DLOPEN) \
31 $(PHOSPHOR_LOGGING_LIBS) \
32 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
33 -export-dynamic
Vishwanatha Subbannaac149a92017-07-11 18:16:50 +053034
Patrick Williams686df742016-09-02 17:52:59 -050035# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
36# selective list of symbols.
37
Patrick Williams686df742016-09-02 17:52:59 -050038ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF)
Patrick Williams37af7332016-09-02 21:21:42 -050039 $(SHELL) $^ > $@
Patrick Williams686df742016-09-02 17:52:59 -050040
Ratan Gupta28c2e732017-03-04 08:53:52 +053041sensor-gen.cpp:
42 $(AM_V_GEN)@SENSORGEN@ -o $(top_builddir) generate-cpp
43
Tom Josephd5899e72017-05-05 11:20:34 +053044inventory-sensor-gen.cpp:
45 $(AM_V_GEN)@INVSENSORGEN@ -o $(top_builddir) generate-cpp
46
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050047fru-read-gen.cpp:
48 $(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
49
Patrick Venturec01edf22017-12-22 14:03:06 -080050channel-gen.cpp:
51 $(AM_V_GEN)@CHANNELGEN@ -o $(top_builddir) generate-cpp
52
Tom8485aa12016-11-22 16:46:50 +053053libapphandlerdir = ${libdir}/ipmid-providers
Matthew Barth3cff7ed2016-07-27 14:50:51 -050054libapphandler_LTLIBRARIES = libapphandler.la
55libapphandler_la_SOURCES = \
Patrick Venturec7c1c3c2017-11-15 14:29:18 -080056 net.cpp \
Patrick Venture5794fcf2017-10-26 11:11:14 -070057 app/channel.cpp \
Patrick Venture5e6ac712017-10-25 12:16:19 -070058 app/watchdog.cpp \
Matthew Barth3cff7ed2016-07-27 14:50:51 -050059 apphandler.cpp \
60 sensorhandler.cpp \
61 storagehandler.cpp \
62 chassishandler.cpp \
63 dcmihandler.cpp \
64 ipmisensor.cpp \
65 storageaddsel.cpp \
66 transporthandler.cpp \
67 globalhandler.cpp \
Ratan Gupta28c2e732017-03-04 08:53:52 +053068 groupext.cpp \
Tom Josephbe703f72017-03-09 12:34:35 +053069 sensor-gen.cpp \
Tom Josephd5899e72017-05-05 11:20:34 +053070 utils.cpp \
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050071 inventory-sensor-gen.cpp \
Tom Joseph6b7a1432017-05-19 10:43:36 +053072 fru-read-gen.cpp \
Marri Devender Rao7d9157e2017-07-01 16:11:40 -050073 selutility.cpp \
Marri Devender Rao0acf0572017-07-03 12:25:47 -050074 ipmi_fru_info_area.cpp \
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050075 read_fru_data.cpp \
76 sensordatahandler.cpp
Ratan Gupta28c2e732017-03-04 08:53:52 +053077
Andrew Geisslera6e3a302017-05-31 19:34:00 -050078libapphandler_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 +053079libapphandler_la_CXXFLAGS = $(SYSTEMD_CFLAGS) $(libmapper_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Matthew Barth3cff7ed2016-07-27 14:50:51 -050080
Tom8485aa12016-11-22 16:46:50 +053081libsysintfcmdsdir = ${libdir}/ipmid-providers
Tom9e5232e2016-11-07 12:14:51 +053082libsysintfcmds_LTLIBRARIES = libsysintfcmds.la
83libsysintfcmds_la_SOURCES = \
Andrew Geissler12866372017-03-21 22:58:28 -050084 systemintfcmds.cpp \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +053085 host-interface.cpp
Andrew Geissler12866372017-03-21 22:58:28 -050086libsysintfcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050087 $(libmapper_LIBS) \
88 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Andrew Geissler12866372017-03-21 22:58:28 -050089 $(PHOSPHOR_LOGGING_LIBS) \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +053090 $(SDBUSPLUS_LIBS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050091 -version-info 0:0:0 -shared
Andrew Geissler12866372017-03-21 22:58:28 -050092libsysintfcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
93 $(libmapper_CFLAGS) \
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050094 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Vishwanatha Subbanna3eb117a2017-07-12 16:13:49 +053095 $(PHOSPHOR_LOGGING_CFLAGS) \
96 $(SDBUSPLUS_CFLAGS)
Andrew Geisslerdd2c6fd2017-03-16 15:53:20 -050097
Patrick Williams37af7332016-09-02 21:21:42 -050098nobase_include_HEADERS = \
Vishwanatha Subbanna6e8979d2017-07-13 16:48:20 +053099 host-ipmid/ipmid-api.h \
100 host-ipmid/ipmid-host-cmd.hpp \
101 host-ipmid/ipmid-host-cmd-utils.hpp
Matthew Barth3cff7ed2016-07-27 14:50:51 -0500102
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +0530103# Forcing the build of self and then subdir
104SUBDIRS = . test softoff