blob: b6871d045e45f853aaa974b5a587e9f03699375e [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 Bishop3ea767d2017-03-06 22:47:01 -050019libmanagercommon_la_LIBADD = \
20 $(SDBUSPLUS_LIBS) \
21 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
22 $(PHOSPHOR_LOGGING_LIBS)
23libmanagercommon_la_CFLAGS = \
24 $(SDBUSPLUS_CFLAGS) \
25 $(PHOSPHOR_DBUS_INTERACES_CFLAGS) \
26 $(PHOSPHOR_LOGGING_CFLAGS)
Brad Bishop64d994a2016-10-31 10:24:27 -050027
Brad Bishopa6fcd562017-02-03 11:00:27 -050028libmanager_la_SOURCES = \
29 extra_ifaces.cpp \
30 generated.cpp
Brad Bishop3ea767d2017-03-06 22:47:01 -050031libmanager_la_LIBADD = \
32 libmanagercommon.la \
33 $(SDBUSPLUS_LIBS)
Brad Bishop1a886e32016-11-11 16:02:10 -050034
Brad Bishopa6fcd562017-02-03 11:00:27 -050035clean-local: clean-extra
36
Brad Bishop834989f2017-02-06 12:08:20 -050037if IFACES_PATH
38PIMGEN_ARGS=-i $(IFACES_PATH)
39endif
40
Brad Bishopa6fcd562017-02-03 11:00:27 -050041generated.cpp:
Brad Bishop834989f2017-02-06 12:08:20 -050042 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
Brad Bishop1a886e32016-11-11 16:02:10 -050043
Brad Bishop74e52bc2016-10-31 13:12:04 -050044SUBDIRS = . test
Brad Bishopa6fcd562017-02-03 11:00:27 -050045
46-include Makefile.extra