xref: /titanic_44/usr/src/uts/intel/virtio/Makefile (revision e0724c534a46ca4754330bc022bf1e2a68f5bb93)
1*e0724c53SAlexey Zaytsev#
2*e0724c53SAlexey Zaytsev# CDDL HEADER START
3*e0724c53SAlexey Zaytsev#
4*e0724c53SAlexey Zaytsev# The contents of this file are subject to the terms of the
5*e0724c53SAlexey Zaytsev# Common Development and Distribution License (the "License").
6*e0724c53SAlexey Zaytsev# You may not use this file except in compliance with the License.
7*e0724c53SAlexey Zaytsev#
8*e0724c53SAlexey Zaytsev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*e0724c53SAlexey Zaytsev# or http://www.opensolaris.org/os/licensing.
10*e0724c53SAlexey Zaytsev# See the License for the specific language governing permissions
11*e0724c53SAlexey Zaytsev# and limitations under the License.
12*e0724c53SAlexey Zaytsev#
13*e0724c53SAlexey Zaytsev# When distributing Covered Code, include this CDDL HEADER in each
14*e0724c53SAlexey Zaytsev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*e0724c53SAlexey Zaytsev# If applicable, add the following below this CDDL HEADER, with the
16*e0724c53SAlexey Zaytsev# fields enclosed by brackets "[]" replaced with your own identifying
17*e0724c53SAlexey Zaytsev# information: Portions Copyright [yyyy] [name of copyright owner]
18*e0724c53SAlexey Zaytsev#
19*e0724c53SAlexey Zaytsev# CDDL HEADER END
20*e0724c53SAlexey Zaytsev#
21*e0724c53SAlexey Zaytsev
22*e0724c53SAlexey Zaytsev#
23*e0724c53SAlexey Zaytsev# Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
24*e0724c53SAlexey Zaytsev#
25*e0724c53SAlexey Zaytsev
26*e0724c53SAlexey Zaytsev#
27*e0724c53SAlexey Zaytsev#	Path to the base of the uts directory tree (usually /usr/src/uts).
28*e0724c53SAlexey Zaytsev#
29*e0724c53SAlexey ZaytsevUTSBASE		= ../..
30*e0724c53SAlexey Zaytsev
31*e0724c53SAlexey Zaytsev#
32*e0724c53SAlexey Zaytsev#	Define the module and object file sets.
33*e0724c53SAlexey Zaytsev#
34*e0724c53SAlexey ZaytsevMODULE		= virtio
35*e0724c53SAlexey ZaytsevOBJECTS		= $(VIRTIO_OBJS:%=$(OBJS_DIR)/%)
36*e0724c53SAlexey ZaytsevLINTS		= $(VIRTIO_OBJS:%.o=$(LINTS_DIR)/%.ln)
37*e0724c53SAlexey ZaytsevROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
38*e0724c53SAlexey Zaytsev
39*e0724c53SAlexey Zaytsev#
40*e0724c53SAlexey Zaytsev#	Include common rules.
41*e0724c53SAlexey Zaytsev#
42*e0724c53SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.intel
43*e0724c53SAlexey Zaytsev
44*e0724c53SAlexey Zaytsev#
45*e0724c53SAlexey Zaytsev#	Define targets
46*e0724c53SAlexey Zaytsev#
47*e0724c53SAlexey ZaytsevALL_TARGET	= $(BINARY)
48*e0724c53SAlexey ZaytsevLINT_TARGET	= $(MODULE).lint
49*e0724c53SAlexey ZaytsevINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
50*e0724c53SAlexey Zaytsev
51*e0724c53SAlexey Zaytsev#
52*e0724c53SAlexey Zaytsev#	Overrides
53*e0724c53SAlexey Zaytsev#
54*e0724c53SAlexey Zaytsev
55*e0724c53SAlexey ZaytsevINC_PATH += -I$(UTSBASE)/common/io/virtio
56*e0724c53SAlexey Zaytsev
57*e0724c53SAlexey Zaytsev#
58*e0724c53SAlexey Zaytsev# lint pass one enforcement
59*e0724c53SAlexey Zaytsev#
60*e0724c53SAlexey ZaytsevCFLAGS += $(CCVERBOSE)
61*e0724c53SAlexey Zaytsev
62*e0724c53SAlexey Zaytsev#
63*e0724c53SAlexey Zaytsev#	Default build targets.
64*e0724c53SAlexey Zaytsev#
65*e0724c53SAlexey Zaytsev.KEEP_STATE:
66*e0724c53SAlexey Zaytsev
67*e0724c53SAlexey Zaytsevdef:		$(DEF_DEPS)
68*e0724c53SAlexey Zaytsev
69*e0724c53SAlexey Zaytsevall:		$(ALL_DEPS)
70*e0724c53SAlexey Zaytsev
71*e0724c53SAlexey Zaytsevclean:		$(CLEAN_DEPS)
72*e0724c53SAlexey Zaytsev
73*e0724c53SAlexey Zaytsevclobber:	$(CLOBBER_DEPS)
74*e0724c53SAlexey Zaytsev
75*e0724c53SAlexey Zaytsevlint:		$(LINT_DEPS)
76*e0724c53SAlexey Zaytsev
77*e0724c53SAlexey Zaytsevmodlintlib:	$(MODLINTLIB_DEPS)
78*e0724c53SAlexey Zaytsev
79*e0724c53SAlexey Zaytsevclean.lint:	$(CLEAN_LINT_DEPS)
80*e0724c53SAlexey Zaytsev
81*e0724c53SAlexey Zaytsevinstall:	$(INSTALL_DEPS)
82*e0724c53SAlexey Zaytsev
83*e0724c53SAlexey Zaytsev#
84*e0724c53SAlexey Zaytsev#	Include common targets.
85*e0724c53SAlexey Zaytsev#
86*e0724c53SAlexey Zaytsevinclude $(UTSBASE)/intel/Makefile.targ
87