                  | FFTW 2.x for Win32
                  |
                  | September 5, 1998
                  |
                  | Andrew Sterian
                  | asterian@umich.edu
                  +-------------------


1) Introduction
===============

This file describes the compilation of FFTW 2.x and RFFTW 2.x on
Win32 using Visual C++ 5.0.

Before going into great detail about anything, please keep in mind
that FFTW is actually very simple to compile. The basic rule is that:

      YOU CAN BUILD FFTW BY JUST COMPILING ALL OF THE *.C FILES
      AND LINKING THEM TOGETHER INTO A LIBRARY

It's that simple. The project database and supplementary files
here are only intended to make things a little bit easier and
to give you a predefined workspace for compiling the library into
a DLL, if you wish. The workspace also contains projects for the
two test programs.

2) Projects
===========

There are 8 projects in the workspace but you do not need to build them all.
The most basic project is FFTW2st which builds FFTW as a static library. For
a quick start, just build this project and start playing.

The projects included in the workspace are:

   * FFTW2dll

     This builds FFTW 2.x as a DLL. The output files are:
        FFTW2dll.dll -- The DLL library
        FFTW2dll.lib -- The import library
        FFTW2dll.exp -- The export file (usually not needed)

   * FFTW2dlltest

     This builds the FFTW2dlltest.exe program (nominally the fftw_test
     program, as it is called in the standard FFTW distribution) linked
     against the FFTW2dll DLL. This program, then, not only tests the
     FFTW library but also the DLL compilation process.

     You need to build the FFTW2dll project before building this project.

   * FFTW2st

     This builds FFTW 2.x as a static library. The output file is 
     FFTW2st.lib.

   * FFTWtest

     This builds the FFTWtest.exe program linked against the FFTW2st.lib
     static library.

     You need to build the FFTW2st project before building this project.

   * RFFTW2dll

     This builds RFFTW 2.x as a DLL. The output files are:
        RFFTW2dll.dll -- The DLL library
        RFFTW2dll.lib -- The import library
        RFFTW2dll.exp -- The export file (usually not needed)

     Note that RFFTW is a superset of FFTW (given the way I'm building 
     things) so you really only need this DLL.

   * RFFTW2dlltest

     This builds the RFFTW2dlltest.exe program (nominally the rfftw_test
     program, as it is called in the standard FFTW distribution) linked
     against the RFFTW2dll DLL. This program, then, not only tests the
     RFFTW library but also the DLL compilation process.

     You need to build the RFFTW2dll project before building this project.

   * RFFTW2st

     This builds RFFTW 2.x as a static library. The output file is 
     RFFTW2st.lib. Note that unlike the DLL, RFFTW2st.lib is NOT
     a superset of FFTW2st.lib so you need to include BOTH libraries
     in any project that uses RFFTW.

   * RFFTWtest

     This builds the FFTWtest.exe program linked against the FFTW2st.lib
     static library.

     You need to build the RFFTW2st project before building this project.

3) Installation
===============

The release build of all of the above projects install the final output
component (the .LIB file, the .DLL file, etc.) into the Win32\Install
subdirectory. From here you can move the files to wherever you wish.
The DLL's should probably go into your C:\WINDOWS directory (wherever
that may be) or somewhere on your PATH.

Note that by default, Visual Studio builds the debug version of all
projects. You can select the release version by using the 
Build-->Set Active Configuration menu.

4) Project Settings
===================

All of the projects are compiled with mostly default settings (e.g., _cdecl
calling convention, 8-byte alignment, etc.). The one important setting you
need to be aware of is:

       /MD -- Compile with the Multithreaded DLL run-time library

Your own code should also use this setting or else you will get
link errors. If you want a different run-time environment, change the 
settings for the projects and recompile.

5) Using the DLL Libraries
==========================

Depending upon whether you want to compile against the static or the
DLL libraries, you need to choose the following preprocessor settings:

   * If you are compiling with the DLL libraries, define the constant
     USE_FFTW_DLL, either in your project settings or in a source file
     prior to including <fftw.h>:

            #define USE_FFTW_DLL

   * If you are not compiling with the DLL libraries, you should NOT
     define the above constant
