1# 2# Component Makefile 3# 4 5COMPONENT_SRCDIRS := . 6 7ifdef CONFIG_APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE 8COMPONENT_SRCDIRS += port/xtensa 9endif 10 11COMPONENT_ADD_INCLUDEDIRS = include 12 13COMPONENT_PRIV_INCLUDEDIRS = private_include \ 14 port/include 15 16COMPONENT_ADD_LDFLAGS = -lapp_trace 17 18# do not produce gcov info for this module, it is used as transport for gcov 19CFLAGS := $(subst --coverage,,$(CFLAGS)) 20 21ifdef CONFIG_APPTRACE_SV_ENABLE 22 23COMPONENT_ADD_INCLUDEDIRS += \ 24 sys_view/Config \ 25 sys_view/SEGGER \ 26 sys_view/Sample/OS 27 28COMPONENT_SRCDIRS += \ 29 gcov \ 30 sys_view/SEGGER \ 31 sys_view/Sample/OS \ 32 sys_view/Sample/Config \ 33 sys_view/esp \ 34 sys_view/ext 35else 36COMPONENT_SRCDIRS += gcov 37endif 38 39COMPONENT_ADD_LDFRAGMENTS += linker.lf 40