BOOKKEEPER_TEST_SRC := $(wildcard plugins/bkpr/test/run-*.c)
BOOKKEEPER_TEST_OBJS := $(BOOKKEEPER_TEST_SRC:.c=.o)
BOOKKEEPER_TEST_PROGRAMS := $(BOOKKEEPER_TEST_OBJS:.o=)

ALL_C_SOURCES += $(BOOKKEEPER_TEST_SRC)
ALL_TEST_PROGRAMS += $(BOOKKEEPER_TEST_PROGRAMS)

$(BOOKKEEPER_TEST_PROGRAMS): libcommon.a
$(BOOKKEEPER_TEST_OBJS): $(BOOKKEEPER_SRC) $(BOOKKEEPER_HEADER) plugins/bkpr/test/Makefile

check-units: $(BOOKKEEPER_TEST_PROGRAMS:%=unittest/%)
