4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
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.
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.
37 # Section 1a: C object build rules
39 SUN4_BASE=$(UTSBASE)/sun4
41 $(OBJS_DIR)/%.o: $(SUN4_BASE)/conf/%.c
45 $(OBJS_DIR)/%.o: $(SUN4_BASE)/conf/%.s
48 $(OBJS_DIR)/%.o: $(SUN4_BASE)/cpu/%.c
52 $(OBJS_DIR)/%.o: $(SUN4_BASE)/cpu/%.s
55 $(OBJS_DIR)/%.o: $(SUN4_BASE)/io/%.c
59 $(OBJS_DIR)/%.o: $(SUN4_BASE)/io/efcode/%.c
63 $(OBJS_DIR)/%.o: $(SUN4_BASE)/io/pci/%.c
67 $(OBJS_DIR)/%.o: $(SUN4_BASE)/io/px/%.c
71 $(OBJS_DIR)/%.o: $(SUN4_BASE)/io/fpc/%.c
75 $(OBJS_DIR)/%.o: $(SUN4_BASE)/ml/%.s
78 $(OBJS_DIR)/%.o: $(SUN4_BASE)/os/%.c
82 $(OBJS_DIR)/%.o: $(SUN4_BASE)/vm/%.c
86 $(OBJS_DIR)/%.o: $(SUN4_BASE)/ebus/%.c
91 # Section 1b: Lint `object' build rules
93 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/conf/%.c
94 @($(LHEAD) $(LINT.c) $< $(LTAIL))
96 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/conf/%.s
97 @($(LHEAD) $(LINT.s) $< $(LTAIL))
99 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/cpu/%.c
100 @($(LHEAD) $(LINT.c) $< $(LTAIL))
102 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/cpu/%.s
103 @($(LHEAD) $(LINT.c) $< $(LTAIL))
105 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/%.c
106 @($(LHEAD) $(LINT.c) $< $(LTAIL))
108 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/efcode/%.c
109 @($(LHEAD) $(LINT.c) $< $(LTAIL))
111 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/pci/%.c
112 @($(LHEAD) $(LINT.c) $< $(LTAIL))
114 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/px/%.c
115 @($(LHEAD) $(LINT.c) $< $(LTAIL))
117 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/io/fpc/%.c
118 @($(LHEAD) $(LINT.c) $< $(LTAIL))
120 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/ml/%.s
121 @($(LHEAD) $(LINT.s) $< $(LTAIL))
123 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/os/%.c
124 @($(LHEAD) $(LINT.c) $< $(LTAIL))
126 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/vm/%.c
127 @($(LHEAD) $(LINT.c) $< $(LTAIL))
129 $(LINTS_DIR)/%.ln: $(SUN4_BASE)/ebus/%.c
130 @($(LHEAD) $(LINT.c) $< $(LTAIL))