xref: /titanic_44/usr/src/uts/i86pc/i86hvm/Makefile.rules (revision eb0cc229f19c437a6b538d3ac0d0443268290b7e)
1*eb0cc229Sedp#
2*eb0cc229Sedp# CDDL HEADER START
3*eb0cc229Sedp#
4*eb0cc229Sedp# The contents of this file are subject to the terms of the
5*eb0cc229Sedp# Common Development and Distribution License (the "License").
6*eb0cc229Sedp# You may not use this file except in compliance with the License.
7*eb0cc229Sedp#
8*eb0cc229Sedp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*eb0cc229Sedp# or http://www.opensolaris.org/os/licensing.
10*eb0cc229Sedp# See the License for the specific language governing permissions
11*eb0cc229Sedp# and limitations under the License.
12*eb0cc229Sedp#
13*eb0cc229Sedp# When distributing Covered Code, include this CDDL HEADER in each
14*eb0cc229Sedp# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*eb0cc229Sedp# If applicable, add the following below this CDDL HEADER, with the
16*eb0cc229Sedp# fields enclosed by brackets "[]" replaced with your own identifying
17*eb0cc229Sedp# information: Portions Copyright [yyyy] [name of copyright owner]
18*eb0cc229Sedp#
19*eb0cc229Sedp# CDDL HEADER END
20*eb0cc229Sedp#
21*eb0cc229Sedp# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
22*eb0cc229Sedp# Use is subject to license terms.
23*eb0cc229Sedp#
24*eb0cc229Sedp#ident	"%Z%%M%	%I%	%E% SMI"
25*eb0cc229Sedp#
26*eb0cc229Sedp
27*eb0cc229Sedp#
28*eb0cc229Sedp#	This Makefile defines the build rules for the directory
29*eb0cc229Sedp#	uts/i86pc/i86hvm.
30*eb0cc229Sedp#
31*eb0cc229Sedp#	The following two-level ordering must be maintained in this file.
32*eb0cc229Sedp#	  Lines are sorted first in order of decreasing specificity based on
33*eb0cc229Sedp#	  the first directory component.  That is, i86pc rules come before
34*eb0cc229Sedp#	  intel rules come before common rules.
35*eb0cc229Sedp#
36*eb0cc229Sedp#	  Lines whose initial directory components are equal are sorted
37*eb0cc229Sedp#	  alphabetically by the remaining components.
38*eb0cc229Sedp
39*eb0cc229Sedp#
40*eb0cc229Sedp#	Section 1a: C object build rules
41*eb0cc229Sedp#
42*eb0cc229Sedp
43*eb0cc229Sedp$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/i86hvm/io/xpv/%.c
44*eb0cc229Sedp	$(COMPILE.c) -o $@ $<
45*eb0cc229Sedp	$(CTFCONVERT_O)
46*eb0cc229Sedp
47*eb0cc229Sedp$(OBJS_DIR)/%.o:		$(UTSBASE)/i86pc/i86hvm/io/%.c
48*eb0cc229Sedp	$(COMPILE.c) -o $@ $<
49*eb0cc229Sedp	$(CTFCONVERT_O)
50*eb0cc229Sedp
51*eb0cc229Sedp$(OBJS_DIR)/%.o:		$(UTSBASE)/common/xen/io/%.c
52*eb0cc229Sedp	$(COMPILE.c) -o $@ $<
53*eb0cc229Sedp	$(CTFCONVERT_O)
54*eb0cc229Sedp
55*eb0cc229Sedp$(OBJS_DIR)/%.o:		$(UTSBASE)/common/xen/os/%.c
56*eb0cc229Sedp	$(COMPILE.c) -o $@ $<
57*eb0cc229Sedp	$(CTFCONVERT_O)
58*eb0cc229Sedp
59*eb0cc229Sedp#
60*eb0cc229Sedp#	Section 1b: Lint `object' build rules
61*eb0cc229Sedp#
62*eb0cc229Sedp
63*eb0cc229Sedp$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/i86hvm/io/xpv/%.c
64*eb0cc229Sedp	@($(LHEAD) $(LINT.c) $< $(LTAIL))
65*eb0cc229Sedp
66*eb0cc229Sedp$(LINTS_DIR)/%.ln:		$(UTSBASE)/i86pc/i86hvm/io/%.c
67*eb0cc229Sedp	@($(LHEAD) $(LINT.c) $< $(LTAIL))
68*eb0cc229Sedp
69*eb0cc229Sedp$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/xen/io/%.c
70*eb0cc229Sedp	@($(LHEAD) $(LINT.c) $< $(LTAIL))
71*eb0cc229Sedp
72*eb0cc229Sedp$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/xen/os/%.c
73*eb0cc229Sedp	@($(LHEAD) $(LINT.c) $< $(LTAIL))
74