18a324c92SDan McDonald# 28a324c92SDan McDonald# This file and its contents are supplied under the terms of the 38a324c92SDan McDonald# Common Development and Distribution License ("CDDL"), version 1.0. 48a324c92SDan McDonald# You may only use this file in accordance with the terms of version 58a324c92SDan McDonald# 1.0 of the CDDL. 68a324c92SDan McDonald# 78a324c92SDan McDonald# A full copy of the text of the CDDL should have accompanied this 88a324c92SDan McDonald# source. A copy of the CDDL is also available via the Internet at 98a324c92SDan McDonald# http://www.illumos.org/license/CDDL. 108a324c92SDan McDonald# 118a324c92SDan McDonald 128a324c92SDan McDonald# 138a324c92SDan McDonald# Copyright 2013 Nexenta Inc. All rights reserved. 14f8296c60SJoshua M. Clulow# Copyright 2019 Joyent, Inc. 158a324c92SDan McDonald# 168a324c92SDan McDonald 178a324c92SDan McDonald# 188a324c92SDan McDonald# Path to the base of the uts directory tree (usually /usr/src/uts). 198a324c92SDan McDonald# 208a324c92SDan McDonaldUTSBASE = ../.. 218a324c92SDan McDonald 228a324c92SDan McDonald# 238a324c92SDan McDonald# Define the module and object file sets. 248a324c92SDan McDonald# 258a324c92SDan McDonaldMODULE = vioif 268a324c92SDan McDonaldOBJECTS = $(VIOIF_OBJS:%=$(OBJS_DIR)/%) 278a324c92SDan McDonaldROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 288a324c92SDan McDonald 298a324c92SDan McDonald# 308a324c92SDan McDonald# Include common rules. 318a324c92SDan McDonald# 328a324c92SDan McDonaldinclude $(UTSBASE)/intel/Makefile.intel 338a324c92SDan McDonald 348a324c92SDan McDonald# 358a324c92SDan McDonald# Define targets 368a324c92SDan McDonald# 378a324c92SDan McDonaldALL_TARGET = $(BINARY) 388a324c92SDan McDonaldINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 398a324c92SDan McDonald 408a324c92SDan McDonald# 418a324c92SDan McDonald# Overrides 428a324c92SDan McDonald# 438a324c92SDan McDonaldINC_PATH += -I$(UTSBASE)/common/io/virtio 448a324c92SDan McDonald 458a324c92SDan McDonald# 46f8296c60SJoshua M. Clulow# Driver depends on virtio and mac 478a324c92SDan McDonald# 48*82d0151aSRichard LoweLDFLAGS += -N misc/virtio -N misc/mac 498a324c92SDan McDonald 508a324c92SDan McDonald# 518a324c92SDan McDonald# Default build targets. 528a324c92SDan McDonald# 538a324c92SDan McDonald.KEEP_STATE: 548a324c92SDan McDonald 558a324c92SDan McDonalddef: $(DEF_DEPS) 568a324c92SDan McDonald 578a324c92SDan McDonaldall: $(ALL_DEPS) 588a324c92SDan McDonald 598a324c92SDan McDonaldclean: $(CLEAN_DEPS) 608a324c92SDan McDonald 618a324c92SDan McDonaldclobber: $(CLOBBER_DEPS) 628a324c92SDan McDonald 638a324c92SDan McDonaldinstall: $(INSTALL_DEPS) 648a324c92SDan McDonald 658a324c92SDan McDonald# 668a324c92SDan McDonald# Include common targets. 678a324c92SDan McDonald# 688a324c92SDan McDonaldinclude $(UTSBASE)/intel/Makefile.targ 69