# SPDX-License-Identifier: GPL-2.0-or-later
#
# Makefile for the VMware Zero Copy Virtual Device driver
#

ccflags-y			+= -I$(src)

# "make M=drivers/misc/vmw_zerocopy modules" sets KBUILD_EXTMOD and skips
# syncconfig, so include/config/auto.conf may not list new CONFIG_* symbols
# even when they are present in .config — then obj-$(CONFIG_...) adds nothing.
ifneq ($(KBUILD_EXTMOD),)
obj-m += vmw_zerocopy.o
else
obj-$(CONFIG_VMW_ZC) += vmw_zerocopy.o
endif

vmw_zerocopy-y := vmw_zerocopy_driver.o
