# # PURPOSE: MAKEFILE FOR OSX SPIDER using FFTW on 2 or more processors # USING: PGI Compiler # # TARGET: Non-native mode byte ordering on: 34 bit Intel Mac OS X # # 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_32_pgi # Note: You may ignore any undefined QFFLAGS & SUFFIX SHELL = /bin/sh PGM = spider WHICH = osx_32_pgi # Using: 32 bit PGI Fortran compiler COMP = /opt/pgi/osx86/8.0/bin/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 # -tp p7 : 32 bit Pentium 4 FFLAGS = -tp p7 -O3 -Mpreprocess -mp -Kieee -Minfo \ -byteswapio -DSP_MP -DSP_LIBFFTW3 -c # Link with multi processor support LF = -tp p7 -mp # FFTW static library location FFTWLIBDIR = ../fftw/fftw3-osx-32-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