1# 2# Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3# Licensed under the GPL 4# 5 6export UM_GPROF_OPT += -pg 7 8ifdef CONFIG_CC_IS_CLANG 9export UM_GCOV_OPT += -fprofile-instr-generate -fcoverage-mapping 10else 11export UM_GCOV_OPT += -fprofile-arcs -ftest-coverage 12endif 13 14CFLAGS-$(CONFIG_GCOV) += $(UM_GCOV_OPT) 15CFLAGS-$(CONFIG_GPROF) += $(UM_GPROF_OPT) 16LINK-$(CONFIG_GCOV) += $(UM_GCOV_OPT) 17LINK-$(CONFIG_GPROF) += $(UM_GPROF_OPT) 18