# # --------------------------------------------------------------------- # common definitions for AMD64 Linux/g95, MPICH2, real*8 # see http://www.g95.org/ for the g95 compiler # see http://www-unix.mcs.anl.gov/mpi/mpich2/ for MPICH2 # --------------------------------------------------------------------- # # 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 = mpif90 -config=g95 FCFFLAGS = -g -O -march=k8 -m64 -mcmodel=medium -fendian=big -r8 -i4 -Wno=155 -ffixed-line-length-132 CC = gcc4 CCFLAGS = -g -O -march=k8 -m64 -mcmodel=medium CPP = cpp -P #CPPFLAGS = -DIA32 -DREAL8 -DMPI -DSERIAL_IO CPPFLAGS = -DIA32 -DREAL8 -DMPI -DSERIAL_IO -DTIMER LD = $(FC) LDFLAGS = -v $(FCFFLAGS) EXTRALIBS = # # --- 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