xref: /titanic_44/usr/src/uts/sun4u/serengeti/Makefile.rules (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*03831d35Sstevel# Common Development and Distribution License (the "License").
6*03831d35Sstevel# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22*03831d35Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate#	This Makefile defines the build rules for the directory
287c478bd9Sstevel@tonic-gate#	uts/sun4u/serengeti.
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate#	The following two-level ordering must be maintained in this file.
317c478bd9Sstevel@tonic-gate#	  Lines are sorted first in order of decreasing specificity based on
327c478bd9Sstevel@tonic-gate#	  the first directory component.  That is, sun4u rules come before
337c478bd9Sstevel@tonic-gate#	  sparc rules come before common rules.
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gate#	  Lines whose initial directory components are equal are sorted
367c478bd9Sstevel@tonic-gate#	  alphabetically by the remaining components.
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gate#	Section 1a: C object build rules
407c478bd9Sstevel@tonic-gate#
41*03831d35SstevelSBDP_IL=$(OBJS_DIR)/sbdp.il
42*03831d35Sstevel
43*03831d35Sstevel$(OBJS_DIR)/sbdp_mem.o := CC_XARCH_32 = -xarch=v8plusa
44*03831d35Sstevel$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/serengeti/io/%.c $(SBDP_IL)
45*03831d35Sstevel	$(COMPILE.c) $(SBDP_IL) -o $@ $<
46*03831d35Sstevel	$(CTFCONVERT_O)
47*03831d35Sstevel
48*03831d35Sstevel$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/serengeti/ml/%.s
49*03831d35Sstevel	$(COMPILE.s) -o $@ $<
50*03831d35Sstevel
51*03831d35Sstevel$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/serengeti/os/%.c
52*03831d35Sstevel	$(COMPILE.c) -o $@ $<
53*03831d35Sstevel	$(CTFCONVERT_O)
54*03831d35Sstevel
55*03831d35Sstevel
56*03831d35Sstevel# inline stuff
57*03831d35Sstevel
58*03831d35SstevelIL_CPP=$(CPP) -P -DINLINE -D_ASM $(AS_INC_PATH) \
59*03831d35Sstevel	$(CPP_DEFS) $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS)
60*03831d35SstevelCLEANFILES += $(SBDP_IL)
61*03831d35Sstevel
62*03831d35Sstevel$(SBDP_IL):		$(UTSBASE)/sun4u/serengeti/ml/sbdp.il.cpp
63*03831d35Sstevel	$(IL_CPP) $(UTSBASE)/sun4u/serengeti/ml/sbdp.il.cpp >$@
64*03831d35Sstevel
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate#
677c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules
687c478bd9Sstevel@tonic-gate#
69*03831d35Sstevel$(LINTS_DIR)/%.ln:              $(UTSBASE)/sun4u/serengeti/io/%.c
70*03831d35Sstevel	@($(LHEAD) $(LINT.c) $< $(LTAIL))
71*03831d35Sstevel
72*03831d35Sstevel$(LINTS_DIR)/%.ln:              $(UTSBASE)/sun4u/serengeti/ml/%.s
73*03831d35Sstevel	@($(LHEAD) $(LINT.s) $< $(LTAIL))
74*03831d35Sstevel
75*03831d35Sstevel$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun4u/serengeti/os/%.c
76*03831d35Sstevel	@($(LHEAD) $(LINT.c) $< $(LTAIL))
77