author | wesolows |
Tue, 20 Sep 2005 15:07:36 -0700 | |
changeset 580 | 70dfd36fd02c |
parent 339 | ed677a0703c7 |
child 624 | 8c5206bfd8f1 |
permissions | -rw-r--r-- |
0 | 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/sun4v |
|
29 |
# and its children. These are the source files which sun4v |
|
30 |
# "implementation architecture" dependent. |
|
31 |
# |
|
32 |
# The following two-level ordering must be maintained in this file. |
|
33 |
# Lines are sorted first in order of decreasing specificity based on |
|
34 |
# the first directory component. That is, sun4v rules come before |
|
35 |
# sparc rules come before common rules. |
|
36 |
# |
|
37 |
# Lines whose initial directory components are equal are sorted |
|
38 |
# alphabetically by the remaining components. |
|
39 |
||
40 |
# |
|
41 |
# Section 1a: C object build rules |
|
42 |
# |
|
43 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/cpu/%.c |
|
44 |
$(COMPILE.c) -o $@ $< |
|
45 |
$(CTFCONVERT_O) |
|
46 |
||
47 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/cpu/%.s |
|
48 |
$(COMPILE.s) -o $@ $< |
|
49 |
||
50 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/io/%.c |
|
51 |
$(COMPILE.c) -o $@ $< |
|
52 |
$(CTFCONVERT_O) |
|
53 |
||
339
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
54 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/io/memtest/%.c |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
55 |
$(COMPILE.c) -o $@ $< |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
56 |
$(CTFCONVERT_O) |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
57 |
|
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
58 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4/io/memtest/%.c |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
59 |
$(COMPILE.c) -o $@ $< |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
60 |
$(CTFCONVERT_O) |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
61 |
|
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
62 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/io/memtest/%.s |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
63 |
$(COMPILE.s) -o $@ $< |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
64 |
|
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
65 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4/io/memtest/%.s |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
66 |
$(COMPILE.s) -o $@ $< |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
67 |
|
0 | 68 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/ml/%.s |
69 |
$(COMPILE.s) -o $@ $< |
|
70 |
||
71 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/os/%.c |
|
72 |
$(COMPILE.c) -o $@ $< |
|
73 |
$(CTFCONVERT_O) |
|
74 |
||
75 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/pcbe/%.c |
|
76 |
$(COMPILE.c) -o $@ $< |
|
77 |
$(CTFCONVERT_O) |
|
78 |
||
79 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/io/px/%.c |
|
80 |
$(COMPILE.c) -o $@ $< |
|
81 |
$(CTFCONVERT_O) |
|
82 |
||
83 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/io/ncp/%.c |
|
84 |
$(COMPILE.c) -o $@ $< |
|
85 |
$(CTFCONVERT_O) |
|
86 |
||
87 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/vm/%.c |
|
88 |
$(COMPILE.c) -o $@ $< |
|
89 |
$(CTFCONVERT_O) |
|
90 |
||
91 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sun4v/vm/%.s |
|
92 |
$(COMPILE.s) -o $@ $< |
|
93 |
||
94 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sfmmu/ml/%.s |
|
95 |
$(COMPILE.s) -o $@ $< |
|
96 |
||
97 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sfmmu/vm/%.c |
|
98 |
$(COMPILE.c) -o $@ $< |
|
99 |
$(CTFCONVERT_O) |
|
100 |
||
101 |
$(OBJS_DIR)/%.o: $(UTSBASE)/sparc/os/%.c |
|
102 |
$(COMPILE.c) -o $@ $< |
|
103 |
$(CTFCONVERT_O) |
|
104 |
||
105 |
$(OBJS_DIR)/%.o: $(UTSBASE)/common/os/%.c |
|
106 |
$(COMPILE.c) -o $@ $< |
|
107 |
$(CTFCONVERT_O) |
|
108 |
||
109 |
$(OBJS_DIR)/%.o: $(SRC)/common/mdesc/%.c |
|
110 |
$(COMPILE.c) -o $@ $< |
|
111 |
$(CTFCONVERT_O) |
|
112 |
||
113 |
$(OBJS_DIR)/%.o: $(SRC)/common/atomic/sparcv9/%.s |
|
114 |
$(COMPILE.s) -o $@ $< |
|
115 |
||
227
71b682a1e511
PSARC/2005/413 sun4v optimized MD5 and arcfour kernel cryptographic modules
kais
parents:
0
diff
changeset
|
116 |
$(OBJS_DIR)/%.o: $(SRC)/common/crypto/arcfour/sun4v/%.c |
71b682a1e511
PSARC/2005/413 sun4v optimized MD5 and arcfour kernel cryptographic modules
kais
parents:
0
diff
changeset
|
117 |
$(COMPILE.c) -o $@ $< |
71b682a1e511
PSARC/2005/413 sun4v optimized MD5 and arcfour kernel cryptographic modules
kais
parents:
0
diff
changeset
|
118 |
$(CTFCONVERT_O) |
71b682a1e511
PSARC/2005/413 sun4v optimized MD5 and arcfour kernel cryptographic modules
kais
parents:
0
diff
changeset
|
119 |
|
0 | 120 |
$(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS) |
121 |
nm -u $(UNIX_O) $(LIBS) | grep __dtrace_probe_ | sort | uniq | nawk '{ \ |
|
122 |
printf("\t.global %s\n\t.type %s, #function\n%s:\n", \ |
|
123 |
$$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s |
|
124 |
||
125 |
$(DTRACESTUBS): $(DTRACESTUBS_O) |
|
580 | 126 |
$(BUILD.SO) $(DTRACESTUBS_O) |
0 | 127 |
|
128 |
# |
|
129 |
# Section 1b: Lint `object' build rules |
|
130 |
# |
|
131 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/cpu/%.c |
|
132 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
133 |
||
134 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/cpu/%.s |
|
135 |
@($(LHEAD) $(LINT.s) $< $(LTAIL)) |
|
136 |
||
137 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/io/%.c |
|
138 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
139 |
||
339
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
140 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/io/memtest/%.c |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
141 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
142 |
|
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
143 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4/io/memtest/%.c |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
144 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
145 |
|
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
146 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/io/memtest/%.s |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
147 |
@($(LHEAD) $(LINT.s) $< $(LTAIL)) |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
148 |
|
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
149 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4/io/memtest/%.s |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
150 |
@($(LHEAD) $(LINT.s) $< $(LTAIL)) |
ed677a0703c7
6214127 rework Panther l3 cache error injector nomenclature
tsoydan
parents:
227
diff
changeset
|
151 |
|
0 | 152 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/io/px/%.c |
153 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
154 |
||
155 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/io/ncp/%.c |
|
156 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
157 |
||
158 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/ml/%.s |
|
159 |
@($(LHEAD) $(LINT.s) $< $(LTAIL)) |
|
160 |
||
161 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/os/%.c |
|
162 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
163 |
||
164 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/pcbe/%.c |
|
165 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
166 |
||
167 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/vm/%.c |
|
168 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
169 |
||
170 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sun4v/vm/%.s |
|
171 |
@($(LHEAD) $(LINT.s) $< $(LTAIL)) |
|
172 |
||
173 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sfmmu/ml/%.s |
|
174 |
@($(LHEAD) $(LINT.s) $< $(LTAIL)) |
|
175 |
||
176 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sfmmu/vm/%.c |
|
177 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
178 |
||
179 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/sparc/os/%.c |
|
180 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
181 |
||
182 |
$(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c |
|
183 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
184 |
||
185 |
$(LINTS_DIR)/%.ln: $(SRC)/common/mdesc/%.c |
|
186 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |
|
187 |
||
188 |
$(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c |
|
189 |
@($(LHEAD) $(LINT.c) $< $(LTAIL)) |