# Define our compilers................................. # # The default - OpenMPI MPI_HOME=/usr/local/openmpi F90 = $(MPI_HOME)/bin/mpif90 F77 = $(MPI_HOME)/bin/mpif90 CC = $(MPI_HOME)/bin/mpicc AR=ar BITS= # Define FORTRAN compiler flags....................... # # For the PGI compiler F90FLAGS = -O0 -Kieee -tp amd64 F77FLAGS = -O0 -Kieee -tp amd64 #F90FLAGS = -fast -Mipa=fast,inline -Kieee -tp amd64 #F77FLAGS = -fast -Mipa=fast,inline -Kieee -tp amd64 #F90FLAGS = -O2 -Kieee -tp amd64 #F77FLAGS = -O2 -Kieee -tp amd64 # Define C compiler flags............................. # CFLAGS = -O0 -I. -Kieee -tp amd64 #CFLAGS = -fast -Mipa=fast,inline -Msmartalloc -I. -Kieee -tp amd64 #CFLAGS = -O2 -I. -Kieee -tp amd64 # Libraries................ SCALAPACK = -L/usr/local/scalapack/lib -lscalapack # Blacs # BLACSCINIT = /usr/local/blacs/LIB/blacsCinit_MPI-LINUX-0.a BLACSFINIT = /usr/local/blacs/LIB/blacsF77init_MPI-LINUX-0.a BLACSL = /usr/local/blacs/LIB/blacs_MPI-LINUX-0.a BLACSC = $(BLACSCINIT) $(BLACSL) $(BLACSCINIT) BLACSF = $(BLACSFINIT) $(BLACSL) $(BLACSFINIT) BLACS = $(BLACSC) $(BLACSF) # MPI # MPI = -L$(MPI_HOME)/lib -lmpi WSMP = /home/dwhipp/software/wsmp/WSMP-Linux64-OpenMPI LIBS = \ -LOCTREE -lOctree$(BITS) \ -LNN -lnn_f$(BITS) \ -LNN -lnn_c$(BITS) \ -LCASCADE -lcascade$(BITS) \ -LRESAMPLE -lresample$(BITS) \ -L$(WSMP) -lpwsmpOPT64 \ $(SCALAPACK) $(BLACS) -lacml $(MPI) -lpthread # The Makefiles look at compile output with this PAGER=more # compile rules....................................... # COMPILE_OUT=$(NAME)$(BITS).compile .SUFFIXES: .SUFFIXES: .o .c .f .f90 .f90.o: @echo "--" >>$(COMPILE_OUT) 2>&1 @echo "$(F90) $(F90FLAGS) $(INCLUDES) -c $<" >>$(COMPILE_OUT) 2>&1 $(F90) $(F90FLAGS) $(INCLUDES) -c $< >>$(COMPILE_OUT) 2>&1 .f.o: @echo "--" >>$(COMPILE_OUT) 2>&1 @echo "$(F77) $(F77FLAGS) $(INCLUDES) -c $<" >>$(COMPILE_OUT) 2>&1 $(F77) $(F77FLAGS) $(INCLUDES) -c $< >>$(COMPILE_OUT) 2>&1 .c.o: @echo "--" >>$(COMPILE_OUT) 2>&1 @echo "$(CC) $(CFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1 $(CC) $(CFLAGS) -c $< >>$(COMPILE_OUT) 2>&1