1 LUNAIX_ROOT ?= $(shell realpath ../../)
3 include $(LUNAIX_ROOT)/tests/shared/makefile
4 include $(LUNAIX_ROOT)/tests/shared/mkobj.mkinc
6 MAKEFLAGS += --no-print-directory
7 CFLAGS += -isystem $(unit-test-root)/stubs/includes
9 __test-dir := device-tree btrie
10 test-dir := $(addprefix test-,$(__test-dir))
15 include stubs/makefile
16 obj-stubs += $(addprefix $(unit-test-root)/stubs/,$(obj-tmp))
18 BIN_DEPS := $(obj-stubs) $(obj-shared)
20 export BIN_DEPS CFLAGS LUNAIX_ROOT
23 @$(MAKE) $(MKFLAGS) -C $* $(_ACT) -I $(CURDIR)
28 all: $(obj-stubs) $(test-dir)
31 run: $(obj-stubs) $(test-dir)
35 @rm -f $(obj-stubs) $(obj-shared)