371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankov#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# CDDL HEADER START
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankov# The contents of this file are subject to the terms of the
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Common Development and Distribution License (the "License").
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# You may not use this file except in compliance with the License.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# See the License for the specific language governing permissions
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# and limitations under the License.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# CDDL HEADER END
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# Use is subject to license terms.
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# ident "%Z%%M% %I% %E% SMI"
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore#
371584c2eae4cf827fd406ba26c14f021adaaa70Yuri Pankov
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreASFLAGS += $(AS_PICFLAGS) -P -D_ASM
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreMACHOBJS = dis_tables.o
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreDLIBSRCS = regs.d
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinclude ../Makefile.com
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreSRCS += $(SRC)/common/dis/i386/dis_tables.c
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreCPPFLAGS += -I$(SRC)/common/dis/i386
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreCLEANFILES += regs.sed regs.d
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore%.sed: %.sed.in
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(COMPILE.cpp) -D_KERNEL $< | \
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore tr -d ' ' | tr '@' ' ' | tr '"' '@' | grep '^s/' > $@
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore../$(MACH)/regs.d: regs.sed regs.d.in
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore sed -f regs.sed < regs.d.in > $@
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amorepics/%.o: $(SRC)/common/dis/i386/%.c
260e9a87725c090ba5835b1f9f0b62fa2f96036fYuri Pankov $(COMPILE.c) -o $@ $<
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(POST_PROCESS_O)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amoreinstall yydebug: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT) \
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore $(ROOTDLIBS) $(ROOTDOBJS)
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore