3 .PRECIOUS: $(abs_builddir)%.c
5 # Rule for repository sources
6 $(abs_builddir)%.c:: $(abs_top_srcdir)%.c
10 ifeq ($(mtlk_build_kernel_library),y)
11 binary_name := driver_lib
12 orig_list_var := lib-y
14 binary_name := $(basename $(notdir $(obj-m) ))
15 orig_list_var := $(binary_name)-objs
18 orig_list := drv_info.o $($(orig_list_var))
20 ifeq ($(CONFIG_RT_LOGGER_FUNCTIONS),y)
21 orig_list += $(rtlogger_shared_builddir)/logmacro_database.o
24 rebased_list := $(abspath $(addprefix $(abs_srcdir)/, $(orig_list)))
25 rebased_list := $(subst $(abspath $(abs_top_srcdir))/,, $(rebased_list) )
27 $(orig_list_var) := $(rebased_list) $($(binary_name)-libs)
30 $(abs_builddir)$(filter %logmacro_database.o, $($(orig_list_var))): \
31 $(addprefix $(abs_builddir), $(filter-out %logmacro_database.o, $(filter-out /%, $($(orig_list_var))))) \
32 $(filter-out %logmacro_database.o, $(filter /%, $($(orig_list_var))))
34 EXTRA_CFLAGS := -I$(abs_builddir) -I$(abs_srcdir) $(EXTRA_CFLAGS) $(MTLK_KERNEL_CFLAGS)