xref: /linux/arch/um/Makefile-skas (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1#
2# Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3# Licensed under the GPL
4#
5
6GPROF_OPT += -pg
7
8ifdef CONFIG_CC_IS_CLANG
9GCOV_OPT += -fprofile-instr-generate -fcoverage-mapping
10else
11GCOV_OPT += -fprofile-arcs -ftest-coverage
12endif
13
14CFLAGS-$(CONFIG_GCOV) += $(GCOV_OPT)
15CFLAGS-$(CONFIG_GPROF) += $(GPROF_OPT)
16LINK-$(CONFIG_GCOV) += $(GCOV_OPT)
17LINK-$(CONFIG_GPROF) += $(GPROF_OPT)
18