blob: 1ea8f505c9f501f157950e9e7693df4ada318508 [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 Jeffery0484c752017-04-12 14:20:18 +093038check_PROGRAMS = test/sanity \
Andrew Jefferyc1e7db32017-04-12 14:36:10 +093039 test/copy_flash \
40 test/erase_flash \
41 test/write_flash \
Andrew Jeffery16be9f62017-04-12 14:36:49 +093042 test/get_mbox_info_v2 \
Andrew Jeffery182d4fe2017-04-12 14:39:24 +093043 test/reset_state \
44 test/get_flash_info_v2
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093045
46TESTS = $(check_PROGRAMS)