Deepak Kodihalli | f7b0399 | 2017-08-04 11:25:41 -0500 | [diff] [blame] | 1 | BUILT_SOURCES=generated.cpp extra_ifaces.cpp gen_serialization.hpp |
Brad Bishop | c716635 | 2016-11-12 21:38:41 -0500 | [diff] [blame] | 2 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 3 | CLEANFILES=$(BUILT_SOURCES) |
Brad Bishop | 1a886e3 | 2016-11-11 16:02:10 -0500 | [diff] [blame] | 4 | |
Patrick Venture | 2ed0fd1 | 2019-03-28 11:12:17 -0700 | [diff] [blame] | 5 | bin_PROGRAMS = phosphor-inventory |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 6 | noinst_LTLIBRARIES = libmanagercommon.la libmanager.la |
| 7 | |
| 8 | extra_yamldir=$(YAML_PATH)/extra_interfaces.d |
Tom Joseph | f22bf82 | 2017-08-01 23:02:55 +0530 | [diff] [blame] | 9 | base_yamldir=$(YAML_PATH) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 10 | |
Brad Bishop | d446835 | 2016-10-31 13:20:02 -0500 | [diff] [blame] | 11 | phosphor_inventory_SOURCES = app.cpp |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 12 | phosphor_inventory_LDADD = libmanager.la $(SDBUSPLUS_LIBS) |
Andrew Geissler | d6819c9 | 2018-08-27 10:34:07 -0700 | [diff] [blame] | 13 | phosphor_inventory_CXXFLAGS = $(SDBUSPLUS_CFLAGS) -flto |
Brad Bishop | d446835 | 2016-10-31 13:20:02 -0500 | [diff] [blame] | 14 | |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 15 | libmanagercommon_la_LDFLAGS = -static |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 16 | libmanagercommon_la_SOURCES = \ |
Brad Bishop | 0237971 | 2017-01-31 22:24:27 -0500 | [diff] [blame] | 17 | errors.cpp \ |
Brad Bishop | c1f4798 | 2017-02-09 01:27:38 -0500 | [diff] [blame] | 18 | functor.cpp \ |
Brad Bishop | 49aefb3 | 2016-10-19 11:54:14 -0400 | [diff] [blame] | 19 | manager.cpp |
Matt Spinler | 852db67 | 2019-03-06 13:46:14 -0600 | [diff] [blame] | 20 | |
| 21 | if CREATE_INV_ASSOCIATIONS |
| 22 | libmanagercommon_la_SOURCES += association_manager.cpp |
| 23 | endif |
| 24 | |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 25 | libmanagercommon_la_LIBADD = \ |
| 26 | $(SDBUSPLUS_LIBS) \ |
| 27 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Deepak Kodihalli | 6620e98 | 2017-08-05 13:09:54 -0500 | [diff] [blame] | 28 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 29 | -lstdc++fs |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 30 | libmanagercommon_la_CXXFLAGS = \ |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 31 | $(SDBUSPLUS_CFLAGS) \ |
| 32 | $(PHOSPHOR_DBUS_INTERACES_CFLAGS) \ |
| 33 | $(PHOSPHOR_LOGGING_CFLAGS) |
Brad Bishop | 64d994a | 2016-10-31 10:24:27 -0500 | [diff] [blame] | 34 | |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 35 | libmanager_la_LDFLAGS = -static |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 36 | libmanager_la_SOURCES = \ |
| 37 | extra_ifaces.cpp \ |
| 38 | generated.cpp |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 39 | libmanager_la_LIBADD = \ |
| 40 | libmanagercommon.la \ |
| 41 | $(SDBUSPLUS_LIBS) |
Brad Bishop | 1a886e3 | 2016-11-11 16:02:10 -0500 | [diff] [blame] | 42 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 43 | clean-local: clean-extra |
| 44 | |
Brad Bishop | 834989f | 2017-02-06 12:08:20 -0500 | [diff] [blame] | 45 | if IFACES_PATH |
| 46 | PIMGEN_ARGS=-i $(IFACES_PATH) |
| 47 | endif |
| 48 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 49 | generated.cpp: |
Deepak Kodihalli | f7b0399 | 2017-08-04 11:25:41 -0500 | [diff] [blame] | 50 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d \ |
Matthew Barth | 979eb59 | 2018-10-05 15:29:26 -0500 | [diff] [blame] | 51 | $(base_yamldir) -o $(builddir) -b $(BUSNAME) generate-cpp |
Deepak Kodihalli | f7b0399 | 2017-08-04 11:25:41 -0500 | [diff] [blame] | 52 | |
| 53 | gen_serialization.hpp: |
| 54 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py $(PIMGEN_ARGS) -d \ |
Matthew Barth | 979eb59 | 2018-10-05 15:29:26 -0500 | [diff] [blame] | 55 | $(base_yamldir) -o $(builddir) -b $(BUSNAME) \ |
| 56 | generate-serialization |
Brad Bishop | 1a886e3 | 2016-11-11 16:02:10 -0500 | [diff] [blame] | 57 | |
Brad Bishop | 74e52bc | 2016-10-31 13:12:04 -0500 | [diff] [blame] | 58 | SUBDIRS = . test |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 59 | |
| 60 | -include Makefile.extra |