Makefile revision 1258
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER START
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# The contents of this file are subject to the terms of the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Common Development and Distribution License (the "License").
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You may not use this file except in compliance with the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# See the License for the specific language governing permissions
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# and limitations under the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER END
f41405d21249e11c1636301b1324ac1937b455aaMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews sha256:7be3ad1641b99b17f6a8be6a976f1f954e997c41e919ad7e0c418fe848c13c97
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gmp/$(COMPONENT_ARCHIVE)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# -xthreadvar=%all: allow thread-local storage via __thread
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# qualifier for all types of variables (global, static and dynamic)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCFLAGS += -xthreadvar=%all $(CPP_C99_EXTENDED_MATH)
d39690e5a9b4a9a084d984abd193bed4395db41aDavid LawrenceCXXFLAGS = -mt -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
105f5a65b1f680f4cb6f897b8b0f7ee7e09e41ebDavid LawrenceCXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCXXFLAGS += -xbuiltin=%none -xinline=%auto -xlibmil
88b3bc12b5570aae77e5963204e9111a2875915eAndreas GustafssonCXXFLAGS += $(studio_cplusplus_C99_ENABLE) $(studio_PIC)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# -Qoption ccfe -features=zla: allow VLA/ZLA in C++ (like in C99)
c05a979fda35c83d7fba16fee7859644e98a7450Mark Andrews# assembler detection for GNU MP and GNU MPFR is done via MPN_PATH
2a313f56e78e19ae6dc2315bb53bd32fad13ae29Mark Andrews# at ./configure time. GNU MPFR wants to know GNU MP's MPN_PATH.
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews# libgmpxx.so.4 always gets built with unnecessary paths in RUNPATH/RPATH
ea37c1a7780311cc7076ff54f09774b2296aebe5Mark AndrewsCONFIGURE_ENV += CXXFLAGS="$(CC_BITS) $(CXXFLAGS)"
de90c0b2efac159580365beaa761a14bdb74330cMark AndrewsCONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
e20eae14fc554bae394f535067e80884b59d0684Mark AndrewsCONFIGURE_ENV += CXXLD="$(CXX) $(CC_BITS) $(CXXFLAGS) $(LDFLAGS)"
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark AndrewsCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark AndrewsCONFIGURE_ENV += CPP_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
1c8c1aa1c6a103a6495109069cca518c9f475f39Mark AndrewsCONFIGURE_ENV += CXXCPP="$(CXX) $(CC_BITS) $(CPPFLAGS) $(CXXFLAGS) -E"
b6f837397dadf6b296ee1825c95e90235ee5b5ffMark AndrewsCONFIGURE_ENV += CC_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS)"
fd6574dbc551faac89ae2ce6f3549fed51c24e49Mark AndrewsCONFIGURE_OPTIONS += --includedir=/usr/include/gmp
cdd28dc017ce03d208cdfbe7d55fb76377c85accMark AndrewsPROTOUSRSHAREHTMLDIR = $(PROTOUSRSHAREDIR)/doc/gmp/html
test: $(TEST_32_and_64)