# # Makefile for bucket sort program (using LAM MPI) # # usage: "make bsort" # # for sequential program DEBUG = -DDEBUG OPTFLAGS = -O CXXFLAGS = $(DEBUG) $(OPTFLAGS) -Wall -pedantic -lm -lX11 -L/usr/X11R6/lib # for MPI program MPICC = /usr/bin/mpicc CLINKER = $(CC) MPICXX = /usr/bin/mpiCC OPTFLAGS = -O -Wall -pedantic DEBUG = -DDEBUG CFLAGS = $(OPTFLAGS) $(DEBUG) CCFLAGS = $(CFLAGS) bsort: bsort.cpp masterslave.cpp $(MPICXX) -o bsort $(CCFLAGS) -o bsort bsort.cpp