# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2003 - 2009 NetXen, Inc.
# Copyright (C) 2009 - QLogic Corporation.
# All rights reserved.
#


obj-$(CONFIG_NETXEN_NIC) := netxen_nic.o

netxen_nic-y := netxen_nic_hw.o netxen_nic_main.o netxen_nic_init.o \
	netxen_nic_ethtool.o netxen_nic_ctx.o

# Rust driver integration (build Rust code for netxen module only)
RUST_DRV := net/ethernet/qlogic
CARGO_FEATURES := netxen
RUST_DRV_OBJ := rust/netxen_rust.o
include $(srctree)/drivers/rust/templates/kbuild-rust-driver.mk
netxen_nic-$(CONFIG_RUST_DRIVERS) += $(RUST_DRV_OBJ)
