X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/9daf4fcdae88f72af60aeb0c7722841af02233d4..f89517343bf062d299d54408eea2f9387bfefb6d:/lunaix-os/tests/units/makefile diff --git a/lunaix-os/tests/units/makefile b/lunaix-os/tests/units/makefile index 66cf8ab..866c718 100644 --- a/lunaix-os/tests/units/makefile +++ b/lunaix-os/tests/units/makefile @@ -1,8 +1,12 @@ LUNAIX_ROOT ?= $(shell realpath ../../) -include test_build.mkinc +include $(LUNAIX_ROOT)/tests/shared/makefile +include $(LUNAIX_ROOT)/tests/shared/mkobj.mkinc -__test-dir := device-tree +MAKEFLAGS += --no-print-directory +CFLAGS += -isystem $(unit-test-root)/stubs/includes + +__test-dir := device-tree btrie test-dir := $(addprefix test-,$(__test-dir)) obj-stubs := @@ -11,7 +15,9 @@ obj-tmp := include stubs/makefile obj-stubs += $(addprefix $(unit-test-root)/stubs/,$(obj-tmp)) -export obj-stubs LUNAIX_ROOT +BIN_DEPS := $(obj-stubs) $(obj-shared) + +export BIN_DEPS CFLAGS LUNAIX_ROOT test-%: $(call status,MK,$*) @$(MAKE) $(MKFLAGS) -C $* $(_ACT) -I $(CURDIR)