xref: /titanic_41/usr/src/lib/libc/i386_hwcap3/Makefile (revision 843e19887f64dde75055cf8842fc4db2171eff45)
1*843e1988Sjohnlev#
2*843e1988Sjohnlev# CDDL HEADER START
3*843e1988Sjohnlev#
4*843e1988Sjohnlev# The contents of this file are subject to the terms of the
5*843e1988Sjohnlev# Common Development and Distribution License (the "License").
6*843e1988Sjohnlev# You may not use this file except in compliance with the License.
7*843e1988Sjohnlev#
8*843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing.
10*843e1988Sjohnlev# See the License for the specific language governing permissions
11*843e1988Sjohnlev# and limitations under the License.
12*843e1988Sjohnlev#
13*843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each
14*843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the
16*843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying
17*843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner]
18*843e1988Sjohnlev#
19*843e1988Sjohnlev# CDDL HEADER END
20*843e1988Sjohnlev#
21*843e1988Sjohnlev#
22*843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*843e1988Sjohnlev# Use is subject to license terms.
24*843e1988Sjohnlev#
25*843e1988Sjohnlev# ident	"%Z%%M%	%I%	%E% SMI"
26*843e1988Sjohnlev#
27*843e1988Sjohnlev# lib/libc/i386_hwcap3/Makefile
28*843e1988Sjohnlev#
29*843e1988Sjohnlev
30*843e1988SjohnlevLIBCBASE=	../i386
31*843e1988Sjohnlev
32*843e1988SjohnlevLIBRARY=	libc_hwcap3.a
33*843e1988Sjohnlev
34*843e1988SjohnlevEXTN_CPPFLAGS=	-D_CMOV_INSN -D_SSE_INSN -D_MMX_INSN
35*843e1988SjohnlevEXTN_CFLAGS=	-xtarget=pentium_pro
36*843e1988SjohnlevEXTN_DYNFLAGS=	-M mapfile
37*843e1988Sjohnlev
38*843e1988Sjohnlev# Defining this means build targets will first try to use source from this
39*843e1988Sjohnlev# directory before falling back to unoptimized i386 source.
40*843e1988Sjohnlev#
41*843e1988Sjohnlev# Currently, the only differences between hwcap3 and hwcap1 is the kernel entry
42*843e1988Sjohnlev# method (hwcap1 uses "sysenter" and hwcap2 uses "syscall" while hwcap3 uses
43*843e1988Sjohnlev# "int 0x91".  So for now, build libc_hwcap3 with the optimized sources for
44*843e1988Sjohnlev# libc_hwcap1.
45*843e1988Sjohnlev#
46*843e1988SjohnlevOPTIMIZED_LIBCBASE=../i386_hwcap1
47*843e1988Sjohnlev
48*843e1988Sjohnlevinclude ../i386/Makefile.com
49