10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*1370Sschwartz# Common Development and Distribution License (the "License"). 6*1370Sschwartz# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 21*1370Sschwartz 220Sstevel@tonic-gate# 23*1370Sschwartz# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate# Use is subject to license terms. 250Sstevel@tonic-gate# 260Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 270Sstevel@tonic-gate# 280Sstevel@tonic-gate# This Makefile defines the build rules for the directory uts/sun4 290Sstevel@tonic-gate# and its children. These are the source files which are generic 300Sstevel@tonic-gate# to the sun4* machine classes. 310Sstevel@tonic-gate# 320Sstevel@tonic-gate# The following ordering must be maintained in this file. 330Sstevel@tonic-gate# Lines whose initial directory components are equal are sorted 340Sstevel@tonic-gate# alphabetically by the remaining components. 350Sstevel@tonic-gate 360Sstevel@tonic-gate# 370Sstevel@tonic-gate# Section 1a: C object build rules 380Sstevel@tonic-gate# 390Sstevel@tonic-gateSUN4_BASE=$(UTSBASE)/sun4 400Sstevel@tonic-gate 410Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/conf/%.c 420Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 430Sstevel@tonic-gate $(CTFCONVERT_O) 440Sstevel@tonic-gate 450Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/conf/%.s 460Sstevel@tonic-gate $(COMPILE.s) -o $@ $< 470Sstevel@tonic-gate 480Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/cpu/%.c 490Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 500Sstevel@tonic-gate $(CTFCONVERT_O) 510Sstevel@tonic-gate 520Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/cpu/%.s 530Sstevel@tonic-gate $(COMPILE.s) -o $@ $< 540Sstevel@tonic-gate 550Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/%.c 560Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 570Sstevel@tonic-gate $(CTFCONVERT_O) 580Sstevel@tonic-gate 590Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/efcode/%.c 600Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 610Sstevel@tonic-gate $(CTFCONVERT_O) 620Sstevel@tonic-gate 630Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/pci/%.c 640Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 650Sstevel@tonic-gate $(CTFCONVERT_O) 660Sstevel@tonic-gate 670Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/px/%.c 680Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 690Sstevel@tonic-gate $(CTFCONVERT_O) 700Sstevel@tonic-gate 71*1370Sschwartz$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/fpc/%.c 72*1370Sschwartz $(COMPILE.c) -o $@ $< 73*1370Sschwartz $(CTFCONVERT_O) 74*1370Sschwartz 750Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/ml/%.s 760Sstevel@tonic-gate $(COMPILE.s) -o $@ $< 770Sstevel@tonic-gate 780Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/os/%.c 790Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 800Sstevel@tonic-gate $(CTFCONVERT_O) 810Sstevel@tonic-gate 820Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/vm/%.c 830Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 840Sstevel@tonic-gate $(CTFCONVERT_O) 850Sstevel@tonic-gate 860Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SUN4_BASE)/ebus/%.c 870Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 880Sstevel@tonic-gate $(CTFCONVERT_O) 890Sstevel@tonic-gate 900Sstevel@tonic-gate# 910Sstevel@tonic-gate# Section 1b: Lint `object' build rules 920Sstevel@tonic-gate# 930Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/conf/%.c 940Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 950Sstevel@tonic-gate 960Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/conf/%.s 970Sstevel@tonic-gate @($(LHEAD) $(LINT.s) $< $(LTAIL)) 980Sstevel@tonic-gate 990Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/cpu/%.c 1000Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1010Sstevel@tonic-gate 1020Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/cpu/%.s 1030Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1040Sstevel@tonic-gate 1050Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/%.c 1060Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1070Sstevel@tonic-gate 1080Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/efcode/%.c 1090Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1100Sstevel@tonic-gate 1110Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/pci/%.c 1120Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1130Sstevel@tonic-gate 1140Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/px/%.c 1150Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1160Sstevel@tonic-gate 117*1370Sschwartz$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/fpc/%.c 118*1370Sschwartz @($(LHEAD) $(LINT.c) $< $(LTAIL)) 119*1370Sschwartz 1200Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/ml/%.s 1210Sstevel@tonic-gate @($(LHEAD) $(LINT.s) $< $(LTAIL)) 1220Sstevel@tonic-gate 1230Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/os/%.c 1240Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1250Sstevel@tonic-gate 1260Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/vm/%.c 1270Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1280Sstevel@tonic-gate 1290Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(SUN4_BASE)/ebus/%.c 1300Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 131