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