blob: 9d1ee3a12d35d2f6a86bd814c6914df4cbcc38dc [file] [log] [blame]
ACLOCAL_AMFLAGS = -I m4
sbin_PROGRAMS = mboxd mboxctl
mboxd_SOURCES = mboxd.c common.c mboxd_dbus.c mboxd_flash.c mboxd_lpc.c mboxd_msg.c mboxd_windows.c mtd.c
mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS)
mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS)
mboxctl_SOURCES = mboxctl.c
mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS)
mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
@CODE_COVERAGE_RULES@
AM_LIBS = $(CODE_COVERAGE_LIBS)
AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
test_sanity_SOURCES = test/sanity.c
test_copy_flash_SOURCES = test/copy_flash.c mboxd_flash.c common.c mtd.c test/tmpf.c
test_erase_flash_SOURCES = test/erase_flash.c mboxd_flash.c common.c test/tmpf.c
test_write_flash_SOURCES = test/write_flash.c mboxd_flash.c common.c test/tmpf.c
TEST_MBOX_SRCS = mboxd_msg.c mboxd_windows.c mboxd_lpc.c mboxd_flash.c common.c
TEST_MOCK_SRCS = test/tmpf.c test/mbox.c test/system.c
test_get_mbox_info_v2_SOURCES = test/get_mbox_info_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_reset_state_SOURCES = test/reset_state.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_get_flash_info_v2_SOURCES = test/get_flash_info_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_create_read_window_v2_SOURCES = test/create_read_window_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_create_write_window_v2_SOURCES = test/create_write_window_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_close_window_v2_SOURCES = test/close_window_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_mark_write_dirty_v2_SOURCES = test/mark_write_dirty_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_write_flush_v2_SOURCES = test/write_flush_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_mark_write_erased_v2_SOURCES = test/mark_write_erased_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_bmc_event_ack_v2_SOURCES = test/bmc_event_ack_v2.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
test_create_oversize_window_SOURCES = test/create_oversize_window.c \
$(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS)
check_PROGRAMS = test/sanity \
test/copy_flash \
test/erase_flash \
test/write_flash \
test/get_mbox_info_v2 \
test/reset_state \
test/get_flash_info_v2 \
test/create_read_window_v2 \
test/create_write_window_v2 \
test/close_window_v2 \
test/mark_write_dirty_v2 \
test/write_flush_v2 \
test/mark_write_erased_v2 \
test/bmc_event_ack_v2 \
test/create_oversize_window
TESTS = $(check_PROGRAMS)