Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# The contents of this file are subject to the terms of the
26e2a07a0b6a3b1eccef82ba31270d0c54ad4f06Mark Andrews# Common Development and Distribution License, Version 1.0 only
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# (the "License"). You may not use this file except in compliance
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# with the License.
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson#
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Use is subject to license terms.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#ident "%Z%%M% %I% %E% SMI"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinASFLAGS += $(AS_PICFLAGS) -P -D_ASM
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMAPDIR = ../spec/i386
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMACHOBJS = dis_tables.o dt_asmsubr.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinDLIBSRCS = regs.d
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../Makefile.com
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSRCS += $(SRC)/common/dis/i386/dis_tables.c dt_asmsubr.s
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCPPFLAGS += -I$(SRC)/common/dis/i386
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
26e2a07a0b6a3b1eccef82ba31270d0c54ad4f06Mark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCLEANFILES += regs.sed regs.d
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein%.sed: %.sed.in
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(COMPILE.cpp) -D_KERNEL $< | \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein tr -d ' ' | tr '@' ' ' | tr '"' '@' | grep '^s/' > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein../$(MACH)/regs.d: regs.sed regs.d.in
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews sed -f regs.sed < regs.d.in > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinpics/%.o: $(SRC)/common/dis/i386/%.c
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(COMPILE.c) -o $@ $<
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(POST_PROCESS_O)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall yydebug: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT) \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(ROOTDLIBS) $(ROOTDOBJS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein