Makefile revision 427
1612N/A#
1879N/A# CDDL HEADER START
1612N/A#
1612N/A# The contents of this file are subject to the terms of the
1612N/A# Common Development and Distribution License (the "License").
1612N/A# You may not use this file except in compliance with the License.
1612N/A#
1612N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1612N/A# or http://www.opensolaris.org/os/licensing.
1612N/A# See the License for the specific language governing permissions
1612N/A# and limitations under the License.
1612N/A#
1612N/A# When distributing Covered Code, include this CDDL HEADER in each
1612N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1612N/A# If applicable, add the following below this CDDL HEADER, with the
1612N/A# fields enclosed by brackets "[]" replaced with your own identifying
1612N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1612N/A#
1612N/A# CDDL HEADER END
1612N/A#
1612N/A
1612N/A#
1612N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1612N/A#
1612N/A
1879N/Ainclude ../../make-rules/shared-macros.mk
1879N/A
1879N/ACOMPONENT_NAME= mpc
1879N/ACOMPONENT_VERSION= 0.9
1879N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1879N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1879N/ACOMPONENT_ARCHIVE_HASH= sha1:229722d553030734d49731844abfef7617b64f1a
1879N/ACOMPONENT_ARCHIVE_URL= http://www.multiprecision.org/mpc/download/$(COMPONENT_ARCHIVE)
1612N/A
1612N/Ainclude ../../make-rules/prep.mk
1612N/Ainclude ../../make-rules/configure.mk
1612N/Ainclude ../../make-rules/ips.mk
1612N/A
1612N/Aexport SHELL
1612N/ASHELL=/bin/sh
1612N/A
1612N/ACFLAGS += `pkg-config --cflags libmpfr`
1612N/A
1612N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
1612N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1612N/ACONFIGURE_OPTIONS += --disable-static
1612N/A
1612N/Ainclude ../../make-rules/shared-targets.mk
1612N/A
1612N/A# common targets
1612N/Abuild: $(BUILD_32_and_64)
1612N/A
1612N/A
1612N/Ainstall: $(INSTALL_32_and_64)
1612N/A
1612N/Atest: install
1612N/A @cd $(BUILD_DIR_32)/tests; $(MAKE) check
1612N/A @cd $(BUILD_DIR_64)/tests; $(MAKE) check
1612N/A
1612N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1612N/A
1612N/Ainclude ../../make-rules/depend.mk
1879N/A