xref: /illumos-gate/usr/src/uts/i86xpv/xpvtap/Makefile (revision 7eea693d6b672899726e75993fddc4e95b52647f)
1*7eea693dSMark Johnson#
2*7eea693dSMark Johnson# CDDL HEADER START
3*7eea693dSMark Johnson#
4*7eea693dSMark Johnson# The contents of this file are subject to the terms of the
5*7eea693dSMark Johnson# Common Development and Distribution License (the "License").
6*7eea693dSMark Johnson# You may not use this file except in compliance with the License.
7*7eea693dSMark Johnson#
8*7eea693dSMark Johnson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7eea693dSMark Johnson# or http://www.opensolaris.org/os/licensing.
10*7eea693dSMark Johnson# See the License for the specific language governing permissions
11*7eea693dSMark Johnson# and limitations under the License.
12*7eea693dSMark Johnson#
13*7eea693dSMark Johnson# When distributing Covered Code, include this CDDL HEADER in each
14*7eea693dSMark Johnson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7eea693dSMark Johnson# If applicable, add the following below this CDDL HEADER, with the
16*7eea693dSMark Johnson# fields enclosed by brackets "[]" replaced with your own identifying
17*7eea693dSMark Johnson# information: Portions Copyright [yyyy] [name of copyright owner]
18*7eea693dSMark Johnson#
19*7eea693dSMark Johnson# CDDL HEADER END
20*7eea693dSMark Johnson#
21*7eea693dSMark Johnson
22*7eea693dSMark Johnson#
23*7eea693dSMark Johnson# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*7eea693dSMark Johnson# Use is subject to license terms.
25*7eea693dSMark Johnson#
26*7eea693dSMark Johnson
27*7eea693dSMark Johnson#
28*7eea693dSMark Johnson#	This makefile drives the production of the xpvtap
29*7eea693dSMark Johnson#	driver module.
30*7eea693dSMark Johnson#
31*7eea693dSMark Johnson#	i86xpv architecture dependent
32*7eea693dSMark Johnson#
33*7eea693dSMark Johnson
34*7eea693dSMark Johnson#
35*7eea693dSMark Johnson#	Path to the base of the uts directory tree (usually /usr/src/uts).
36*7eea693dSMark Johnson#
37*7eea693dSMark JohnsonUTSBASE	= ../..
38*7eea693dSMark Johnson
39*7eea693dSMark Johnson#
40*7eea693dSMark Johnson#	Define the module and object file sets.
41*7eea693dSMark Johnson#
42*7eea693dSMark JohnsonMODULE		= xpvtap
43*7eea693dSMark JohnsonOBJECTS		= $(XPVTAP_OBJS:%=$(OBJS_DIR)/%)
44*7eea693dSMark JohnsonLINTS		= $(XPVTAP_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*7eea693dSMark JohnsonROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
46*7eea693dSMark Johnson
47*7eea693dSMark Johnson#
48*7eea693dSMark Johnson#	Include common rules.
49*7eea693dSMark Johnson#
50*7eea693dSMark Johnsoninclude $(UTSBASE)/i86xpv/Makefile.i86xpv
51*7eea693dSMark Johnson
52*7eea693dSMark Johnson#
53*7eea693dSMark Johnson#	Define targets
54*7eea693dSMark Johnson#
55*7eea693dSMark JohnsonALL_TARGET	= $(BINARY)
56*7eea693dSMark JohnsonLINT_TARGET	= $(MODULE).lint
57*7eea693dSMark JohnsonINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
58*7eea693dSMark Johnson
59*7eea693dSMark JohnsonLDFLAGS		+=
60*7eea693dSMark Johnson
61*7eea693dSMark Johnson#
62*7eea693dSMark Johnson# use Solaris specific code in xen public header files
63*7eea693dSMark Johnson#
64*7eea693dSMark JohnsonCFLAGS		+= -D_SOLARIS
65*7eea693dSMark JohnsonLINTFLAGS	+= -D_SOLARIS
66*7eea693dSMark Johnson
67*7eea693dSMark JohnsonLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
68*7eea693dSMark JohnsonLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
69*7eea693dSMark JohnsonLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
70*7eea693dSMark JohnsonLINTTAGS	+= -erroff=E_CONSTANT_CONDITION
71*7eea693dSMark Johnson
72*7eea693dSMark Johnson#
73*7eea693dSMark Johnson#	Default build targets.
74*7eea693dSMark Johnson#
75*7eea693dSMark Johnson.KEEP_STATE:
76*7eea693dSMark Johnson
77*7eea693dSMark Johnsondef:		$(DEF_DEPS)
78*7eea693dSMark Johnson
79*7eea693dSMark Johnsonall:		$(ALL_DEPS)
80*7eea693dSMark Johnson
81*7eea693dSMark Johnsonclean:		$(CLEAN_DEPS)
82*7eea693dSMark Johnson
83*7eea693dSMark Johnsonclobber:	$(CLOBBER_DEPS)
84*7eea693dSMark Johnson
85*7eea693dSMark Johnsonlint:		$(LINT_DEPS)
86*7eea693dSMark Johnson
87*7eea693dSMark Johnsonmodlintlib:	$(MODLINTLIB_DEPS)
88*7eea693dSMark Johnson
89*7eea693dSMark Johnsonclean.lint:	$(CLEAN_LINT_DEPS)
90*7eea693dSMark Johnson
91*7eea693dSMark Johnsoninstall:	$(INSTALL_DEPS)
92*7eea693dSMark Johnson
93*7eea693dSMark Johnson#
94*7eea693dSMark Johnson#	Include common targets.
95*7eea693dSMark Johnson#
96*7eea693dSMark Johnsoninclude $(UTSBASE)/i86xpv/Makefile.targ
97