blob: eb951446722eb23cd68bee79653d13fef7484320 [file] [log] [blame]
Deepak Kodihallif7b03992017-08-04 11:25:41 -05001BUILT_SOURCES=generated.cpp extra_ifaces.cpp gen_serialization.hpp
Brad Bishopa6fcd562017-02-03 11:00:27 -05002CLEANFILES=$(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 Bishop783d1f92018-12-11 16:17:57 -050010TESTS = ${check_PROGRAMS}
11
Brad Bishopa6fcd562017-02-03 11:00:27 -050012extra_yamldir=$(top_srcdir)/example/extra_interfaces.d
13
14phosphor_inventory_test_SOURCES = test.cpp
Brad Bishopef2325d2017-03-06 22:55:51 -050015phosphor_inventory_test_LDADD = \
16 libtest.la
Brad Bishop3ea767d2017-03-06 22:47:01 -050017 $(SDBSUPLUS_LIBS) \
Brad Bishopef2325d2017-03-06 22:55:51 -050018 $(PTHREAD_LIBS)
19phosphor_inventory_test_CXXFLAGS = \
20 $(SDBUSPLUS_CFLAGS) \
Brad Bishop3ea767d2017-03-06 22:47:01 -050021 $(PTHREAD_CFLAGS)
Brad Bishopa6fcd562017-02-03 11:00:27 -050022
Brad Bishopef2325d2017-03-06 22:55:51 -050023libtest_la_LDFLAGS = -static
Brad Bishopa6fcd562017-02-03 11:00:27 -050024libtest_la_SOURCES = \
25 extra_ifaces.cpp \
26 generated.cpp
Brad Bishop3ea767d2017-03-06 22:47:01 -050027libtest_la_LIBADD = \
28 $(top_builddir)/libmanagercommon.la \
29 $(SDBUSPLUS_LIBS)
Brad Bishopa6fcd562017-02-03 11:00:27 -050030
31clean-local: clean-extra
32
33generated.cpp:
34 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
35
Deepak Kodihallif7b03992017-08-04 11:25:41 -050036gen_serialization.hpp:
37 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-serialization
38
Brad Bishopa6fcd562017-02-03 11:00:27 -050039-include Makefile.extra