blob: 769592dc528ea9400dbb496dd80c8e9d29292ba1 [file] [log] [blame]
Deepak Kodihallif7b03992017-08-04 11:25:41 -05001BUILT_SOURCES=generated.cpp extra_ifaces.cpp gen_serialization.hpp
Brad Bishopc7166352016-11-12 21:38:41 -05002
Brad Bishopa6fcd562017-02-03 11:00:27 -05003CLEANFILES=$(BUILT_SOURCES)
Brad Bishop1a886e32016-11-11 16:02:10 -05004
Brad Bishop73b776b2016-10-19 07:50:28 -04005sbin_PROGRAMS = phosphor-inventory
Brad Bishopa6fcd562017-02-03 11:00:27 -05006noinst_LTLIBRARIES = libmanagercommon.la libmanager.la
7
8extra_yamldir=$(YAML_PATH)/extra_interfaces.d
Tom Josephf22bf822017-08-01 23:02:55 +05309base_yamldir=$(YAML_PATH)
Brad Bishopa6fcd562017-02-03 11:00:27 -050010
Brad Bishopd4468352016-10-31 13:20:02 -050011phosphor_inventory_SOURCES = app.cpp
Brad Bishopef2325d2017-03-06 22:55:51 -050012phosphor_inventory_LDADD = libmanager.la $(SDBUSPLUS_LIBS)
13phosphor_inventory_CXXFLAGS = $(SDBUSPLUS_CFLAGS)
Brad Bishopd4468352016-10-31 13:20:02 -050014
Brad Bishopef2325d2017-03-06 22:55:51 -050015libmanagercommon_la_LDFLAGS = -static
Brad Bishopa6fcd562017-02-03 11:00:27 -050016libmanagercommon_la_SOURCES = \
Brad Bishop02379712017-01-31 22:24:27 -050017 errors.cpp \
Brad Bishopc1f47982017-02-09 01:27:38 -050018 functor.cpp \
Brad Bishop49aefb32016-10-19 11:54:14 -040019 manager.cpp
Brad Bishop3ea767d2017-03-06 22:47:01 -050020libmanagercommon_la_LIBADD = \
21 $(SDBUSPLUS_LIBS) \
22 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
23 $(PHOSPHOR_LOGGING_LIBS)
Brad Bishopef2325d2017-03-06 22:55:51 -050024libmanagercommon_la_CXXFLAGS = \
Brad Bishop3ea767d2017-03-06 22:47:01 -050025 $(SDBUSPLUS_CFLAGS) \
26 $(PHOSPHOR_DBUS_INTERACES_CFLAGS) \
27 $(PHOSPHOR_LOGGING_CFLAGS)
Brad Bishop64d994a2016-10-31 10:24:27 -050028
Brad Bishopef2325d2017-03-06 22:55:51 -050029libmanager_la_LDFLAGS = -static
Brad Bishopa6fcd562017-02-03 11:00:27 -050030libmanager_la_SOURCES = \
31 extra_ifaces.cpp \
32 generated.cpp
Brad Bishop3ea767d2017-03-06 22:47:01 -050033libmanager_la_LIBADD = \
34 libmanagercommon.la \
35 $(SDBUSPLUS_LIBS)
Brad Bishop1a886e32016-11-11 16:02:10 -050036
Brad Bishopa6fcd562017-02-03 11:00:27 -050037clean-local: clean-extra
38
Brad Bishop834989f2017-02-06 12:08:20 -050039if IFACES_PATH
40PIMGEN_ARGS=-i $(IFACES_PATH)
41endif
42
Brad Bishopa6fcd562017-02-03 11:00:27 -050043generated.cpp:
Deepak Kodihallif7b03992017-08-04 11:25:41 -050044 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d \
45 $(base_yamldir) -o $(builddir) generate-cpp
46
47gen_serialization.hpp:
48 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d \
49 $(base_yamldir) -o $(builddir) generate-serialization
Brad Bishop1a886e32016-11-11 16:02:10 -050050
Brad Bishop74e52bc2016-10-31 13:12:04 -050051SUBDIRS = . test
Brad Bishopa6fcd562017-02-03 11:00:27 -050052
53-include Makefile.extra