William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 1 | @VALGRIND_CHECK_RULES@ |
| 2 | @CODE_COVERAGE_RULES@ |
| 3 | |
William A. Kennington III | ae7d4c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 4 | gtest_cppflags = $(AM_CPPFLAGS) $(GTEST_CFLAGS) $(GMOCK_CFLAGS) |
| 5 | gtest_ldadd = $(SDEVENTPLUS_LIBS) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock_main |
William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 6 | |
| 7 | check_PROGRAMS = |
| 8 | TESTS = $(check_PROGRAMS) |
| 9 | |
William A. Kennington III | 7597a08 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 10 | check_PROGRAMS += clock |
| 11 | clock_SOURCES = clock.cpp |
| 12 | clock_CPPFLAGS = $(gtest_cppflags) |
| 13 | clock_LDADD = $(gtest_ldadd) |
| 14 | |
William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 15 | check_PROGRAMS += event |
| 16 | event_SOURCES = event.cpp |
William A. Kennington III | ae7d4c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 17 | event_CPPFLAGS = $(gtest_cppflags) |
William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 18 | event_LDADD = $(gtest_ldadd) |
| 19 | |
| 20 | check_PROGRAMS += exception |
| 21 | exception_SOURCES = exception.cpp |
William A. Kennington III | ae7d4c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 22 | exception_CPPFLAGS = $(gtest_cppflags) |
William A. Kennington III | 8f90e28 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 23 | exception_LDADD = $(gtest_ldadd) |
| 24 | |
William A. Kennington III | 0a816c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 25 | check_PROGRAMS += internal_sdref |
| 26 | internal_sdref_SOURCES = internal/sdref.cpp |
| 27 | internal_sdref_CPPFLAGS = $(gtest_cppflags) |
| 28 | internal_sdref_LDADD = $(gtest_ldadd) |
William A. Kennington III | dcc08b6 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 29 | |
William A. Kennington III | feef68f | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 30 | check_PROGRAMS += internal_utils |
| 31 | internal_utils_SOURCES = internal/utils.cpp |
| 32 | internal_utils_CPPFLAGS = $(gtest_cppflags) |
| 33 | internal_utils_LDADD = $(gtest_ldadd) |
| 34 | |
William A. Kennington III | 0a816c5 | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 35 | check_PROGRAMS += source_base |
| 36 | source_base_SOURCES = source/base.cpp |
| 37 | source_base_CPPFLAGS = $(gtest_cppflags) |
| 38 | source_base_LDADD = $(gtest_ldadd) |
William A. Kennington III | e32a88e | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 39 | |
William A. Kennington III | 571fdf9 | 2018-07-22 18:16:22 -0700 | [diff] [blame] | 40 | check_PROGRAMS += source_child |
| 41 | source_child_SOURCES = source/child.cpp |
| 42 | source_child_CPPFLAGS = $(gtest_cppflags) |
| 43 | source_child_LDADD = $(gtest_ldadd) |
| 44 | |
William A. Kennington III | 5a7365c | 2018-07-22 00:22:08 -0700 | [diff] [blame] | 45 | check_PROGRAMS += source_event |
| 46 | source_event_SOURCES = source/event.cpp |
| 47 | source_event_CPPFLAGS = $(gtest_cppflags) |
| 48 | source_event_LDADD = $(gtest_ldadd) |
| 49 | |
William A. Kennington III | ce80c3f | 2018-07-22 14:59:13 -0700 | [diff] [blame] | 50 | check_PROGRAMS += source_io |
| 51 | source_io_SOURCES = source/io.cpp |
| 52 | source_io_CPPFLAGS = $(gtest_cppflags) |
| 53 | source_io_LDADD = $(gtest_ldadd) |
| 54 | |
William A. Kennington III | a3a3850 | 2018-07-22 18:15:59 -0700 | [diff] [blame] | 55 | check_PROGRAMS += source_signal |
| 56 | source_signal_SOURCES = source/signal.cpp |
| 57 | source_signal_CPPFLAGS = $(gtest_cppflags) |
| 58 | source_signal_LDADD = $(gtest_ldadd) |
| 59 | |
William A. Kennington III | e32a88e | 2018-07-17 14:40:14 -0700 | [diff] [blame] | 60 | check_PROGRAMS += source_time |
| 61 | source_time_SOURCES = source/time.cpp |
| 62 | source_time_CPPFLAGS = $(gtest_cppflags) |
| 63 | source_time_LDADD = $(gtest_ldadd) |