xref: /linux/arch/um/Makefile-skas (revision b7df4cc3a088a8ce6973c96731bc792dbf54ce28)
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