Makefile revision 1938
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# CDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# CDDL HEADER END
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:7be3ad1641b99b17f6a8be6a976f1f954e997c41e919ad7e0c418fe848c13c97
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gmp/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -xthreadvar=%all: allow thread-local storage via __thread
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# qualifier for all types of variables (global, static and dynamic)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCFLAGS += -xthreadvar=%all $(CPP_C99_EXTENDED_MATH)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCXXFLAGS = -mt -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCXXFLAGS += -xbuiltin=%none -xinline=%auto -xlibmil
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCXXFLAGS += -xustr=ascii_utf16_ushort -xlibmopt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCXXFLAGS += $(studio_cplusplus_C99_ENABLE) $(studio_PIC)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# -Qoption ccfe -features=zla: allow VLA/ZLA in C++ (like in C99)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# assembler detection for GNU MP and GNU MPFR is done via MPN_PATH
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# at ./configure time. GNU MPFR wants to know GNU MP's MPN_PATH.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# libgmpxx.so.4 always gets built with unnecessary paths in RUNPATH/RPATH
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_ENV += CXXFLAGS="$(CC_BITS) $(CXXFLAGS)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CXXLD="$(CXX) $(CC_BITS) $(CXXFLAGS) $(LDFLAGS)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CPP_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CXXCPP="$(CXX) $(CC_BITS) $(CPPFLAGS) $(CXXFLAGS) -E"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_ENV += CC_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS)"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --includedir=/usr/include/gmp
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPROTOUSRSHAREHTMLDIR = $(PROTOUSRSHAREDIR)/doc/gmp/html
test: $(TEST_32_and_64)