125cf1a30Sjl#
225cf1a30Sjl# CDDL HEADER START
325cf1a30Sjl#
425cf1a30Sjl# The contents of this file are subject to the terms of the
525cf1a30Sjl# Common Development and Distribution License (the "License").
625cf1a30Sjl# You may not use this file except in compliance with the License.
725cf1a30Sjl#
825cf1a30Sjl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
925cf1a30Sjl# or http://www.opensolaris.org/os/licensing.
1025cf1a30Sjl# See the License for the specific language governing permissions
1125cf1a30Sjl# and limitations under the License.
1225cf1a30Sjl#
1325cf1a30Sjl# When distributing Covered Code, include this CDDL HEADER in each
1425cf1a30Sjl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1525cf1a30Sjl# If applicable, add the following below this CDDL HEADER, with the
1625cf1a30Sjl# fields enclosed by brackets "[]" replaced with your own identifying
1725cf1a30Sjl# information: Portions Copyright [yyyy] [name of copyright owner]
1825cf1a30Sjl#
1925cf1a30Sjl# CDDL HEADER END
2025cf1a30Sjl#
2125cf1a30Sjl#
2225cf1a30Sjl# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2325cf1a30Sjl# Use is subject to license terms.
2425cf1a30Sjl#
25*0aaef2f5SRichard Lowe
2625cf1a30Sjl#
2725cf1a30Sjl#	This Makefile defines the build rules for the directory
2825cf1a30Sjl#	uts/sun4u/opl and its children.
2925cf1a30Sjl#
3025cf1a30Sjl
3125cf1a30Sjl#
3225cf1a30Sjl#	Section 1a: C object build rules
3325cf1a30Sjl#
3425cf1a30Sjl
3525cf1a30Sjl#
3625cf1a30Sjl# inline support for DR.
3725cf1a30Sjl#
3825cf1a30Sjl
3925cf1a30Sjl
4025cf1a30Sjl$(OBJS_DIR)/dr_mem.o:		$(UTSBASE)/sun4u/opl/io/dr_mem.c
4125cf1a30Sjl	$(COMPILE.c) -o $@ $(UTSBASE)/sun4u/opl/io/dr_mem.c
4225cf1a30Sjl	$(CTFCONVERT_O)
4325cf1a30Sjl
4425cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/ngdr/io/%.c
4525cf1a30Sjl	$(COMPILE.c) -o $@ $<
4625cf1a30Sjl	$(CTFCONVERT_O)
4725cf1a30Sjl
4825cf1a30SjlDR_IO=	$(UTSBASE)/sun4u/ngdr/io
4925cf1a30SjlSBD_IOCTL=	$(UTSBASE)/sun4u/sys/sbd_ioctl.h
5025cf1a30SjlSBDGENERR=	$(DR_IO)/sbdgenerr
5125cf1a30Sjl
5225cf1a30SjlCLEANFILES +=	$(SBDGENERR)
5325cf1a30SjlCLEANFILES +=	$(DR_IO)/dr_err.c
5425cf1a30Sjl
5525cf1a30Sjl$(DR_IO)/dr_err.c:	$(SBDGENERR) $(SBD_IOCTL)
5625cf1a30Sjl	$(RM) $@
5725cf1a30Sjl	$(SBDGENERR) ESBD < $(SBD_IOCTL) > $(DR_IO)/dr_err.c
5825cf1a30Sjl
5925cf1a30Sjl$(SBDGENERR):			$(DR_IO)/sbdgenerr.pl
6025cf1a30Sjl	$(RM) $@
6125cf1a30Sjl	$(CAT) $(DR_IO)/sbdgenerr.pl > $@
6225cf1a30Sjl	$(CHMOD) +x $@
6325cf1a30Sjl
6425cf1a30SjlIL_CPP=$(CPP) -P -DINLINE -D_ASM $(AS_INC_PATH) \
6525cf1a30Sjl        $(CPP_DEFS) $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS)
6625cf1a30Sjl
6725cf1a30SjlDRMACH_IL=              $(OBJS_DIR)/drmach.il
6825cf1a30Sjl$(OBJS_DIR)/drmach.o    := CC_XARCH_32 = -xarch=v8plusa
6925cf1a30Sjl$(OBJS_DIR)/drmach.o:   $(UTSBASE)/sun4u/opl/io/drmach.c $(DRMACH_IL)
7025cf1a30Sjl	$(COMPILE.c) $(DRMACH_IL) -o $@ $(UTSBASE)/sun4u/opl/io/drmach.c
7125cf1a30Sjl	$(CTFCONVERT_O)
7225cf1a30Sjl
7325cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/opl/io/%.c
7425cf1a30Sjl	$(COMPILE.c) -o $@ $<
7525cf1a30Sjl	$(CTFCONVERT_O)
7625cf1a30Sjl
7725cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/opl/io/pcicmu/%.c
7825cf1a30Sjl	$(COMPILE.c) -o $@ $<
7925cf1a30Sjl	$(CTFCONVERT_O)
8025cf1a30Sjl
8125cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/opl/ml/%.s
8225cf1a30Sjl	$(COMPILE.s) -o $@ $<
8325cf1a30Sjl
8425cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/opl/os/%.c
8525cf1a30Sjl	$(COMPILE.c) -o $@ $<
8625cf1a30Sjl	$(CTFCONVERT_O)
8725cf1a30Sjl
8825cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/opl/io/oplpanel/%.c
8925cf1a30Sjl	$(COMPILE.c) -o $@ $<
9025cf1a30Sjl	$(CTFCONVERT_O)
9125cf1a30Sjl
9225cf1a30Sjl$(OBJS_DIR)/%.o:		$(UTSBASE)/sun4u/opl/io/oplmsu/%.c
9325cf1a30Sjl	$(COMPILE.c) -o $@ $<
9425cf1a30Sjl	$(CTFCONVERT_O)
9525cf1a30Sjl
9625cf1a30SjlOPL_IO=       $(UTSBASE)/sun4u/opl/io
9725cf1a30Sjl
9825cf1a30SjlCLEANFILES +=   $(OPL_IO)/drmach_err.c
9925cf1a30Sjl
10025cf1a30Sjl$(OPL_IO)/drmach_err.c: $(SBDGENERR) $(SBD_IOCTL)
10125cf1a30Sjl	$(RM) $@
10225cf1a30Sjl	$(SBDGENERR) EOPL < $(SBD_IOCTL) > $@
10325cf1a30Sjl
10425cf1a30SjlCLEANFILES += $(DRMACH_IL)
10525cf1a30Sjl
10625cf1a30Sjl$(DRMACH_IL):   $(UTSBASE)/sun4u/opl/ml/drmach.il.cpp
10725cf1a30Sjl	$(IL_CPP) $(UTSBASE)/sun4u/opl/ml/drmach.il.cpp > $@
10825cf1a30Sjl
10925cf1a30Sjl.KEEP_STATE:
110