1843e1988Sjohnlev# 2843e1988Sjohnlev# CDDL HEADER START 3843e1988Sjohnlev# 4843e1988Sjohnlev# The contents of this file are subject to the terms of the 5843e1988Sjohnlev# Common Development and Distribution License (the "License"). 6843e1988Sjohnlev# You may not use this file except in compliance with the License. 7843e1988Sjohnlev# 8843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing. 10843e1988Sjohnlev# See the License for the specific language governing permissions 11843e1988Sjohnlev# and limitations under the License. 12843e1988Sjohnlev# 13843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each 14843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the 16843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying 17843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner] 18843e1988Sjohnlev# 19843e1988Sjohnlev# CDDL HEADER END 20843e1988Sjohnlev# 21843e1988Sjohnlev# 22843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23843e1988Sjohnlev# Use is subject to license terms. 24843e1988Sjohnlev# 25843e1988Sjohnlev 26843e1988SjohnlevLIBCBASE= ../i386 27843e1988Sjohnlev 28843e1988SjohnlevLIBRARY= libc_hwcap3.a 29843e1988Sjohnlev 30843e1988SjohnlevEXTN_CPPFLAGS= -D_CMOV_INSN -D_SSE_INSN -D_MMX_INSN 31843e1988SjohnlevEXTN_CFLAGS= -xtarget=pentium_pro 32*85f4cb87SRichard LoweEXTN_DYNFLAGS= -Wl,-Mmapfile 33843e1988Sjohnlev 34843e1988Sjohnlev# Defining this means build targets will first try to use source from this 35843e1988Sjohnlev# directory before falling back to unoptimized i386 source. 36843e1988Sjohnlev# 37843e1988Sjohnlev# Currently, the only differences between hwcap3 and hwcap1 is the kernel entry 38843e1988Sjohnlev# method (hwcap1 uses "sysenter" and hwcap2 uses "syscall" while hwcap3 uses 39843e1988Sjohnlev# "int 0x91". So for now, build libc_hwcap3 with the optimized sources for 40843e1988Sjohnlev# libc_hwcap1. 41843e1988Sjohnlev# 42843e1988SjohnlevOPTIMIZED_LIBCBASE=../i386_hwcap1 43843e1988Sjohnlev 44843e1988Sjohnlevinclude ../i386/Makefile.com 45