blob: ce83bacc5b4ad7841a8d5dc1951a9f1d67227739 [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 Bishop02bdbe72018-12-13 11:50:34 -050012types_test_SOURCES = types_test.cpp
13types_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS}
14types_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS}
15types_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS}
16check_PROGRAMS += types-test
17
Brad Bishopa6fcd562017-02-03 11:00:27 -050018extra_yamldir=$(top_srcdir)/example/extra_interfaces.d
19
20phosphor_inventory_test_SOURCES = test.cpp
Brad Bishopef2325d2017-03-06 22:55:51 -050021phosphor_inventory_test_LDADD = \
22 libtest.la
Brad Bishop3ea767d2017-03-06 22:47:01 -050023 $(SDBSUPLUS_LIBS) \
Brad Bishopef2325d2017-03-06 22:55:51 -050024 $(PTHREAD_LIBS)
25phosphor_inventory_test_CXXFLAGS = \
26 $(SDBUSPLUS_CFLAGS) \
Brad Bishop3ea767d2017-03-06 22:47:01 -050027 $(PTHREAD_CFLAGS)
Brad Bishopa6fcd562017-02-03 11:00:27 -050028
Brad Bishopef2325d2017-03-06 22:55:51 -050029libtest_la_LDFLAGS = -static
Brad Bishopa6fcd562017-02-03 11:00:27 -050030libtest_la_SOURCES = \
31 extra_ifaces.cpp \
32 generated.cpp
Brad Bishop3ea767d2017-03-06 22:47:01 -050033libtest_la_LIBADD = \
34 $(top_builddir)/libmanagercommon.la \
35 $(SDBUSPLUS_LIBS)
Brad Bishopa6fcd562017-02-03 11:00:27 -050036
37clean-local: clean-extra
38
39generated.cpp:
40 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp
41
Deepak Kodihallif7b03992017-08-04 11:25:41 -050042gen_serialization.hpp:
43 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-serialization
44
Brad Bishopa6fcd562017-02-03 11:00:27 -050045-include Makefile.extra