# # Copyright (C) 2002 Jeff Dike (jdike@karaya.com) # Licensed under the GPL # export UM_GPROF_OPT += -pg ifdef CONFIG_CC_IS_CLANG export UM_GCOV_OPT += -fprofile-instr-generate -fcoverage-mapping else export UM_GCOV_OPT += -fprofile-arcs -ftest-coverage endif CFLAGS-$(CONFIG_GCOV) += $(UM_GCOV_OPT) CFLAGS-$(CONFIG_GPROF) += $(UM_GPROF_OPT) LINK-$(CONFIG_GCOV) += $(UM_GCOV_OPT) LINK-$(CONFIG_GPROF) += $(UM_GPROF_OPT)