blob: 1e7ed653981104434a9130b23bc54b4e96d6e5f6 [file] [log] [blame]
Brad Bishopa6fcd562017-02-03 11:00:27 -05001BUILT_SOURCES=generated.cpp extra_ifaces.cpp
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
9
Brad Bishopd4468352016-10-31 13:20:02 -050010phosphor_inventory_SOURCES = app.cpp
11phosphor_inventory_LDADD = libmanager.la
Brad Bishopa6fcd562017-02-03 11:00:27 -050012phosphor_inventory_LDFLAGS = $(SDBUSPLUS_LIBS)
13phosphor_inventory_CFLAGS = $(SDBUSPLUS_CFLAGS)
Brad Bishopd4468352016-10-31 13:20:02 -050014
Brad Bishopa6fcd562017-02-03 11:00:27 -050015libmanagercommon_la_SOURCES = \
Brad Bishop02379712017-01-31 22:24:27 -050016 errors.cpp \
Brad Bishopc1f47982017-02-09 01:27:38 -050017 functor.cpp \
Brad Bishop49aefb32016-10-19 11:54:14 -040018 manager.cpp
Brad Bishop79ccaf72017-01-22 16:00:50 -050019libmanagercommon_la_LIBADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) $(PHOSPHOR_LOGGING_LIBS)
20libmanagercommon_la_CFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERACES_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
Brad Bishop64d994a2016-10-31 10:24:27 -050021
Brad Bishopa6fcd562017-02-03 11:00:27 -050022libmanager_la_SOURCES = \
23 extra_ifaces.cpp \
24 generated.cpp
25libmanager_la_LIBADD = libmanagercommon.la $(SDBUSPLUS_LIBS)
Brad Bishop1a886e32016-11-11 16:02:10 -050026
Brad Bishopa6fcd562017-02-03 11:00:27 -050027clean-local: clean-extra
28
Brad Bishop834989f2017-02-06 12:08:20 -050029if IFACES_PATH
30PIMGEN_ARGS=-i $(IFACES_PATH)
31endif
32
Brad Bishopa6fcd562017-02-03 11:00:27 -050033generated.cpp:
Brad Bishop834989f2017-02-06 12:08:20 -050034 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
Brad Bishop1a886e32016-11-11 16:02:10 -050035
Brad Bishop74e52bc2016-10-31 13:12:04 -050036SUBDIRS = . test
Brad Bishopa6fcd562017-02-03 11:00:27 -050037
38-include Makefile.extra