kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / uts / sun4u / starcat / Makefile.rules
blobfd1e9d7dc82848e012d566f64fc6f27438672f98
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
22 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I%     %E% SMI"
27 #       This Makefile defines the build rules for the directory
28 #       uts/sun4u/starcat and its children.
32 # inline support for DR.
35 IL_CPP=$(CPP) -P -DINLINE -D_ASM $(AS_INC_PATH) \
36         $(CPP_DEFS) $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS)
39 #       Section 1: C object build rules
42 DRMACH_IL=$(OBJS_DIR)/drmach.il
44 $(OBJS_DIR)/drmach.o    := CC_XARCH_32 = -m32 -mcpu=ultrasparc -mv8plus -mvis
45 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/starcat/io/%.c $(DRMACH_IL)
46         $(COMPILE.c) $(DRMACH_IL) -o $@ $<
47         $(CTFCONVERT_O)
49 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/starcat/os/%.c
50         $(COMPILE.c) -o $@ $<
51         $(CTFCONVERT_O)
53 $(OBJS_DIR)/%.o:                $(UTSBASE)/sun4u/starcat/ml/%.s
54         $(COMPILE.s) -o $@ $<
56 STARCAT_IO=$(UTSBASE)/sun4u/starcat/io
58 CLEANFILES += $(STARCAT_IO)/drmach_err.c
60 $(STARCAT_IO)/drmach_err.c: $(SBDGENERR) $(SBD_IOCTL)
61         $(RM) $@
62         $(SBDGENERRCMD) ESTC <$(SBD_IOCTL) >$@
64 # inline stuff
66 CLEANFILES += $(DRMACH_IL)
68 $(DRMACH_IL):           $(UTSBASE)/sun4u/starcat/ml/drmach.il.cpp
69         $(IL_CPP) $(UTSBASE)/sun4u/starcat/ml/drmach.il.cpp > $@