blob: b684c4a4acf503db15c75c82eff3c94b9e331484 [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 Bishop49aefb32016-10-19 11:54:14 -040017 manager.cpp
Brad Bishop03f4cd92017-02-03 15:17:21 -050018libmanagercommon_la_LIBADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS)
19libmanagercommon_la_CFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERACES_CFLAGS)
Brad Bishop64d994a2016-10-31 10:24:27 -050020
Brad Bishopa6fcd562017-02-03 11:00:27 -050021libmanager_la_SOURCES = \
22 extra_ifaces.cpp \
23 generated.cpp
24libmanager_la_LIBADD = libmanagercommon.la $(SDBUSPLUS_LIBS)
Brad Bishop1a886e32016-11-11 16:02:10 -050025
Brad Bishopa6fcd562017-02-03 11:00:27 -050026clean-local: clean-extra
27
28generated.cpp:
29 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
Brad Bishop1a886e32016-11-11 16:02:10 -050030
Brad Bishop74e52bc2016-10-31 13:12:04 -050031SUBDIRS = . test
Brad Bishopa6fcd562017-02-03 11:00:27 -050032
33-include Makefile.extra