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