Makefile revision 1273
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# CDDL HEADER START
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# The contents of this file are subject to the terms of the
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Common Development and Distribution License (the "License").
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# You may not use this file except in compliance with the License.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# See the License for the specific language governing permissions
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# and limitations under the License.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# When distributing Covered Code, include this CDDL HEADER in each
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# If applicable, add the following below this CDDL HEADER, with the
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# fields enclosed by brackets "[]" replaced with your own identifying
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# CDDL HEADER END
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes sha256:246d7e184048b1fc48d3696dd302c9774e24e921204221540745e5464022b637
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# -xthreadvar=%all: allow thread-local storage via __thread
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# qualifier for all types of variables (global, static and dynamic)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCFLAGS += -xthreadvar=%all -mt $(CPP_C99_EXTENDED_MATH)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCONFIGURE_OPTIONS += --with-gmp-include=$(GMPINCDIR)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCONFIGURE_OPTIONS += --with-gmp-lib=$(GMPLIBDIR_$(BITS))
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesCONFIGURE_OPTIONS += --with-mulhigh-size=$(MPFRMULHIGH)
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesPROTOUSRSHAREHTMLDIR = $(PROTOUSRSHAREDIR)/doc/mpfr/html
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesPROTOUSRSHAREMAN3DIR = $(PROTOUSRSHAREDIR)/man/man3
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholesPROTOPKGCONFIGDIR64 = $(PROTOUSRLIBDIR64)/pkgconfig
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(GSED) -e "s^\#include <gmp.h>^\#include <gmp/gmp.h>^g" \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(RM) -f $(PROTOUSRINCLUDEDIR)/mpfr/mpfr.h.sed ; \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(COMPONENT_DIR)/Solaris/libmpfr-64.pc > $(COMPONENT_DIR)/libmpfr.pc ; \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/index.html \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libmpfr.pc \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg $(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libmpfr.3 \
d3fc1a9aec53a772142e2909441b213f3ae8102abnicholes# common targets