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 | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 12 | extra_yamldir=$(top_srcdir)/example/extra_interfaces.d |
| 13 | |
| 14 | phosphor_inventory_test_SOURCES = test.cpp |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 15 | phosphor_inventory_test_LDADD = \ |
| 16 | libtest.la |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 17 | $(SDBSUPLUS_LIBS) \ |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 18 | $(PTHREAD_LIBS) |
| 19 | phosphor_inventory_test_CXXFLAGS = \ |
| 20 | $(SDBUSPLUS_CFLAGS) \ |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 21 | $(PTHREAD_CFLAGS) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 22 | |
Brad Bishop | ef2325d | 2017-03-06 22:55:51 -0500 | [diff] [blame] | 23 | libtest_la_LDFLAGS = -static |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 24 | libtest_la_SOURCES = \ |
| 25 | extra_ifaces.cpp \ |
| 26 | generated.cpp |
Brad Bishop | 3ea767d | 2017-03-06 22:47:01 -0500 | [diff] [blame] | 27 | libtest_la_LIBADD = \ |
| 28 | $(top_builddir)/libmanagercommon.la \ |
| 29 | $(SDBUSPLUS_LIBS) |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 30 | |
| 31 | clean-local: clean-extra |
| 32 | |
| 33 | generated.cpp: |
| 34 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-cpp |
| 35 | |
Deepak Kodihalli | f7b0399 | 2017-08-04 11:25:41 -0500 | [diff] [blame] | 36 | gen_serialization.hpp: |
| 37 | $(AM_V_GEN)$(PYTHON) $(top_srcdir)/pimgen.py -d $(extra_yamldir)/.. -o $(builddir) generate-serialization |
| 38 | |
Brad Bishop | a6fcd56 | 2017-02-03 11:00:27 -0500 | [diff] [blame] | 39 | -include Makefile.extra |