blob: deda4ffe22ad97b642e7430ca682eac7d22c269f [file] [log] [blame]
Brad Bishopa6fcd562017-02-03 11:00:27 -05001BUILT_SOURCES=generated.cpp extra_ifaces.cpp
2CLEANFILES=$(BUILT_SOURCES)
3
4AM_CPPFLAGS = -iquote$(top_srcdir)
5
Brad Bishop624827a2016-10-31 13:15:10 -05006check_PROGRAMS =
7noinst_PROGRAMS = phosphor-inventory-test
Brad Bishopa6fcd562017-02-03 11:00:27 -05008noinst_LTLIBRARIES = libtest.la
Brad Bishop49aefb32016-10-19 11:54:14 -04009
Brad Bishopa6fcd562017-02-03 11:00:27 -050010extra_yamldir=$(top_srcdir)/example/extra_interfaces.d
11
12phosphor_inventory_test_SOURCES = test.cpp
Brad Bishopef2325d2017-03-06 22:55:51 -050013phosphor_inventory_test_LDADD = \
14 libtest.la
Brad Bishop3ea767d2017-03-06 22:47:01 -050015 $(SDBSUPLUS_LIBS) \
Brad Bishopef2325d2017-03-06 22:55:51 -050016 $(PTHREAD_LIBS)
17phosphor_inventory_test_CXXFLAGS = \
18 $(SDBUSPLUS_CFLAGS) \
Brad Bishop3ea767d2017-03-06 22:47:01 -050019 $(PTHREAD_CFLAGS)
Brad Bishopa6fcd562017-02-03 11:00:27 -050020
Brad Bishopef2325d2017-03-06 22:55:51 -050021libtest_la_LDFLAGS = -static
Brad Bishopa6fcd562017-02-03 11:00:27 -050022libtest_la_SOURCES = \
23 extra_ifaces.cpp \
24 generated.cpp
Brad Bishop3ea767d2017-03-06 22:47:01 -050025libtest_la_LIBADD = \
26 $(top_builddir)/libmanagercommon.la \
27 $(SDBUSPLUS_LIBS)
Brad Bishopa6fcd562017-02-03 11:00:27 -050028
29clean-local: clean-extra
30
31generated.cpp:
32 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
33
34-include Makefile.extra