xref: /illumos-gate/usr/src/uts/intel/virtio/Makefile (revision f8296c60)
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#
18*f8296c60SJoshua M. Clulow# Path to the base of the uts directory tree (usually /usr/src/uts).
19e0724c53SAlexey Zaytsev#
20*f8296c60SJoshua M. ClulowUTSBASE =		../..
21e0724c53SAlexey Zaytsev
22e0724c53SAlexey Zaytsev#
23*f8296c60SJoshua M. Clulow# Define the module and object file sets.
24e0724c53SAlexey Zaytsev#
25*f8296c60SJoshua M. ClulowMODULE =		virtio
26*f8296c60SJoshua M. ClulowOBJECTS =		$(VIRTIO_OBJS:%=$(OBJS_DIR)/%)
27*f8296c60SJoshua M. ClulowROOTMODULE =		$(ROOT_MISC_DIR)/$(MODULE)
28e0724c53SAlexey Zaytsev
29e0724c53SAlexey Zaytsev#
30*f8296c60SJoshua M. Clulow# Include common rules.
31e0724c53SAlexey Zaytsev#
32e0724c53SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.intel
33e0724c53SAlexey Zaytsev
34e0724c53SAlexey Zaytsev#
35*f8296c60SJoshua M. Clulow# Define targets
36e0724c53SAlexey Zaytsev#
37*f8296c60SJoshua M. ClulowALL_TARGET =		$(BINARY)
38*f8296c60SJoshua M. ClulowINSTALL_TARGET =	$(BINARY) $(ROOTMODULE)
39e0724c53SAlexey Zaytsev
40e0724c53SAlexey Zaytsev#
41*f8296c60SJoshua M. Clulow# Overrides
42e0724c53SAlexey Zaytsev#
43*f8296c60SJoshua M. ClulowINC_PATH +=		-I$(UTSBASE)/common/io/virtio
44e0724c53SAlexey Zaytsev
45e0724c53SAlexey Zaytsev#
46*f8296c60SJoshua M. Clulow# Default build targets.
47e0724c53SAlexey Zaytsev#
48e0724c53SAlexey Zaytsev.KEEP_STATE:
49e0724c53SAlexey Zaytsev
50*f8296c60SJoshua M. Clulowdef: $(DEF_DEPS)
51e0724c53SAlexey Zaytsev
52*f8296c60SJoshua M. Clulowall: $(ALL_DEPS)
53e0724c53SAlexey Zaytsev
54*f8296c60SJoshua M. Clulowclean: $(CLEAN_DEPS)
55e0724c53SAlexey Zaytsev
56*f8296c60SJoshua M. Clulowclobber: $(CLOBBER_DEPS)
57e0724c53SAlexey Zaytsev
58*f8296c60SJoshua M. Clulowinstall: $(INSTALL_DEPS)
59e0724c53SAlexey Zaytsev
60e0724c53SAlexey Zaytsev#
61*f8296c60SJoshua M. Clulow# Include common targets.
62e0724c53SAlexey Zaytsev#
63e0724c53SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.targ
64