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