Makefile revision 843e19887f64dde75055cf8842fc4db2171eff45
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder#
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# CDDL HEADER START
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder#
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License (the "License").
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# You may not use this file except in compliance with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder#
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# See the License for the specific language governing permissions
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# and limitations under the License.
d8c71aacc9f1c8cd40a8ad8dcdad9be8854b849fChristian Maeder#
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich#
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# CDDL HEADER END
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich#
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich#
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich# Use is subject to license terms.
96646aed2ae087b942ae23f15bbe729a8f7c43d3Christian Maeder#
01e383014b555bbcf639c0ca60c5810b3eff83c0Christian Maeder# ident "%Z%%M% %I% %E% SMI"
3b06e23643a9f65390cb8c1caabe83fa7e87a708Till Mossakowski#
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder# lib/libc/i386_hwcap3/Makefile
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder#
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder
ce8b15da31cd181b7e90593cbbca98f47eda29d6Till MossakowskiLIBCBASE= ../i386
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maeder
e7757995211bd395dc79d26fe017d99375f7d2a6Christian MaederLIBRARY= libc_hwcap3.a
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederEXTN_CPPFLAGS= -D_CMOV_INSN -D_SSE_INSN -D_MMX_INSN
ac0bbbcb2774629bb87986e69cf53d3402c5f575Christian MaederEXTN_CFLAGS= -xtarget=pentium_pro
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederEXTN_DYNFLAGS= -M mapfile
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder
2e2094a642e3775b0d76b890556407941d3a53b6Christian Maeder# Defining this means build targets will first try to use source from this
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# directory before falling back to unoptimized i386 source.
e8db9a65830cf71504e33c6f441a67b4d184a3caChristian Maeder#
c0c2380bced8159ff0297ece14eba948bd236471Christian Maeder# Currently, the only differences between hwcap3 and hwcap1 is the kernel entry
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder# method (hwcap1 uses "sysenter" and hwcap2 uses "syscall" while hwcap3 uses
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder# "int 0x91". So for now, build libc_hwcap3 with the optimized sources for
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# libc_hwcap1.
8410667510a76409aca9bb24ff0eda0420088274Christian Maeder#
404166b9366552e9ec5abb87a37c76ec8a815fb7Klaus LuettichOPTIMIZED_LIBCBASE=../i386_hwcap1
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettichinclude ../i386/Makefile.com
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich