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