# # Makefile for OpenMP versions of Mandelbrot program # # "make" or "make all" to make all executables # "make clean" to remove executables # OMPC = /usr/bin/gcc CFLAGS = -O -Wall -pedantic -fopenmp OMPCC = /usr/bin/g++ CCFLAGS = -O -Wall -pedantic -fopenmp LFLAGS = -lm -lX11 -L/usr/X11R6/lib ALL = mandelbrot-omp-seq \ mandelbrot-omp-by-points \ mandelbrot-omp-by-rows HFILES = mandelbrot-gui.h .PHONY: all all: $(ALL) %: %.c $(HFILES) $(OMPC) -o $@ $(CFLAGS) $< $(LFLAGS) .PHONY: clean clean: -rm $(ALL)