xref: /OK3568_Linux_fs/buildroot/package/fftw/fftw.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# fftw
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunFFTW_VERSION = 3.3.8
8*4882a593SmuzhiyunFFTW_SITE = http://www.fftw.org
9*4882a593SmuzhiyunFFTW_INSTALL_STAGING = YES
10*4882a593SmuzhiyunFFTW_LICENSE = GPL-2.0+
11*4882a593SmuzhiyunFFTW_LICENSE_FILES = COPYING
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun# fortran support only enables generation and installation of fortran sources
14*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
15*4882a593SmuzhiyunFFTW_COMMON_CONF_OPTS += --enable-fortran
16*4882a593SmuzhiyunFFTW_COMMON_CONF_ENV += FLIBS="-lgfortran -lm"
17*4882a593Smuzhiyunelse
18*4882a593SmuzhiyunFFTW_COMMON_CONF_OPTS += --disable-fortran
19*4882a593Smuzhiyunendif
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunFFTW_COMMON_CFLAGS = $(TARGET_CFLAGS)
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_FFTW_FAST),y)
24*4882a593SmuzhiyunFFTW_COMMON_CFLAGS += -O3 -ffast-math
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun# Generic optimisations
28*4882a593Smuzhiyunifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
29*4882a593SmuzhiyunFFTW_COMMON_CONF_OPTS += --enable-threads
30*4882a593SmuzhiyunFFTW_COMMON_CONF_OPTS += $(if $(BR2_TOOLCHAIN_HAS_OPENMP),--without,--with)-combined-threads
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunFFTW_COMMON_CONF_OPTS += --disable-threads
33*4882a593Smuzhiyunendif
34*4882a593SmuzhiyunFFTW_COMMON_CONF_OPTS += $(if $(BR2_TOOLCHAIN_HAS_OPENMP),--enable,--disable)-openmp
35*4882a593Smuzhiyun
36*4882a593Smuzhiyuninclude $(sort $(wildcard package/fftw/*/*.mk))
37