1 # 2 # Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 # Licensed under the GPL 4 # 5 6 GPROF_OPT += -pg 7 8 ifdef CONFIG_CC_IS_CLANG 9 GCOV_OPT += -fprofile-instr-generate -fcoverage-mapping 10 else 11 GCOV_OPT += -fprofile-arcs -ftest-coverage 12 endif 13 14 CFLAGS-$(CONFIG_GCOV) += $(GCOV_OPT) 15 CFLAGS-$(CONFIG_GPROF) += $(GPROF_OPT) 16 LINK-$(CONFIG_GCOV) += $(GCOV_OPT) 17 LINK-$(CONFIG_GPROF) += $(GPROF_OPT)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.