blob: 50dee6b9b6ba910a4187741f5874adc07f9c0c0b [file] [log] [blame]
Andrew Jeffery22778042017-01-13 22:37:26 +10301ACLOCAL_AMFLAGS = -I m4
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +11002sbin_PROGRAMS = mboxd mboxctl
Andrew Jeffery22778042017-01-13 22:37:26 +10303
Andrew Jeffery41f211b2017-04-12 14:08:03 +09304mboxd_SOURCES = mboxd.c common.c mboxd_dbus.c mboxd_flash.c mboxd_lpc.c mboxd_msg.c mboxd_windows.c mtd.c
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +11005mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS)
6mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +11007
8mboxctl_SOURCES = mboxctl.c
9mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS)
10mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Andrew Jeffery65e21622017-04-12 20:25:31 +093011
12@CODE_COVERAGE_RULES@
13
14AM_LIBS = $(CODE_COVERAGE_LIBS)
15AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
16AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093017
18test_sanity_SOURCES = test/sanity.c
19
Andrew Jeffery0484c752017-04-12 14:20:18 +093020test_copy_flash_SOURCES = test/copy_flash.c mboxd_flash.c common.c mtd.c test/tmpf.c
21
Andrew Jefferyf37ae022017-04-12 14:21:37 +093022test_erase_flash_SOURCES = test/erase_flash.c mboxd_flash.c common.c test/tmpf.c
23
Andrew Jeffery26b35672017-04-12 14:22:25 +093024test_write_flash_SOURCES = test/write_flash.c mboxd_flash.c common.c test/tmpf.c
25
Andrew Jefferyc1e7db32017-04-12 14:36:10 +093026TEST_MBOX_SRCS = mboxd_msg.c mboxd_windows.c mboxd_lpc.c mboxd_flash.c common.c
27TEST_MOCK_SRCS = test/tmpf.c test/mbox.c test/system.c
28
29test_get_mbox_info_v2_SOURCES = test/get_mbox_info_v2.c \
30 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
31
Andrew Jeffery16be9f62017-04-12 14:36:49 +093032test_reset_state_SOURCES = test/reset_state.c \
33 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
34
Andrew Jeffery182d4fe2017-04-12 14:39:24 +093035test_get_flash_info_v2_SOURCES = test/get_flash_info_v2.c \
36 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
37
Andrew Jeffery3e3cf282017-04-12 14:40:31 +093038test_create_read_window_v2_SOURCES = test/create_read_window_v2.c \
39 $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
40
Andrew Jeffery0484c752017-04-12 14:20:18 +093041check_PROGRAMS = test/sanity \
Andrew Jefferyc1e7db32017-04-12 14:36:10 +093042 test/copy_flash \
43 test/erase_flash \
44 test/write_flash \
Andrew Jeffery16be9f62017-04-12 14:36:49 +093045 test/get_mbox_info_v2 \
Andrew Jeffery182d4fe2017-04-12 14:39:24 +093046 test/reset_state \
Andrew Jeffery3e3cf282017-04-12 14:40:31 +093047 test/get_flash_info_v2 \
48 test/create_read_window_v2
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093049
50TESTS = $(check_PROGRAMS)