Brad Bishop | 83c4349 | 2017-05-22 22:04:03 -0400 | [diff] [blame] | 1 | include $(top_srcdir)/vars.mk |
| 2 | |
| 3 | AM_CPPFLAGS = -iquote$(top_srcdir)/src |
| 4 | gtest_cflags = $(PTHREAD_CFLAGS) |
| 5 | gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS) |
| 6 | |
| 7 | TEMPLATESEARCH+=${srcdir}/templates |
| 8 | |
| 9 | check_PROGRAMS = |
| 10 | BUILT_SOURCES = |
| 11 | CLEANFILES = |
| 12 | |
| 13 | TESTS = $(check_PROGRAMS) |
Brad Bishop | b604480 | 2017-05-07 23:14:57 -0400 | [diff] [blame^] | 14 | |
| 15 | check_PROGRAMS += pathgentest |
| 16 | pathgentest_SOURCES = \ |
| 17 | pathgentest.cpp |
| 18 | pathgentest_CXXFLAGS = \ |
| 19 | $(gtest_cflags) |
| 20 | pathgentest_LDFLAGS = \ |
| 21 | $(OESDK_TESTCASE_FLAGS) |
| 22 | pathgentest_LDADD = \ |
| 23 | ${gtest_ldadd} |
| 24 | |
| 25 | BUILT_SOURCES += pathgentest.hpp |
| 26 | CLEANFILES += pathgentest.hpp |
| 27 | |
| 28 | PATH_TEST_GEN_DEPS = \ |
| 29 | templates/pathgentest.mako.hpp \ |
| 30 | yaml/pathgentest |
| 31 | |
| 32 | pathgentest.hpp: $(PDMGEN) $(PATH_TEST_GEN_DEPS) |
| 33 | $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ |
| 34 | -t pathgentest.mako.hpp \ |
| 35 | -p "${TEMPLATESEARCH}" \ |
| 36 | -d yaml/pathgentest \ |
| 37 | -o $(builddir)/$@ \ |
| 38 | generate-cpp |