blob: 21b8f389cc52d38861b7aa9b768f6107e43eb9ab [file] [log] [blame]
Brad Bishop1a886e32016-11-11 16:02:10 -05001EXTRAIFACES_C=@EXTRAIFACES_C@
2EXTRAIFACES_LO=@EXTRAIFACES_LO@
3BUILT_SOURCES=generated.cpp
4CLEANFILES=$(BUILT_SOURCES) $(EXTRAIFACES_C) libextra.la
5
Brad Bishop73b776b2016-10-19 07:50:28 -04006sbin_PROGRAMS = phosphor-inventory
7
Brad Bishopd4468352016-10-31 13:20:02 -05008phosphor_inventory_SOURCES = app.cpp
9phosphor_inventory_LDADD = libmanager.la
10
11noinst_LTLIBRARIES = libmanager.la
12libmanager_la_SOURCES = \
Brad Bishopadc45662016-10-28 20:00:57 -050013 xyz.openbmc_project.Inventory.Manager.cpp \
Brad Bishop789cf832016-10-22 00:47:54 -040014 generated.cpp \
Brad Bishop49aefb32016-10-19 11:54:14 -040015 manager.cpp
Brad Bishop1a886e32016-11-11 16:02:10 -050016libmanager_la_LIBADD = libextra.la
Brad Bishop64d994a2016-10-31 10:24:27 -050017
Brad Bishop1a886e32016-11-11 16:02:10 -050018# Automake does not allow autoconf substituted variables
19# in _SOURCES variables. Work around this by providing
20# our own target.
21#
22# Typically the recommendation is conditional compilation
23# but here the generated source files are completely
24# arbitrary and not known making that approach difficult.
25libextra.la: $(EXTRAIFACES_LO)
26 $(AM_V_CXXLD)$(CXXLINK) $(EXTRAIFACES_LO)
27
28$(EXTRAIFACES_C) generated.cpp:
29 $(AM_V_GEN)@PIMGEN@ -o $(top_builddir) generate-cpp
30
Brad Bishop49aefb32016-10-19 11:54:14 -040031phosphor_inventory_LDFLAGS = $(SYSTEMD_LIBS)
32phosphor_inventory_CFLAGS = $(SYSTEMD_CFLAGS)
33
Brad Bishop74e52bc2016-10-31 13:12:04 -050034SUBDIRS = . test