# # PURPOSE: MAKEFILE FOR OSX SPIDER using FFTW on 2 or more processors # USING: PGI Compiler # # TARGET: Non-native mode byte ordering SPIDER on: Pentium 4/Xeon for Mac OS # # NOTE: FFTW3 must be configured with: --enable-float # NOTE: You may ignore any undefined QFFLAGS, QLFLAGS & SUFFIX # NOTE: To create executable: make -f Makefile_osx_64_pgi SHELL = /bin/sh PGM = spider WHICH = osx_64_pgi # Using: 64 bit PGI Fortran compiler COMP = pgf95 EXE = $(PGM)_$(WHICH)$(SUFFIX) # -O3 : Invokes level 3 optimization # -mp : Invokes OMP multi processor support # -DSP_MP : cpp flag to activate OMP # -DSP_LIBFFTW3 : cpp flag to activate FFTW3 FFLAGS = -O3 -Mpreprocess -mp -Kieee -Minfo \ -byteswapio -DSP_MP -DSP_LIBFFTW3 -c # Link with multi processor support LF = -mp # FFTW static library location FFTWLIBDIR = ../fftw/fftw3-osx-64-pgi/lib LIB = $(EXE).a AFLAGS = -r # Static Link with FFTW libraries with threads LINKLIBS = -L$(FFTWLIBDIR) -lfftw3f -lfftw3f_threads -lm .PRECIOUS : ../bin/$(EXE) $(LIB) include Makefile.inc include Makebody.inc