xref: /openbmc/linux/kernel/gcov/Makefile (revision 6a767685)
1# SPDX-License-Identifier: GPL-2.0
2ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"'
3
4obj-y := base.o fs.o
5obj-$(CONFIG_GCOV_FORMAT_3_4) += gcc_3_4.o
6obj-$(CONFIG_GCOV_FORMAT_4_7) += gcc_4_7.o
7obj-$(CONFIG_GCOV_FORMAT_AUTODETECT) += $(call cc-ifversion, -lt, 0407, \
8							gcc_3_4.o, gcc_4_7.o)
9