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