# # sample Makefile for MPI (OpenMPI implementation) # # B. Massingill, 02/05/2008 # # usage examples: # "make hello" to compile "hello.c" to "hello" # "make hello++" to compile "hello++.cpp" to "hello++" # MPICC = /usr/bin/mpicc CFLAGS = -O -Wall -pedantic MPICXX = /usr/bin/mpiCC CCFLAGS = -O -Wall #-pedantic %: %.c $(MPICC) -o $@ $(CFLAGS) $< %: %.cpp $(MPICXX) -o $@ $(CCFLAGS) $<