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