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