# # sample Makefile for MPI (LAM implementation) # # B. Massingill, 08/25/2006 # # 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 -Wno-long-long MPICXX = /usr/bin/mpiCC CCFLAGS = -O -Wall -pedantic -Wno-long-long # okay to comment this out if you aren't using C++ MPI bindings CCFLAGS2 = -llammpi++ %: %.c $(MPICC) -o $@ $(CFLAGS) $< %: %.cpp $(MPICXX) -o $@ $(CCFLAGS) $< $(CCFLAGS2)