Makefile revision 5264
5180N/A#
5180N/A# CDDL HEADER START
5180N/A#
5180N/A# The contents of this file are subject to the terms of the
5180N/A# Common Development and Distribution License (the "License").
5180N/A# You may not use this file except in compliance with the License.
5180N/A#
5180N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5180N/A# or http://www.opensolaris.org/os/licensing.
5180N/A# See the License for the specific language governing permissions
5180N/A# and limitations under the License.
5180N/A#
5180N/A# When distributing Covered Code, include this CDDL HEADER in each
5180N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5180N/A# If applicable, add the following below this CDDL HEADER, with the
5180N/A# fields enclosed by brackets "[]" replaced with your own identifying
5180N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5180N/A#
5180N/A# CDDL HEADER END
5180N/A#
5263N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5180N/A#
5180N/A
5180N/ACOMPILER = gcc
5180N/A
5180N/Ainclude ../../make-rules/shared-macros.mk
5180N/A
5180N/ACOMPONENT_NAME= libffi
5180N/ACOMPONENT_VERSION= 3.0.9
5180N/ACOMPONENT_PROJECT_URL= http://sourceware.org/libffi/
5180N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5180N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5180N/ACOMPONENT_ARCHIVE_HASH= \
5180N/A sha256:589d25152318bc780cd8919b14670793f4971d9838dab46ed38c32b3ee92c452
5180N/ACOMPONENT_ARCHIVE_URL= ftp://sources.redhat.com/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
5180N/ACOMPONENT_BUGDB= library/libffi
5180N/A
5180N/ATPNO= 5930
5180N/A
5180N/Ainclude $(WS_MAKE_RULES)/prep.mk
5180N/Ainclude $(WS_MAKE_RULES)/configure.mk
5180N/Ainclude $(WS_MAKE_RULES)/ips.mk
5180N/A
5180N/ACC += $(CC_BITS)
5180N/A
5264N/ACOMPONENT_TEST_DIR = $(@D)/testsuite
5264N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5264N/A
5264N/ACOMPONENT_TEST_TRANSFORMS += \
5264N/A '-e "s|^Test Run By.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "s|^Native configuration is.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "/^XXX_REMOVE_XXX$$/d" '
5264N/A
5263N/ACFLAGS += -DFFI_MMAP_EXEC_WRIT=1
5263N/A
5263N/ACONFIGURE_OPTIONS += --enable-raw-api=no
5263N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
5263N/A
5180N/AASLR_MODE = $(ASLR_ENABLE)
5180N/A
5180N/Aconfigure: $(CONFIGURE_32_and_64)
5180N/A
5180N/Abuild: $(BUILD_32_and_64)
5180N/A
5180N/Ainstall: $(INSTALL_32_and_64)
5180N/A
5264N/Atest: $(TEST_32_and_64)
5180N/A
5180N/Asystem-test: $(NO_TESTS)
5180N/A
5180N/AREQUIRED_PACKAGES += system/library
5263N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime