# # sample Makefile for MPI (LAM implementation) # # B. Massingill, 01/24/2002 # # usage examples: # "make hello" to compile "hello.c" to "hello" # "make hello++" to compile "hello++.cpp" to "hello++" # MPICC = /usr/bin/mpicc CLINKER = $(CC) MPICXX = /usr/bin/mpiCC OPTFLAGS = -O -Wall -pedantic CFLAGS = $(OPTFLAGS) CCFLAGS = $(CFLAGS) # okay to comment this out if you aren't using C++ MPI bindings CCFLAGS2 = -llammpi++ %: %.c $(MPICC) -o $@ $(CFLAGS) $< %: %.cpp $(MPICXX) -o $@ $(CCFLAGS) $< $(CCFLAGS2)