Andrew Jeffery | 2277804 | 2017-01-13 22:37:26 +1030 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
Suraj Jitindar Singh | ddf0edb | 2017-03-28 10:50:40 +1100 | [diff] [blame] | 2 | sbin_PROGRAMS = mboxd mboxctl |
Andrew Jeffery | 2277804 | 2017-01-13 22:37:26 +1030 | [diff] [blame] | 3 | |
Andrew Jeffery | 41f211b | 2017-04-12 14:08:03 +0930 | [diff] [blame] | 4 | mboxd_SOURCES = mboxd.c common.c mboxd_dbus.c mboxd_flash.c mboxd_lpc.c mboxd_msg.c mboxd_windows.c mtd.c |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 5 | mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS) |
| 6 | mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS) |
Suraj Jitindar Singh | ddf0edb | 2017-03-28 10:50:40 +1100 | [diff] [blame] | 7 | |
| 8 | mboxctl_SOURCES = mboxctl.c |
| 9 | mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS) |
| 10 | mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS) |
Andrew Jeffery | 65e2162 | 2017-04-12 20:25:31 +0930 | [diff] [blame] | 11 | |
| 12 | @CODE_COVERAGE_RULES@ |
| 13 | |
| 14 | AM_LIBS = $(CODE_COVERAGE_LIBS) |
| 15 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) |
| 16 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
Andrew Jeffery | 62af1ba | 2017-04-24 13:36:46 +0930 | [diff] [blame] | 17 | |
| 18 | test_sanity_SOURCES = test/sanity.c |
| 19 | |
Andrew Jeffery | 0484c75 | 2017-04-12 14:20:18 +0930 | [diff] [blame] | 20 | test_copy_flash_SOURCES = test/copy_flash.c mboxd_flash.c common.c mtd.c test/tmpf.c |
| 21 | |
Andrew Jeffery | f37ae02 | 2017-04-12 14:21:37 +0930 | [diff] [blame] | 22 | test_erase_flash_SOURCES = test/erase_flash.c mboxd_flash.c common.c test/tmpf.c |
| 23 | |
Andrew Jeffery | 26b3567 | 2017-04-12 14:22:25 +0930 | [diff] [blame] | 24 | test_write_flash_SOURCES = test/write_flash.c mboxd_flash.c common.c test/tmpf.c |
| 25 | |
Andrew Jeffery | c1e7db3 | 2017-04-12 14:36:10 +0930 | [diff] [blame] | 26 | TEST_MBOX_SRCS = mboxd_msg.c mboxd_windows.c mboxd_lpc.c mboxd_flash.c common.c |
| 27 | TEST_MOCK_SRCS = test/tmpf.c test/mbox.c test/system.c |
| 28 | |
| 29 | test_get_mbox_info_v2_SOURCES = test/get_mbox_info_v2.c \ |
| 30 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 31 | |
Andrew Jeffery | 16be9f6 | 2017-04-12 14:36:49 +0930 | [diff] [blame] | 32 | test_reset_state_SOURCES = test/reset_state.c \ |
| 33 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 34 | |
Andrew Jeffery | 182d4fe | 2017-04-12 14:39:24 +0930 | [diff] [blame^] | 35 | test_get_flash_info_v2_SOURCES = test/get_flash_info_v2.c \ |
| 36 | $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) |
| 37 | |
Andrew Jeffery | 0484c75 | 2017-04-12 14:20:18 +0930 | [diff] [blame] | 38 | check_PROGRAMS = test/sanity \ |
Andrew Jeffery | c1e7db3 | 2017-04-12 14:36:10 +0930 | [diff] [blame] | 39 | test/copy_flash \ |
| 40 | test/erase_flash \ |
| 41 | test/write_flash \ |
Andrew Jeffery | 16be9f6 | 2017-04-12 14:36:49 +0930 | [diff] [blame] | 42 | test/get_mbox_info_v2 \ |
Andrew Jeffery | 182d4fe | 2017-04-12 14:39:24 +0930 | [diff] [blame^] | 43 | test/reset_state \ |
| 44 | test/get_flash_info_v2 |
Andrew Jeffery | 62af1ba | 2017-04-24 13:36:46 +0930 | [diff] [blame] | 45 | |
| 46 | TESTS = $(check_PROGRAMS) |