# # sample Makefile for MPI (OpenMPI implementation) # # first make sure mpicc references an MPI compiler # # usage examples: # "make hello" to compile "hello.c" to "hello" # # note that you must first set up to include MPI in your environment # (command "module load openmpi-default" or "openmpi-latest" -- I use # the former) # CSTD = -std=c99 # uncomment if using more-recent gcc #CSTD = -std=c11 OPT = -O3 CC = mpicc CFLAGS = $(OPT) -Wall -pedantic $(CSTD) LDLIBS = -lm