# # MAKEFILE FOR GNU/Linux SPIDER using FFTW on single processor -- # Non-native mode byte ordering on AMD/Intel IA32 # # Using: Portland Group F90 compiler # Non-native mode byte ordering on Intel IA32 GNU/Linux SHOULD RUN ON MOST LINUX PC's # FFTW3 must be configured with: --enable-float --enable-type-prefix # # Note: You may ignore any undefined QFFLAGS, QLFLAGS & SUFFIX # # Note: To create executable: make -f Makefile_linux_fftw SHELL = /bin/sh PGM = spider WHICH = fftw COMP = /usr/pgi/linux86-64/7.1/bin/pgf95 EXE = $(PGM)_linux_$(WHICH)$(SUFFIX) # -O2 : Invokes level 2 optimization (-O3 causes some run time problems with PGI compiler on SPIDER code) # -mp : Invokes multi processor support # -tp p6 : Targets 32 bit Pentium Pro/II/III with 32 bit memory addresses, supports x87 FP # -tp p7 : Targets 32 or 64 bit Pentium4 with 32 bit memory addresses, supports SSE1 & SSE2 FP # -Mipa=fast : Invokes interprocedural analysis (some routines may fail to compile?) # -fast : Selects an appropriate set of optimization flags usually including -O2 -Munroll -Mnoframe # -fastsse : Selects an appropriate set of flags including SSE support usually including -O2 -Munroll -Mnoframe -Mvect=sse -Mcache_align FFLAGS = -O2 -Mpreprocess -tp p6 -fast -Kieee -Minfo -byteswapio -Dosf_ieee -DSP_LIBFFTW3 -c # FFTW library location FFTWLIBDIR = ../fftw/fftw3-32/lib LF = -tp p6 $(QLFLAGS) LIB = $(EXE).a AFLAGS = r # Static link with FFTW libraries, liblf (supports > 2GB files), and math library LINKLIBS = -Bstatic -L/usr/pgi/linux86/7.1-2/liblf -L$(FFTWLIBDIR) -lfftw3f -lm .PRECIOUS : ../bin/$(EXE) $(LIB) include Makefile.inc include Makebody.inc