# # SCC system default MPI_COMPILER is gnu (option: pgi) # SCC system default MPI_IMPLEMENTATION is OpenMPI (no other option at present) # the mpif77, mpicc, amd mpiCC are generic scripts that depends # on the system default for MPI_COMPILER and MPI_IMPLEMENTATION # Example of linking PGI to the MPI scripts: # scc1% setenv MPI_COMPILER pgi # Kadin Tseng, June 23, 2008 # Modified November 22, 2013 ##### User configurable options ##### ROOT = OPTFLAGS = -O3 CC = $(ROOT)mpicc $(OPTFLAGS) CCC = $(ROOT)mpiCC $(OPTFLAGS) F77 = $(ROOT)mpif77 $(OPTFLAGS) F90 = $(ROOT)mpif90 $(OPTFLAGS) CLINKER = $(ROOT)mpicc $(OPTFLAGS) CCLINKER = $(ROOT)mpiCC $(OPTFLAGS) FLINKER = $(ROOT)mpif77 $(OPTFLAGS) F90LINKER = $(ROOT)mpif90 $(OPTFLAGS) MAKE = make SHELL = /bin/sh # ### End User configurable options ### CFLAGS = FFLAGS = LIBS = -lm FLIBS = EXECS = example1 example1_1 example1_2 example1_3 example1_4 \ example1_5 default: $(EXECS) all: $(EXECS) example1: pgcc -o $@ $(OPTFLAGS) example1.c $(LIBS) example1_1: example1_1.o $(CC) -o $@ example1_1.o $(LIBS) example1_2: example1_2.o $(CC) -o $@ example1_2.o $(LIBS) example1_3: example1_3.o $(CC) -o $@ example1_3.o $(LIBS) example1_4: example1_4.o $(CC) -o $@ example1_4.o $(LIBS) example1_5: example1_5.o $(CC) -o $@ example1_5.o $(LIBS) example1_52: example1_52.o $(CC) -o $@ example1_52.o $(LIBS) clean: /bin/rm -f *.o *~ $(EXECS) .c.o: $(CC) $(CFLAGS) -c $*.c .SUFFIXES: .c