OpenMX Ver. 3.7 supports only FFTW3, while older versions up to Ver. 3.6 also support FFTW2 as well as FFTW3. Then, you may link FFTW3 in your makefile as follows:
LIB = -L/usr/local/lib -fftw3 -llapack -lblas -lg2c -static