Makefile revision 7331
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/ABUILD_BITS= 64_and_32
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= fftw
0N/ACOMPONENT_VERSION= 3.2.1
0N/ACOMPONENT_PROJECT_URL= http://fftw.org
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:076a43a8000d331076181ea9e72a56a9cd050400535b7bb3fc2f53b707e712f5
0N/A# 3.2.1 is no longer available on upstream website, so we use Fedora's archive
0N/A# COMPONENT_ARCHIVE_URL= ftp://ftp.fftw.org/pub/fftw/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/fftw/fftw-3.2.1.tar.gz/712d3f33625a0a76f5758648d4b925f7/fftw-3.2.1.tar.gz
0N/ACOMPONENT_BUGDB= library/libfftw
0N/ATPNO= 8418
0N/A
0N/A# Need to build regular, float, and long-double variants
0N/AVARIANTS = f l
0N/AVARIANT_DIRS_32 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH32)-%)
0N/AVARIANT_DIRS_64 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%)
0N/A
0N/ACONFIGURE_32 += $(VARIANT_DIRS_32:%=%/.configured)
0N/ACONFIGURE_64 += $(VARIANT_DIRS_64:%=%/.configured)
0N/ABUILD_32 += $(VARIANT_DIRS_32:%=%/.built)
0N/ABUILD_64 += $(VARIANT_DIRS_64:%=%/.built)
0N/AINSTALL_32 += $(VARIANT_DIRS_32:%=%/.installed)
0N/AINSTALL_64 += $(VARIANT_DIRS_64:%=%/.installed)
0N/ATEST_32 += $(VARIANT_DIRS_32:%=%/.tested-and-compared)
0N/ATEST_64 += $(VARIANT_DIRS_64:%=%/.tested-and-compared)
0N/ASYSTEM_TEST_32 += $(VARIANT_DIRS_32:%=%/.system-tested-and-compared)
0N/ASYSTEM_TEST_64 += $(VARIANT_DIRS_64:%=%/.system-tested-and-compared)
0N/A
0N/Ainclude $(WS_MAKE_RULES)/common.mk
0N/A
0N/ACONFIGURE_OPTIONS += --disable-fortran
0N/ACONFIGURE_OPTIONS += --enable-shared
0N/ACONFIGURE_OPTIONS += --disable-static
0N/A
0N/ACONFIGURE_OPTIONS.f = --enable-float
0N/ACONFIGURE_OPTIONS.l = --enable-long-double
0N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(VARIANT))
0N/A
0N/A$(BUILD_DIR_32)-f/.%: VARIANT=f
0N/A$(BUILD_DIR_64)-f/.%: VARIANT=f
0N/A$(BUILD_DIR_32)-l/.%: VARIANT=l
0N/A$(BUILD_DIR_64)-l/.%: VARIANT=l
0N/A
0N/A$(BUILD_DIR_32)-f/.%: BITS=32
0N/A$(BUILD_DIR_32)-l/.%: BITS=32
0N/A$(BUILD_DIR_64)-f/.%: BITS=64
0N/A$(BUILD_DIR_64)-l/.%: BITS=64
0N/A
0N/A# FFTW selects random transforms for each test run, so just print results
0N/ACOMPONENT_TEST_TRANSFORMS += \
0N/A '-n ' \
0N/A '-e "/ FFTW/p" '
0N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
0N/ACOMPONENT_TEST_BUILD_DIR = $(BUILD_DIR)/test/$(MACH$(BITS))$(VARIANT:%=-%)
0N/A
0N/AREQUIRED_PACKAGES += system/library/math
0N/A