annotate src/fftw-3.3.3/api/Makefile.am @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 37bf6b4a2645
children
rev   line source
Chris@10 1 AM_CPPFLAGS = -I$(top_srcdir)/kernel -I$(top_srcdir)/dft \
Chris@10 2 -I$(top_srcdir)/rdft -I$(top_srcdir)/reodft
Chris@10 3 AM_CFLAGS = $(STACK_ALIGN_CFLAGS)
Chris@10 4
Chris@10 5 EXTRA_DIST = f03api.sh genf03.pl fftw3.f03.in
Chris@10 6
Chris@10 7 include_HEADERS = fftw3.h fftw3.f fftw3l.f03 fftw3q.f03
Chris@10 8 nodist_include_HEADERS = fftw3.f03
Chris@10 9 noinst_LTLIBRARIES = libapi.la
Chris@10 10
Chris@10 11 # pkgincludedir = $(includedir)/fftw3@PREC_SUFFIX@
Chris@10 12 # pkginclude_HEADERS = api.h x77.h guru.h guru64.h
Chris@10 13
Chris@10 14 libapi_la_SOURCES = apiplan.c configure.c execute-dft-c2r.c \
Chris@10 15 execute-dft-r2c.c execute-dft.c execute-r2r.c execute-split-dft-c2r.c \
Chris@10 16 execute-split-dft-r2c.c execute-split-dft.c execute.c \
Chris@10 17 export-wisdom-to-file.c export-wisdom-to-string.c export-wisdom.c \
Chris@10 18 f77api.c flops.c forget-wisdom.c import-system-wisdom.c \
Chris@10 19 import-wisdom-from-file.c import-wisdom-from-string.c import-wisdom.c \
Chris@10 20 malloc.c map-r2r-kind.c mapflags.c mkprinter-file.c mktensor-iodims.c \
Chris@10 21 mktensor-rowmajor.c plan-dft-1d.c plan-dft-2d.c plan-dft-3d.c \
Chris@10 22 plan-dft-c2r-1d.c plan-dft-c2r-2d.c plan-dft-c2r-3d.c plan-dft-c2r.c \
Chris@10 23 plan-dft-r2c-1d.c plan-dft-r2c-2d.c plan-dft-r2c-3d.c plan-dft-r2c.c \
Chris@10 24 plan-dft.c plan-guru-dft-c2r.c plan-guru-dft-r2c.c plan-guru-dft.c \
Chris@10 25 plan-guru-r2r.c plan-guru-split-dft-c2r.c plan-guru-split-dft-r2c.c \
Chris@10 26 plan-guru-split-dft.c plan-many-dft-c2r.c plan-many-dft-r2c.c \
Chris@10 27 plan-many-dft.c plan-many-r2r.c plan-r2r-1d.c plan-r2r-2d.c \
Chris@10 28 plan-r2r-3d.c plan-r2r.c print-plan.c rdft2-pad.c the-planner.c \
Chris@10 29 version.c api.h f77funcs.h fftw3.h x77.h guru.h guru64.h \
Chris@10 30 mktensor-iodims.h plan-guru-dft-c2r.h plan-guru-dft-r2c.h \
Chris@10 31 plan-guru-dft.h plan-guru-r2r.h plan-guru-split-dft-c2r.h \
Chris@10 32 plan-guru-split-dft-r2c.h plan-guru-split-dft.h plan-guru64-dft-c2r.c \
Chris@10 33 plan-guru64-dft-r2c.c plan-guru64-dft.c plan-guru64-r2r.c \
Chris@10 34 plan-guru64-split-dft-c2r.c plan-guru64-split-dft-r2c.c \
Chris@10 35 plan-guru64-split-dft.c mktensor-iodims64.c
Chris@10 36
Chris@10 37 BUILT_SOURCES = fftw3.f fftw3.f03.in fftw3.f03 fftw3l.f03 fftw3q.f03
Chris@10 38 CLEANFILES = fftw3.f03
Chris@10 39
Chris@10 40 fftw3.f03: fftw3.f03.in
Chris@10 41 (echo "! Generated automatically. DO NOT EDIT!"; echo; \
Chris@10 42 echo " integer, parameter :: C_FFTW_R2R_KIND = @C_FFTW_R2R_KIND@"; \
Chris@10 43 grep -v "Generated automatically" $(srcdir)/fftw3.f03.in) > $@
Chris@10 44
Chris@10 45 if MAINTAINER_MODE
Chris@10 46
Chris@10 47 # convert constants to F77 PARAMETER statements
Chris@10 48 fftw3.f: fftw3.h
Chris@10 49 rm -f $@
Chris@10 50 perl -pe 's/([A-Z0-9_]+)=([+-]?[0-9]+)/\n INTEGER \1\n PARAMETER (\1=\2)\n/g' $< |egrep 'PARAMETER|INTEGER' > $@
Chris@10 51 perl -pe 's/#define +([A-Z0-9_]+) +\(([+-]?[0-9]+)U?\)/\n INTEGER \1\n PARAMETER (\1=\2)\n/g' $< |egrep 'PARAMETER|INTEGER' >> $@
Chris@10 52 perl -pe 'if (/#define +([A-Z0-9_]+) +\(([0-9]+)U? *<< *([0-9]+)\)/) { print "\n INTEGER $$1\n PARAMETER ($$1=",$$2 << $$3,")\n"; }' $< |egrep 'PARAMETER|INTEGER' >> $@
Chris@10 53
Chris@10 54 fftw3.f03.in: fftw3.h f03api.sh genf03.pl
Chris@10 55 sh $(srcdir)/f03api.sh d f > $@
Chris@10 56
Chris@10 57 fftw3l.f03: fftw3.h f03api.sh genf03.pl
Chris@10 58 sh $(srcdir)/f03api.sh l | grep -v parameter > $@
Chris@10 59
Chris@10 60 fftw3q.f03: fftw3.h f03api.sh genf03.pl
Chris@10 61 sh $(srcdir)/f03api.sh q | grep -v parameter > $@
Chris@10 62
Chris@10 63 endif # MAINTAINER_MODE