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/opl and its children.
32 # Section 1: C object build rules
36 # inline support for DR.
40 $(OBJS_DIR)/dr_mem.o: $(UTSBASE)/sun4u/opl/io/dr_mem.c
41 $(COMPILE.c) -o $@ $(UTSBASE)/sun4u/opl/io/dr_mem.c
44 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/ngdr/io/%.c
48 DR_IO= $(UTSBASE)/sun4u/ngdr/io
49 SBD_IOCTL= $(UTSBASE)/sun4u/sys/sbd_ioctl.h
50 SBDGENERR= $(DR_IO)/sbdgenerr
52 CLEANFILES += $(SBDGENERR)
53 CLEANFILES += $(DR_IO)/dr_err.c
55 $(DR_IO)/dr_err.c: $(SBDGENERR) $(SBD_IOCTL)
57 $(SBDGENERR) ESBD < $(SBD_IOCTL) > $(DR_IO)/dr_err.c
59 $(SBDGENERR): $(DR_IO)/sbdgenerr.pl
61 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
64 IL_CPP=$(CPP) -P -DINLINE -D_ASM $(AS_INC_PATH) \
65 $(CPP_DEFS) $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS)
67 DRMACH_IL= $(OBJS_DIR)/drmach.il
68 $(OBJS_DIR)/drmach.o := CC_XARCH_32 = -m32 -mcpu=ultrasparc -mv8plus -mvis
69 $(OBJS_DIR)/drmach.o: $(UTSBASE)/sun4u/opl/io/drmach.c $(DRMACH_IL)
70 $(COMPILE.c) $(DRMACH_IL) -o $@ $(UTSBASE)/sun4u/opl/io/drmach.c
73 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/opl/io/%.c
77 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/opl/io/pcicmu/%.c
81 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/opl/ml/%.s
84 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/opl/os/%.c
88 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/opl/io/oplpanel/%.c
92 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/opl/io/oplmsu/%.c
96 OPL_IO= $(UTSBASE)/sun4u/opl/io
98 CLEANFILES += $(OPL_IO)/drmach_err.c
100 $(OPL_IO)/drmach_err.c: $(SBDGENERR) $(SBD_IOCTL)
102 $(SBDGENERR) EOPL < $(SBD_IOCTL) > $@
104 CLEANFILES += $(DRMACH_IL)
106 $(DRMACH_IL): $(UTSBASE)/sun4u/opl/ml/drmach.il.cpp
107 $(IL_CPP) $(UTSBASE)/sun4u/opl/ml/drmach.il.cpp > $@