1# 2# Component Makefile 3# 4 5COMPONENT_SRCDIRS := . port port/$(IDF_TARGET) 6COMPONENT_ADD_INCLUDEDIRS := include 7COMPONENT_OBJS := heap_caps_init.o heap_caps.o multi_heap.o heap_tlsf.o port/memory_layout_utils.o port/$(IDF_TARGET)/memory_layout.o 8 9ifndef CONFIG_HEAP_POISONING_DISABLED 10COMPONENT_OBJS += multi_heap_poisoning.o 11 12ifdef CONFIG_HEAP_TASK_TRACKING 13COMPONENT_OBJS += heap_task_info.o 14endif 15endif 16 17ifdef CONFIG_HEAP_TRACING_STANDALONE 18 19COMPONENT_OBJS += heap_trace_standalone.o 20 21endif 22 23ifdef CONFIG_HEAP_TRACING 24 25WRAP_FUNCTIONS = calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc heap_caps_malloc_default heap_caps_realloc_default 26WRAP_ARGUMENT := -Wl,--wrap= 27 28COMPONENT_ADD_LDFLAGS = -l$(COMPONENT_NAME) $(addprefix $(WRAP_ARGUMENT),$(WRAP_FUNCTIONS)) 29 30endif 31 32COMPONENT_ADD_LDFRAGMENTS += linker.lf 33 34CFLAGS += -DMULTI_HEAP_FREERTOS 35