1e0724c53SAlexey Zaytsev# 2*f8296c60SJoshua M. Clulow# This file and its contents are supplied under the terms of the 3*f8296c60SJoshua M. Clulow# Common Development and Distribution License ("CDDL"), version 1.0. 4*f8296c60SJoshua M. Clulow# You may only use this file in accordance with the terms of version 5*f8296c60SJoshua M. Clulow# 1.0 of the CDDL. 6e0724c53SAlexey Zaytsev# 7*f8296c60SJoshua M. Clulow# A full copy of the text of the CDDL should have accompanied this 8*f8296c60SJoshua M. Clulow# source. A copy of the CDDL is also available via the Internet at 9*f8296c60SJoshua M. Clulow# http://www.illumos.org/license/CDDL. 10e0724c53SAlexey Zaytsev# 11e0724c53SAlexey Zaytsev 12e0724c53SAlexey Zaytsev# 13e0724c53SAlexey Zaytsev# Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved. 14*f8296c60SJoshua M. Clulow# Copyright 2019 Joyent, Inc. 15e0724c53SAlexey Zaytsev# 16e0724c53SAlexey Zaytsev 17e0724c53SAlexey Zaytsev# 18e0724c53SAlexey Zaytsev# Path to the base of the uts directory tree (usually /usr/src/uts). 19e0724c53SAlexey Zaytsev# 20e0724c53SAlexey ZaytsevUTSBASE = ../.. 21e0724c53SAlexey Zaytsev 22e0724c53SAlexey Zaytsev# 23e0724c53SAlexey Zaytsev# Define the module and object file sets. 24e0724c53SAlexey Zaytsev# 25e0724c53SAlexey ZaytsevMODULE = virtio 26e0724c53SAlexey ZaytsevOBJECTS = $(VIRTIO_OBJS:%=$(OBJS_DIR)/%) 27e0724c53SAlexey ZaytsevROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 28e0724c53SAlexey Zaytsev 29e0724c53SAlexey Zaytsev# 30e0724c53SAlexey Zaytsev# Include common rules. 31e0724c53SAlexey Zaytsev# 32e0724c53SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.intel 33e0724c53SAlexey Zaytsev 34e0724c53SAlexey Zaytsev# 35e0724c53SAlexey Zaytsev# Define targets 36e0724c53SAlexey Zaytsev# 37e0724c53SAlexey ZaytsevALL_TARGET = $(BINARY) 38e0724c53SAlexey ZaytsevINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 39e0724c53SAlexey Zaytsev 40e0724c53SAlexey Zaytsev# 41e0724c53SAlexey Zaytsev# Overrides 42e0724c53SAlexey Zaytsev# 43e0724c53SAlexey ZaytsevINC_PATH += -I$(UTSBASE)/common/io/virtio 44e0724c53SAlexey Zaytsev 45e0724c53SAlexey Zaytsev# 46e0724c53SAlexey Zaytsev# Default build targets. 47e0724c53SAlexey Zaytsev# 48e0724c53SAlexey Zaytsev.KEEP_STATE: 49e0724c53SAlexey Zaytsev 50e0724c53SAlexey Zaytsevdef: $(DEF_DEPS) 51e0724c53SAlexey Zaytsev 52e0724c53SAlexey Zaytsevall: $(ALL_DEPS) 53e0724c53SAlexey Zaytsev 54e0724c53SAlexey Zaytsevclean: $(CLEAN_DEPS) 55e0724c53SAlexey Zaytsev 56e0724c53SAlexey Zaytsevclobber: $(CLOBBER_DEPS) 57e0724c53SAlexey Zaytsev 58e0724c53SAlexey Zaytsevinstall: $(INSTALL_DEPS) 59e0724c53SAlexey Zaytsev 60e0724c53SAlexey Zaytsev# 61e0724c53SAlexey Zaytsev# Include common targets. 62e0724c53SAlexey Zaytsev# 63e0724c53SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.targ 64