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]
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 1a: C object build rules
42 DRMACH_IL=$(OBJS_DIR)/drmach.il
44 $(OBJS_DIR)/drmach.o := CC_XARCH_32 = -xarch=v8plusa
45 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/starcat/io/%.c $(DRMACH_IL)
46 $(COMPILE.c) $(DRMACH_IL) -o $@ $<
49 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/starcat/os/%.c
53 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/starcat/ml/%.s
56 STARCAT_IO=$(UTSBASE)/sun4u/starcat/io
58 CLEANFILES += $(STARCAT_IO)/drmach_err.c
60 $(STARCAT_IO)/drmach_err.c: $(SBDGENERR) $(SBD_IOCTL)
62 $(SBDGENERRCMD) ESTC <$(SBD_IOCTL) >$@
66 CLEANFILES += $(DRMACH_IL)
68 $(DRMACH_IL): $(UTSBASE)/sun4u/starcat/ml/drmach.il.cpp
69 $(IL_CPP) $(UTSBASE)/sun4u/starcat/ml/drmach.il.cpp > $@
72 # Section 1b: Lint object build rules
75 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/starcat/os/%.c
76 @($(LHEAD) $(LINT.c) $< $(LTAIL))
78 $(LINTS_DIR)/drmach.ln := LINTFLAGS += -I../sys
79 $(LINTS_DIR)/sc_gptwoctfg.ln := LINTFLAGS += -I../sys
81 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/starcat/io/%.c
82 @($(LHEAD) $(LINT.c) $< $(LTAIL))
84 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/starcat/ml/%.s
85 @($(LHEAD) $(LINT.s) $< $(LTAIL))