1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28# This Makefile defines the build rules for the directory uts/sun4 29# and its children. These are the source files which are generic 30# to the sun4* machine classes. 31# 32# The following ordering must be maintained in this file. 33# Lines whose initial directory components are equal are sorted 34# alphabetically by the remaining components. 35 36# 37# Section 1a: C object build rules 38# 39SUN4_BASE=$(UTSBASE)/sun4 40 41$(OBJS_DIR)/%.o: $(SUN4_BASE)/conf/%.c 42 $(COMPILE.c) -o $@ $< 43 $(CTFCONVERT_O) 44 45$(OBJS_DIR)/%.o: $(SUN4_BASE)/conf/%.s 46 $(COMPILE.s) -o $@ $< 47 48$(OBJS_DIR)/%.o: $(SUN4_BASE)/cpu/%.c 49 $(COMPILE.c) -o $@ $< 50 $(CTFCONVERT_O) 51 52$(OBJS_DIR)/%.o: $(SUN4_BASE)/cpu/%.s 53 $(COMPILE.s) -o $@ $< 54 55$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/%.c 56 $(COMPILE.c) -o $@ $< 57 $(CTFCONVERT_O) 58 59$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/efcode/%.c 60 $(COMPILE.c) -o $@ $< 61 $(CTFCONVERT_O) 62 63$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/pci/%.c 64 $(COMPILE.c) -o $@ $< 65 $(CTFCONVERT_O) 66 67$(OBJS_DIR)/%.o: $(SUN4_BASE)/io/px/%.c 68 $(COMPILE.c) -o $@ $< 69 $(CTFCONVERT_O) 70 71$(OBJS_DIR)/%.o: $(SUN4_BASE)/ml/%.s 72 $(COMPILE.s) -o $@ $< 73 74$(OBJS_DIR)/%.o: $(SUN4_BASE)/os/%.c 75 $(COMPILE.c) -o $@ $< 76 $(CTFCONVERT_O) 77 78$(OBJS_DIR)/%.o: $(SUN4_BASE)/vm/%.c 79 $(COMPILE.c) -o $@ $< 80 $(CTFCONVERT_O) 81 82$(OBJS_DIR)/%.o: $(SUN4_BASE)/ebus/%.c 83 $(COMPILE.c) -o $@ $< 84 $(CTFCONVERT_O) 85 86# 87# Section 1b: Lint `object' build rules 88# 89$(LINTS_DIR)/%.ln: $(SUN4_BASE)/conf/%.c 90 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 91 92$(LINTS_DIR)/%.ln: $(SUN4_BASE)/conf/%.s 93 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 94 95$(LINTS_DIR)/%.ln: $(SUN4_BASE)/cpu/%.c 96 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 97 98$(LINTS_DIR)/%.ln: $(SUN4_BASE)/cpu/%.s 99 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 100 101$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/%.c 102 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 103 104$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/efcode/%.c 105 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 106 107$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/pci/%.c 108 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 109 110$(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/px/%.c 111 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 112 113$(LINTS_DIR)/%.ln: $(SUN4_BASE)/ml/%.s 114 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 115 116$(LINTS_DIR)/%.ln: $(SUN4_BASE)/os/%.c 117 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 118 119$(LINTS_DIR)/%.ln: $(SUN4_BASE)/vm/%.c 120 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 121 122$(LINTS_DIR)/%.ln: $(SUN4_BASE)/ebus/%.c 123 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 124