How do I compile libfftw for both single and double precision versions?

I need to compile it twice,

FTWF_AUTOCONF := \
        $(CROSS_AUTOCONF_USR) \
        --enable-shared --enable-fma --enable-single

and

FFTW_AUTOCONF := \
        $(CROSS_AUTOCONF_USR) \
        --enable-shared

This will generate two different libraries with different entry points.

/usr/lib/libfftw3.so
/usr/lib/libfftw3f.so

I made two different makefiles with the two flags...
ptxdist appears to be preventing me form compiling the same source
file from two different makefiles:

jonsm...@terra:/home/apps/OSELAS.BSP-Phytec-phyCORE-12-1$ ptxdist compile fftwf
/home/apps/OSELAS.BSP-Phytec-phyCORE-12-1/rules/fftwf.make:35:
warning: overriding commands for target
`/home/apps/OSELAS.BSP-Phytec-phyCORE-12-1/src/fftw-3.2.1.tar.gz'
/usr/local/lib/ptxdist-1.99.svn/rules/fftw.make:35: warning: ignoring
old commands for target
`/home/apps/OSELAS.BSP-Phytec-phyCORE-12-1/src/fftw-3.2.1.tar.gz'

I have an app that simultaneously calls both versions of the library.

I attached my versions of fftwf makefiles, but they don't work right.

-- 
Jon Smirl
[email protected]

Attachment: fftwf.in
Description: Binary data

Attachment: fftwf.make
Description: Binary data

--
ptxdist mailing list
[email protected]

Reply via email to