11c5bc425SAlexey Zaytsev# 2f8296c60SJoshua M. Clulow# This file and its contents are supplied under the terms of the 3f8296c60SJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0. 4f8296c60SJoshua M. Clulow# You may only use this file in accordance with the terms of version 5f8296c60SJoshua M. Clulow# 1.0 of the CDDL. 61c5bc425SAlexey Zaytsev# 7f8296c60SJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this 8f8296c60SJoshua M. Clulow# source. A copy of the CDDL is also available via the Internet at 9f8296c60SJoshua M. Clulow# http://www.illumos.org/license/CDDL. 101c5bc425SAlexey Zaytsev# 11f8296c60SJoshua M. Clulow 121c5bc425SAlexey Zaytsev# 131c5bc425SAlexey Zaytsev# Copyright 2012 Nexenta Systems, Inc. All rights reserved. 14f8296c60SJoshua M. Clulow# Copyright 2019 Joyent, Inc. 151c5bc425SAlexey Zaytsev# 161c5bc425SAlexey Zaytsev 171c5bc425SAlexey Zaytsev# 181c5bc425SAlexey Zaytsev# Path to the base of the uts directory tree (usually /usr/src/uts). 191c5bc425SAlexey Zaytsev# 201c5bc425SAlexey ZaytsevUTSBASE = ../.. 211c5bc425SAlexey Zaytsev 221c5bc425SAlexey Zaytsev# 231c5bc425SAlexey Zaytsev# Define the module and object file sets. 241c5bc425SAlexey Zaytsev# 251c5bc425SAlexey ZaytsevMODULE = vioblk 261c5bc425SAlexey ZaytsevOBJECTS = $(VIOBLK_OBJS:%=$(OBJS_DIR)/%) 271c5bc425SAlexey ZaytsevROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 281c5bc425SAlexey Zaytsev 291c5bc425SAlexey Zaytsev# 301c5bc425SAlexey Zaytsev# Include common rules. 311c5bc425SAlexey Zaytsev# 321c5bc425SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.intel 331c5bc425SAlexey Zaytsev 341c5bc425SAlexey Zaytsev# 351c5bc425SAlexey Zaytsev# Define targets 361c5bc425SAlexey Zaytsev# 371c5bc425SAlexey ZaytsevALL_TARGET = $(BINARY) 381c5bc425SAlexey ZaytsevINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 391c5bc425SAlexey Zaytsev 401c5bc425SAlexey Zaytsev# 411c5bc425SAlexey Zaytsev# Overrides 421c5bc425SAlexey Zaytsev# 431c5bc425SAlexey ZaytsevINC_PATH += -I$(UTSBASE)/common/io/virtio 441c5bc425SAlexey Zaytsev 451c5bc425SAlexey Zaytsev# 461c5bc425SAlexey Zaytsev# Driver depends on virtio and blkdev 471c5bc425SAlexey Zaytsev# 48*82d0151aSRichard LoweLDFLAGS += -N misc/virtio -N drv/blkdev 491c5bc425SAlexey Zaytsev 501c5bc425SAlexey Zaytsev# 511c5bc425SAlexey Zaytsev# Default build targets. 521c5bc425SAlexey Zaytsev# 531c5bc425SAlexey Zaytsev.KEEP_STATE: 541c5bc425SAlexey Zaytsev 551c5bc425SAlexey Zaytsevdef: $(DEF_DEPS) 561c5bc425SAlexey Zaytsev 571c5bc425SAlexey Zaytsevall: $(ALL_DEPS) 581c5bc425SAlexey Zaytsev 591c5bc425SAlexey Zaytsevclean: $(CLEAN_DEPS) 601c5bc425SAlexey Zaytsev 611c5bc425SAlexey Zaytsevclobber: $(CLOBBER_DEPS) 621c5bc425SAlexey Zaytsev 631c5bc425SAlexey Zaytsevinstall: $(INSTALL_DEPS) 641c5bc425SAlexey Zaytsev 651c5bc425SAlexey Zaytsev# 661c5bc425SAlexey Zaytsev# Include common targets. 671c5bc425SAlexey Zaytsev# 681c5bc425SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.targ 69