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} |
Brad Bishop | a248550 | 2019-04-15 15:59:28 -0400 | [diff] [blame] | 26 | serialize_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} -lstdc++fs |
Brad Bishop | ca2a841 | 2018-12-13 12:35:35 -0500 | [diff] [blame] | 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 | 12ea1c5 | 2018-12-13 12:39:06 -0500 | [diff] [blame] | 36 | manager_test_SOURCES = manager_test.cpp |
| 37 | manager_test_CFLAGS = ${GTEST_CFLAGS} ${GMOCK_CFLAGS} |
| 38 | manager_test_LDADD = ${GTEST_LIBS} ${GMOCK_LIBS} |
| 39 | manager_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} |
| 40 | check_PROGRAMS += manager-test |
| 41 | |
Matt Spinler | 99e66a0 | 2019-03-06 14:11:22 -0600 | [diff] [blame] | 42 | associations_test_SOURCES = associations_test.cpp |
| 43 | associations_test_CFLAGS = \ |
| 44 | ${GTEST_CFLAGS} ${GMOCK_CFLAGS} $(SDBUSPLUS_CFLAGS) \ |
| 45 | $(PHOSPHOR_DBUS_INTERACES_CFLAGS) |
| 46 | associations_test_LDADD = \ |
| 47 | ${GTEST_LIBS} ${GMOCK_LIBS} ${SDBUSPLUS_LIBS} -lstdc++fs \ |
| 48 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 49 | $(top_builddir)/association_manager.o |
| 50 | |
| 51 | associations_test_LDFLAGS = ${OESDK_TESTCASE_FLAGS} |
| 52 | check_PROGRAMS += associations-test |
| 53 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 54 | extra_yamldir=$(top_srcdir)/example/extra_interfaces.d |
| 55 | |
| 56 | phosphor_inventory_test_SOURCES = test.cpp |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 57 | phosphor_inventory_test_LDADD = \ |
| 58 | libtest.la |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 59 | $(SDBSUPLUS_LIBS) \ |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 60 | $(PTHREAD_LIBS) |
| 61 | phosphor_inventory_test_CXXFLAGS = \ |
| 62 | $(SDBUSPLUS_CFLAGS) \ |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 63 | $(PTHREAD_CFLAGS) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 64 | |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 65 | libtest_la_LDFLAGS = -static |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 66 | libtest_la_SOURCES = \ |
| 67 | extra_ifaces.cpp \ |
| 68 | generated.cpp |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 69 | libtest_la_LIBADD = \ |
| 70 | $(top_builddir)/libmanagercommon.la \ |
| 71 | $(SDBUSPLUS_LIBS) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 72 | |
| 73 | clean-local: clean-extra |
| 74 | |
| 75 | generated.cpp: |
| 76 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp |
| 77 | |
Deepak Kodihalli | f7b0399 | 2017-08-04 11:25:41 -0500 | [diff] [blame] | 78 | gen_serialization.hpp: |
| 79 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-serialization |
| 80 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 81 | -include Makefile.extra |