Makefile revision 5680
76b43e4417bab52e913da39b5f5bc2a130d3f149Timo Sirainen#
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# CDDL HEADER START
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen#
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# The contents of this file are subject to the terms of the
6ac487e0d17528215ddc420d90b4fa28bd036dd8Timo Sirainen# Common Development and Distribution License (the "License").
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# You may not use this file except in compliance with the License.
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen#
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c13f3df87bc8ec1fb279fc0ffa6e8517f74dc07cTimo Sirainen# or http://www.opensolaris.org/os/licensing.
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen# See the License for the specific language governing permissions
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# and limitations under the License.
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen#
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
c13f3df87bc8ec1fb279fc0ffa6e8517f74dc07cTimo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen# If applicable, add the following below this CDDL HEADER, with the
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen#
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen# CDDL HEADER END
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen#
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Sirainen#
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen#
83bb013a99f0936995f9c7a1077822662d8fefdbTimo SirainenBUILD_BITS= 64_and_32
83bb013a99f0936995f9c7a1077822662d8fefdbTimo Siraineninclude ../../make-rules/shared-macros.mk
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo SirainenCOMPONENT_NAME= mpc
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo SirainenCOMPONENT_VERSION= 0.9
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo SirainenCOMPONENT_PROJECT_URL= http://www.multiprecision.org/
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo SirainenCOMPONENT_ARCHIVE_HASH= \
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo Sirainen sha256:fd3efe422f0d454592059e80f2c00d1a2e381bf2beda424c5094abd4deb049ac
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo SirainenCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)mpc/download/$(COMPONENT_ARCHIVE)
e3aeeb634245e80d4f643f8d2eea11d6b72336d8Timo Sirainen
4981827cb5e32cf767b7b0e3070137e6b36f42afTimo SirainenTPNO= 4706
16c89b1260c9d07c01c83a9219424d3727069b2eTimo Sirainen
3fa05fb6b5be864fabfc8a1e1aa236af869dc7eaTimo SirainenTEST_TARGET= install $(TEST_32_and_64)
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen# Add install dependency when system-test target is implemented.
a423d985ba7261661475811c22b21b80ec765a71Timo Siraineninclude $(WS_MAKE_RULES)/common.mk
3fa05fb6b5be864fabfc8a1e1aa236af869dc7eaTimo Sirainen
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainenexport SHELL
a423d985ba7261661475811c22b21b80ec765a71Timo SirainenSHELL=$(BINDIR)/sh
6ac487e0d17528215ddc420d90b4fa28bd036dd8Timo Sirainen
6ac487e0d17528215ddc420d90b4fa28bd036dd8Timo SirainenCFLAGS += `pkg-config --cflags libmpfr`
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5dTimo Sirainen
a423d985ba7261661475811c22b21b80ec765a71Timo SirainenCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
a423d985ba7261661475811c22b21b80ec765a71Timo SirainenCONFIGURE_OPTIONS += --disable-static
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen
2ebeb22b9a8a8bb7fbe2f2e2908478a220792b87Timo SirainenCOMPONENT_TEST_DIR = $(BUILD_DIR)/$(MACH$(BITS))/tests
a423d985ba7261661475811c22b21b80ec765a71Timo Sirainen
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
REQUIRED_PACKAGES += library/gmp
REQUIRED_PACKAGES += library/mpfr
REQUIRED_PACKAGES += system/library/math