# # Makefile for MPI versions of Mandelbrot program # # "make" or "make all" to make all executables # "make clean" to remove executables # MPICC = /usr/bin/mpicc CLINKER = $(CC) CFLAGS = -O -Wall -pedantic MPICXX = /usr/bin/mpiCC CCFLAGS = -O -Wall -pedantic -fpermissive LFLAGS = -lm -lX11 -L/usr/X11R6/lib ALL = mandelbrot-mpi-seq \ mandelbrot-mpi-block \ mandelbrot-mpi-cyclic \ mandelbrot-mpi-dynamic HFILES = mandelbrot-gui.h .PHONY: all all: $(ALL) %: %.c $(HFILES) $(MPICC) -o $@ $(CFLAGS) $< $(LFLAGS) .PHONY: clean clean: -rm $(ALL)