kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4u / Makefile.rules
blob93525a6676a23dc0b0a0378e32b1081588b9c512
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24 # Use is subject to license terms.
25 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
27 #       This Makefile defines the build rules for the directory uts/sun4u
28 #       and its children. These are the source files which sun4u
29 #       "implementation architecture" dependent.
31 #       The following two-level ordering must be maintained in this file.
32 #         Lines are sorted first in order of decreasing specificity based on
33 #         the first directory component.  That is, sun4u rules come before
34 #         sparc rules come before common rules.
36 #         Lines whose initial directory components are equal are sorted
37 #         alphabetically by the remaining components.
40 #       Section 1: C object build rules
42 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/cpu/%.c
43         $(COMPILE.c) -o $@ $<
44         $(CTFCONVERT_O)
46 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/cpu/%.s
47         $(COMPILE.s) -o $@ $<
50 # This rule for io/ppm/%.c needs to come before the io/%.c rule so that
51 # the sun4u/ppm driver pulls in io/ppm/ppm.c instead of io/ppm.c.
52 # Making an explicit rule to build ppm.o doesn't work because it breaks
53 # the build of excalibur/xcalppm
55 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/ppm/%.c
56         $(COMPILE.c) -o $@ $<
57         $(CTFCONVERT_O)
59 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/ppm/%.c
60         $(COMPILE.c) -o $@ $<
61         $(CTFCONVERT_O)
63 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/%.s
64         $(COMPILE.s) -o $@ $<
66 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/%.c
67         $(COMPILE.c) -o $@ $<
68         $(CTFCONVERT_O)
70 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/i2c/clients/%.c
71         $(COMPILE.c) -o $@ $<
72         $(CTFCONVERT_O)
74 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/i2c/misc/%.c
75         $(COMPILE.c) -o $@ $<
76         $(CTFCONVERT_O)
78 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/i2c/nexus/%.c
79         $(COMPILE.c) -o $@ $<
80         $(CTFCONVERT_O)
82 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/pci/%.c
83         $(COMPILE.c) -o $@ $<
84         $(CTFCONVERT_O)
86 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/pci/%.s
87         $(COMPILE.s) -o $@ $<
89 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/px/%.c
90         $(COMPILE.c) -o $@ $<
91         $(CTFCONVERT_O)
93 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/px/%.s
94         $(COMPILE.s) -o $@ $<
96 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/pciex/%.c
97         $(COMPILE.c) -o $@ $<
98         $(CTFCONVERT_O)
100 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/io/pciex/%.s
101         $(COMPILE.s) -o $@ $<
103 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/ml/%.s
104         $(COMPILE.s) -o $@ $<
106 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/os/%.c
107         $(COMPILE.c) -o $@ $<
108         $(CTFCONVERT_O)
110 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/pcbe/%.c
111         $(COMPILE.c) -o $@ $<
112         $(CTFCONVERT_O)
114 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4/brand/sn1/%.s
115         $(COMPILE.s) -o $@ $<
117 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/vm/%.c
118         $(COMPILE.c) -o $@ $<
119         $(CTFCONVERT_O)
121 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/vm/%.s
122         $(COMPILE.s) -o $@ $<
124 $(OBJS_DIR)/%.o:                $(UTSBASE)/sfmmu/ml/%.s
125         $(COMPILE.s) -o $@ $<
127 $(OBJS_DIR)/%.o:                $(UTSBASE)/sfmmu/vm/%.c
128         $(COMPILE.c) -o $@ $<
129         $(CTFCONVERT_O)
131 $(OBJS_DIR)/%.o:                $(UTSBASE)/sparc/os/%.c
132         $(COMPILE.c) -o $@ $<
133         $(CTFCONVERT_O)
135 $(OBJS_DIR)/%.o:                $(SRCTOP)/kernel/os/%.c
136         $(COMPILE.c) -o $@ $<
137         $(CTFCONVERT_O)
139 $(OBJS_DIR)/%.o:                $(SRC)/common/bignum/sun4u/%.s
140         $(COMPILE.s) -o $@ $<
142 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/aes/%.c
143         $(COMPILE.c) -o $@ $<
144         $(CTFCONVERT_O)
146 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/arcfour/%.c
147         $(COMPILE.c) -o $@ $<
148         $(CTFCONVERT_O)
150 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/des/%.c
151         $(COMPILE.c) -o $@ $<
152         $(CTFCONVERT_O)
154 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/aes/sun4u/%.s
155         $(COMPILE.s) -o $@ $<
157 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/arcfour/sun4u/%.s
158         $(COMPILE.s) -o $@ $<
160 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/des/sun4u/%.s
161         $(COMPILE.s) -o $@ $<
163 $(OBJS_DIR)/%.o:                $(SRC)/common/crypto/sha1/sparc/sun4u/%.s
164         $(COMPILE.s) -o $@ $<
166 $(OBJS_DIR)/%.o:                $(SRC)/common/atomic/sparcv9/%.s
167         $(COMPILE.s) -o $@ $<
169 $(OBJS_DIR)/dtracestubs.s:      $(UNIX_O) $(LIBS)
170         $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
171             $(UNIQ) | $(AWK) '{ \
172             printf("\t.global %s\n\t.type %s, #function\n%s:\n", \
173             $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
175 $(DTRACESTUBS): $(DTRACESTUBS_O)
176         $(BUILD.SO) $(DTRACESTUBS_O)