# SPDX-License-Identifier: GPL-2.0


CFLAGS_trace.o                 := -I$(src)

obj-m                          += tps6598x.o
tps6598x-y                     := core.o
tps6598x-$(CONFIG_TRACING)     += trace.o

TPS6598x_MODULE_VERSION := $(shell head -n 1 $(src)/version)

ifneq ($(TPS6598x_MODULE_VERSION),)
ccflags-y += -DTPS6598x_MODULE_VERSION="\"$(TPS6598x_MODULE_VERSION)\""
endif

# Print compiler messages in color, if compiler supports it and stderr is a terminal
ccflags-y += $(call cc-option,-fdiagnostics-color=auto,)
