Makefile revision 844
f743002678eb67b99bbc29fee116b65d9530fec0wrowe# CDDL HEADER START
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# The contents of this file are subject to the terms of the
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Common Development and Distribution License (the "License").
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# You may not use this file except in compliance with the License.
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4da61833a1cbbca94094f9653fd970582b97a72etrawick# See the License for the specific language governing permissions
4da61833a1cbbca94094f9653fd970582b97a72etrawick# and limitations under the License.
4da61833a1cbbca94094f9653fd970582b97a72etrawick# When distributing Covered Code, include this CDDL HEADER in each
4789804be088bcd86ae637a29cdb7fda25169521jailletc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4789804be088bcd86ae637a29cdb7fda25169521jailletc# If applicable, add the following below this CDDL HEADER, with the
4789804be088bcd86ae637a29cdb7fda25169521jailletc# fields enclosed by brackets "[]" replaced with your own identifying
4789804be088bcd86ae637a29cdb7fda25169521jailletc# information: Portions Copyright [yyyy] [name of copyright owner]
e50c3026198fd496f183cda4c32a202925476778covener# CDDL HEADER END
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
506bfe33206b2fece40ef25f695af39dd4130facjkaluza sha256:7be3ad1641b99b17f6a8be6a976f1f954e997c41e919ad7e0c418fe848c13c97
506bfe33206b2fece40ef25f695af39dd4130facjkaluzaCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gmp/$(COMPONENT_ARCHIVE)
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic# -xthreadvar=%all: allow thread-local storage via __thread
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic# qualifier for all types of variables (global, static and dynamic)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicCXXFLAGS = -mt -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicCXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavicCXXFLAGS += $(studio_cplusplus_C99_ENABLE) $(studio_PIC)
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener# -Qoption ccfe -features=zla: allow VLA/ZLA in C++ (like in C99)
44ff304057225e944e220e981d434a046d14cf06covener# assembler detection for GNU MP and GNU MPFR is done via MPN_PATH
44ff304057225e944e220e981d434a046d14cf06covener# at ./configure time. GNU MPFR wants to know GNU MP's MPN_PATH.
caad2986f81ab263f7af41467dd622dc9add17f3ylavic# libgmpxx.so.4 always gets built with unnecessary paths in RUNPATH/RPATH
1e2d421a36999d292042a5539971070d54aa6c63ylavicCONFIGURE_ENV += CXXLD="$(CXX) $(CC_BITS) $(CXXFLAGS) $(LDFLAGS)"
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedoohCONFIGURE_ENV += CPP_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
fa7ed98b9dc94c5845cf845aea0a44ecacd290c9humbedoohCONFIGURE_ENV += CXXCPP="$(CXX) $(CC_BITS) $(CPPFLAGS) $(CXXFLAGS) -E"
0b67eb8568cd58bb77082703951679b42cf098actrawickCONFIGURE_ENV += CC_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS)"
49dacedb6c387b786b7911082ff35121a45f414bcovener $(COMPONENT_DIR)/Solaris/libgmp-64.pc > $(COMPONENT_DIR)/libgmp.pc ; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim $(MV) $(PROTOUSRINCLUDEDIR)/gmp.h $(PROTOUSRINCLUDEDIR)/gmp/ ; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim $(MV) $(PROTOUSRINCLUDEDIR)/mp.h $(PROTOUSRINCLUDEDIR)/gmp/ ; \
3c990331fc6702119e4f5b8ba9eae3021aea5265jim $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/index.html \
fc42512879dd0504532f52fe5d0d0383dda96a1eniq $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libgmpxx.pc \
da0442c0440caef34706e2c2f3af05cb65921cc0jailletc $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libgmp.3 \
06b8f183140c8e02e0974e938a05078b511d1603covener# common targets