4265 remove INTERNAL_RELEASE_BUILD
[illumos-gate.git] / usr / src / uts / intel / bignum / Makefile.32
blobae8df68350baad9557af845bc7f36eb51efc9159
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 #ident  "%Z%%M% %I%     %E% SMI"
27 #       Configuration and targets for bignum module
28 #       specific to Intel 32-bit architecture, i386.
30 # Bignum configuration (BIGNUM_CFG):
31 #   PSR_MUL:
32 #       There is a processor-specific implementation bignum multiply functions
33 #   HWCAP:
34 #       There are multiple implementations of bignum functions, and the
35 #       appropriate one must be chosen at run time, based on testing
36 #       hardware capabilites.
37 #   MMX_MANAGE:
38 #       Multimedia registers must be saved and restored.
39 #       Normally MMX_MANAGE iff _KERNEL, but for testing purposes,
40 #       MMX_MANAGE can be defined in userland.
42 BIGNUM_CFG = -DPSR_MUL -DHWCAP -DMMX_MANAGE
44 LDFLAGS += -M $(BIGNUMDIR)/i386/cap_mapfile
46 $(OBJS_DIR)/bignumimpl.o $(LINTS_DIR)/bignumimpl.ln := \
47         CPPFLAGS += $(BIGNUM_CFG)
48 $(OBJS_DIR)/bignum_i386.o $(LINTS_DIR)/bignum_i386.ln := \
49         CPPFLAGS += $(BIGNUM_CFG)
51 $(OBJS_DIR)/bignum_i386.o: $(BIGNUMDIR)/i386/bignum_i386.c
52         $(COMPILE.c) -o $@ $(BIGNUMDIR)/i386/bignum_i386.c
53         $(CTFCONVERT_O)
54         $(POST_PROCESS_O)
56 $(OBJS_DIR)/bignum_i386_asm.o: $(BIGNUMDIR)/i386/bignum_i386_asm.s
57         $(COMPILE.s) -P -o $@ $(BIGNUM_CFG) $(BIGNUMDIR)/i386/bignum_i386_asm.s
58         $(POST_PROCESS_O)
60 $(LINTS_DIR)/bignum_i386.ln: $(BIGNUMDIR)/i386/bignum_i386.c
61         @($(LHEAD) $(LINT.c) $(BIGNUMDIR)/i386/bignum_i386.c $(LTAIL))
63 $(LINTS_DIR)/bignum_i386_asm.ln: $(BIGNUMDIR)/i386/bignum_i386_asm.s
64         @($(LHEAD) $(LINT.s) $(BIGNUMDIR)/i386/bignum_i386_asm.s $(LTAIL))