blob: 572a9941b288f837c5ed6785fb61333d493cade6 [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 Bishopfa51da72017-01-19 11:06:51 -050016 events.cpp \
Brad Bishop02379712017-01-31 22:24:27 -050017 errors.cpp \
Brad Bishop49aefb32016-10-19 11:54:14 -040018 manager.cpp
Brad Bishop03f4cd92017-02-03 15:17:21 -050019libmanagercommon_la_LIBADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS)
20libmanagercommon_la_CFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERACES_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
29generated.cpp:
30 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
Brad Bishop1a886e32016-11-11 16:02:10 -050031
Brad Bishop74e52bc2016-10-31 13:12:04 -050032SUBDIRS = . test
Brad Bishopa6fcd562017-02-03 11:00:27 -050033
34-include Makefile.extra