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