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 | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 2 | CLEANFILES=$(BUILT_SOURCES) |
| 3 | |
| 4 | AM_CPPFLAGS = -iquote$(top_srcdir) |
| 5 | |
Brad Bishop | 624827a | 2016-10-31 13:15:10 -0500 | [diff] [blame] | 6 | check_PROGRAMS = |
| 7 | noinst_PROGRAMS = phosphor-inventory-test |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 8 | noinst_LTLIBRARIES = libtest.la |
Brad Bishop | 49aefb3 | 2016-10-19 11:54:14 -0400 | [diff] [blame] | 9 | |
Brad Bishop | 783d1f9 | 2018-12-11 16:17:57 -0500 | [diff] [blame] | 10 | TESTS = ${check_PROGRAMS} |
| 11 | |
Brad Bishop | 02bdbe7 | 2018-12-13 11:50:34 -0500 | [diff] [blame] | 12 | types_test_SOURCES = types_test.cpp |
| 13 | types_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS} |
| 14 | types_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} |
| 15 | types_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} |
| 16 | check_PROGRAMS += types-test |
| 17 | |
Brad Bishop | 6826840 | 2018-12-13 11:52:42 -0500 | [diff] [blame] | 18 | utils_test_SOURCES = utils_test.cpp |
| 19 | utils_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS} |
| 20 | utils_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} |
| 21 | utils_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} |
| 22 | check_PROGRAMS += utils-test |
| 23 | |
Brad Bishop | ca2a841 | 2018-12-13 12:35:35 -0500 | [diff] [blame] | 24 | serialize_test_SOURCES = serialize_test.cpp |
| 25 | serialize_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS} |
| 26 | serialize_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} |
| 27 | serialize_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} |
| 28 | check_PROGRAMS += serialize-test |
| 29 | |
Brad Bishop | 9cc42ab | 2018-12-12 16:36:51 -0500 | [diff] [blame^] | 30 | interface_ops_test_SOURCES = interface_ops_test.cpp |
| 31 | interface_ops_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS} |
| 32 | interface_ops_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} |
| 33 | interface_ops_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} |
| 34 | check_PROGRAMS += interface-ops-test |
| 35 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 36 | extra_yamldir=$(top_srcdir)/example/extra_interfaces.d |
| 37 | |
| 38 | phosphor_inventory_test_SOURCES = test.cpp |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 39 | phosphor_inventory_test_LDADD = \ |
| 40 | libtest.la |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 41 | $(SDBSUPLUS_LIBS) \ |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 42 | $(PTHREAD_LIBS) |
| 43 | phosphor_inventory_test_CXXFLAGS = \ |
| 44 | $(SDBUSPLUS_CFLAGS) \ |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 45 | $(PTHREAD_CFLAGS) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 46 | |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 47 | libtest_la_LDFLAGS = -static |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 48 | libtest_la_SOURCES = \ |
| 49 | extra_ifaces.cpp \ |
| 50 | generated.cpp |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 51 | libtest_la_LIBADD = \ |
| 52 | $(top_builddir)/libmanagercommon.la \ |
| 53 | $(SDBUSPLUS_LIBS) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 54 | |
| 55 | clean-local: clean-extra |
| 56 | |
| 57 | generated.cpp: |
| 58 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp |
| 59 | |
Deepak Kodihalli | f7b0399 | 2017-08-04 11:25:41 -0500 | [diff] [blame] | 60 | gen_serialization.hpp: |
| 61 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-serialization |
| 62 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 63 | -include Makefile.extra |