# # --------------------------------------------------------------------- # common definitions for IBM SMP Power5, MPI, real*8, 64-bit # --------------------------------------------------------------------- # # MACROS DESCRIPTIONS: # # FC: Fortran 90 compiler. # FCFFLAGS: Fortran 90 compilation flags. # CC: C compiler. # CCFLAGS: C compilation flags. # CPP: cpp preprocessor (may be implied by FC). # CPPFLAGS: cpp -D macro flags. # LD: Loader. # LDFLAGS: Loader flags. # EXTRALIBS: Extra local libraries (if any). # FC = /usr/bin/xlf95_r FCFFLAGS = -b64 -q64 -qrealsize=8 -O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qnosave -qfixed F90FLAGS = -b64 -q64 -qrealsize=8 -O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qnosave -qsuffix=f=f90 -qfree=f90 LD0FLAGS = -b64 -q64 -qrealsize=8 -O3 -qstrict -qmaxmem=-1 -qnosave CC = xlc CCFLAGS = -q64 CPP = /usr/lib/cpp CPPFLAGS = -DAIX -DREAL8 -DSERIAL_IO -DTIMER LD = $(FC) EXTRALDFLAGS = -Wl,-btextpsize:64K -Wl,-bdatapsize:64K -Wl,-bstackpsize:64K -bloadmap:map.load LDFLAGS = $(LD0FLAGS) $(EXTRALDFLAGS) EXTRALIBS = -lessl -L/usr/local/netcdf/netcdf-3.6.1/lib/ -lnetcdf -L/usr/local/fftw/fftw-3.1.2/lib/ -lfftw3 # # --- generic make definitions # SHELL = /bin/sh RM = \rm -f # # rules. # .c.o: $(CC) $(CPPFLAGS) $(CCFLAGS) -c $*.c .f.o: $(FC) $(FCFFLAGS) -c $*.f .F.o: $(FC) $(CPPFLAGS) $(FCFFLAGS) -c $*.F #.F.o: # $(RM) $<.f # $(CPP) $(CPPFLAGS) $< | sed -e '/^ *$$/d' > $<.f # $(FC) $(FCFFLAGS) -c $<.f # -\mv $<.o $*.o # $(RM) $<.f